"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/integration/targets/win_service/tasks/tests.yml" between
ansible-2.7.6.tar.gz and ansible-2.7.7.tar.gz

About: Ansible is a platform for configuring and managing computers combining multi-node software deployment, ad hoc task execution, and configuration management.

tests.yml  (ansible-2.7.6):tests.yml  (ansible-2.7.7)
skipping to change at line 803 skipping to change at line 803
- win_service_removed is changed - win_service_removed is changed
- win_service_removed.exists == False - win_service_removed.exists == False
- win_service_removed.description is not defined - win_service_removed.description is not defined
- win_service_removed.display_name is not defined - win_service_removed.display_name is not defined
- win_service_removed.name is not defined - win_service_removed.name is not defined
- win_service_removed.path is not defined - win_service_removed.path is not defined
- win_service_removed.start_mode is not defined - win_service_removed.start_mode is not defined
- win_service_removed.state is not defined - win_service_removed.state is not defined
- win_service_removed.username is not defined - win_service_removed.username is not defined
# only run these tests if TapiSrv is already stopped, don't want to impact an ex - name: create new pausable dummy test service
isting server win_service:
- block: name: "{{test_win_service_name}}"
- name: start the pausable service path: "{{test_win_service_path}}"
win_service: display_name: "{{test_win_service_display_name}}"
name: '{{test_win_service_pause_name}}' description: "{{test_win_service_description}}"
state: started state: started
register: stat_pausable_service register: stat_pausable_service
- name: assert get details on a pausable service - name: assert get details on a pausable service
assert: assert:
that: that:
- stat_pausable_service.can_pause_and_continue == True - stat_pausable_service.can_pause_and_continue == True
- name: pause a service check - name: pause a service check
win_service: win_service:
name: '{{test_win_service_pause_name}}' name: '{{test_win_service_name}}'
state: paused state: paused
register: win_service_paused_check register: win_service_paused_check
check_mode: yes check_mode: yes
- name: assert pause a service check - name: assert pause a service check
assert: assert:
that: that:
- win_service_paused_check is changed - win_service_paused_check is changed
- win_service_paused_check.state == 'running' - win_service_paused_check.state == 'running'
- name: pause a service - name: pause a service
win_service: win_service:
name: '{{test_win_service_pause_name}}' name: '{{test_win_service_name}}'
state: paused state: paused
register: win_service_paused register: win_service_paused
- name: assert pause a service - name: assert pause a service
assert: assert:
that: that:
- win_service_paused is changed - win_service_paused is changed
- win_service_paused.state == 'paused' - win_service_paused.state == 'paused'
- name: pause a service again - name: pause a service again
win_service: win_service:
name: '{{test_win_service_pause_name}}' name: '{{test_win_service_name}}'
state: paused state: paused
register: win_service_paused_again register: win_service_paused_again
- name: assert pause a service again - name: assert pause a service again
assert: assert:
that: that:
- win_service_paused_again is not changed - win_service_paused_again is not changed
- name: start a paused service check - name: start a paused service check
win_service: win_service:
name: '{{test_win_service_pause_name}}' name: '{{test_win_service_name}}'
state: started state: started
register: start_paused_service_check register: start_paused_service_check
check_mode: yes check_mode: yes
- name: assert start a paused service check - name: assert start a paused service check
assert: assert:
that: that:
- start_paused_service_check is changed - start_paused_service_check is changed
- start_paused_service_check.state == 'paused' - start_paused_service_check.state == 'paused'
- name: start a paused service - name: start a paused service
win_service: win_service:
name: '{{test_win_service_pause_name}}' name: '{{test_win_service_name}}'
state: started state: started
register: start_paused_service register: start_paused_service
- name: assert start a paused service - name: assert start a paused service
assert: assert:
that: that:
- start_paused_service is changed - start_paused_service is changed
- start_paused_service.state == 'running' - start_paused_service.state == 'running'
- name: pause service for next test - name: pause service for next test
win_service: win_service:
name: '{{test_win_service_pause_name}}' name: '{{test_win_service_name}}'
state: paused state: paused
- name: stop a paused service check - name: stop a paused service check
win_service: win_service:
name: '{{test_win_service_pause_name}}' name: '{{test_win_service_name}}'
state: stopped state: stopped
force_dependent_services: True force_dependent_services: True
register: stop_paused_service_check register: stop_paused_service_check
check_mode: yes check_mode: yes
- name: assert stop a paused service check - name: assert stop a paused service check
assert: assert:
that: that:
- stop_paused_service_check is changed - stop_paused_service_check is changed
- stop_paused_service_check.state == 'paused' - stop_paused_service_check.state == 'paused'
- name: stop a paused service - name: stop a paused service
win_service: win_service:
name: '{{test_win_service_pause_name}}' name: '{{test_win_service_name}}'
state: stopped state: stopped
force_dependent_services: True force_dependent_services: True
register: stop_paused_service register: stop_paused_service
- name: assert stop a paused service - name: assert stop a paused service
assert: assert:
that: that:
- stop_paused_service is changed - stop_paused_service is changed
- stop_paused_service.state == 'stopped' - stop_paused_service.state == 'stopped'
- name: fail to pause a stopped service check - name: fail to pause a stopped service check
win_service: win_service:
name: '{{test_win_service_pause_name}}' name: '{{test_win_service_name}}'
state: paused state: paused
register: fail_pause_stopped_service register: fail_pause_stopped_service
failed_when: "fail_pause_stopped_service.msg != 'failed to pause service ' + failed_when: "fail_pause_stopped_service.msg != 'failed to pause service ' + t
test_win_service_pause_name + ': The service does not support pausing'" est_win_service_name + ': The service does not support pausing'"
when: pause_service_details.state == 'stopped'
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)