From c7d1c1a30617280fdeb99310c98dab1bdec00b53 Mon Sep 17 00:00:00 2001 From: James Laska Date: Fri, 7 Mar 2014 10:41:01 -0500 Subject: [PATCH] [test_service] correct upstart service name and permissions The 'service' utility was unable to find the 'ansible_test' service due to an unexpected filename. This patch corrects the filename and adjusts the permissions to match other service scripts within /etc/init/. --- .../roles/test_service/tasks/upstart_cleanup.yml | 4 ++-- test/integration/roles/test_service/tasks/upstart_setup.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/integration/roles/test_service/tasks/upstart_cleanup.yml b/test/integration/roles/test_service/tasks/upstart_cleanup.yml index 3c4e4e50477..c99446bf652 100644 --- a/test/integration/roles/test_service/tasks/upstart_cleanup.yml +++ b/test/integration/roles/test_service/tasks/upstart_cleanup.yml @@ -1,10 +1,10 @@ - name: remove the upstart init file - file: path=/etc/init/ansible_test state=absent + file: path=/etc/init/ansible_test.conf state=absent register: remove_upstart_result - name: assert that the upstart init file was removed assert: that: - - "remove_upstart_result.path == '/etc/init/ansible_test'" + - "remove_upstart_result.path == '/etc/init/ansible_test.conf'" - "remove_upstart_result.state == 'absent'" diff --git a/test/integration/roles/test_service/tasks/upstart_setup.yml b/test/integration/roles/test_service/tasks/upstart_setup.yml index 70fbee26d05..e889ef2789d 100644 --- a/test/integration/roles/test_service/tasks/upstart_setup.yml +++ b/test/integration/roles/test_service/tasks/upstart_setup.yml @@ -1,12 +1,12 @@ - name: install the upstart init file - copy: src=ansible.upstart dest=/etc/init/ansible_test mode=0755 + copy: src=ansible.upstart dest=/etc/init/ansible_test.conf mode=0644 register: install_upstart_result - name: assert that the upstart init file was installed assert: that: - - "install_upstart_result.dest == '/etc/init/ansible_test'" + - "install_upstart_result.dest == '/etc/init/ansible_test.conf'" - "install_upstart_result.state == 'file'" - - "install_upstart_result.mode == '0755'" + - "install_upstart_result.mode == '0644'" - "install_upstart_result.md5sum == 'ab3900ea4de8423add764c12aeb90c01'"