mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 20:13:59 -07:00
Migrate Linux CI roles to test targets. (#17997)
This commit is contained in:
parent
374e4348e4
commit
75e4645ee7
263 changed files with 53 additions and 53 deletions
19
test/integration/targets/service/tasks/upstart_setup.yml
Normal file
19
test/integration/targets/service/tasks/upstart_setup.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
- name: install the upstart init file
|
||||
copy: src=ansible.upstart dest=/etc/init/ansible_test.conf mode=0644
|
||||
register: install_upstart_result
|
||||
|
||||
- name: install an upstart init file that will fail (manual in .conf)
|
||||
copy: src=ansible-broken.upstart dest=/etc/init/ansible_broken_test.conf mode=0644
|
||||
register: install_upstart_broken_result
|
||||
|
||||
- name: assert that the upstart init file was installed
|
||||
assert:
|
||||
that:
|
||||
- "install_upstart_result.dest == '/etc/init/ansible_test.conf'"
|
||||
- "install_upstart_result.state == 'file'"
|
||||
- "install_upstart_result.mode == '0644'"
|
||||
- "install_upstart_result.checksum == '5c314837b6c4dd6c68d1809653a2974e9078e02a'"
|
||||
- "install_upstart_broken_result.dest == '/etc/init/ansible_broken_test.conf'"
|
||||
- "install_upstart_broken_result.state == 'file'"
|
||||
- "install_upstart_broken_result.mode == '0644'"
|
||||
- "install_upstart_broken_result.checksum == 'e66497894f2b2bf71e1380a196cc26089cc24a10'"
|
Loading…
Add table
Add a link
Reference in a new issue