From 56c268ade4013144ae1ee02df2976ad0545a3000 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 22 Oct 2014 16:36:54 -0400 Subject: [PATCH] New test that newlines in systemd service scripts don't cause problems --- test/integration/roles/test_service/files/ansible.systemd | 2 +- test/integration/roles/test_service/tasks/systemd_setup.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/roles/test_service/files/ansible.systemd b/test/integration/roles/test_service/files/ansible.systemd index 4517433fd2c..77c4911c230 100644 --- a/test/integration/roles/test_service/files/ansible.systemd +++ b/test/integration/roles/test_service/files/ansible.systemd @@ -2,6 +2,6 @@ Description=Ansible Test Service [Service] -ExecStart=/usr/sbin/ansible_test_service +ExecStart=/usr/sbin/ansible_test_service "Test\nthat newlines in scripts\nwork" ExecReload=/bin/true Type=forking diff --git a/test/integration/roles/test_service/tasks/systemd_setup.yml b/test/integration/roles/test_service/tasks/systemd_setup.yml index e2c1ecfc1cc..6d429332131 100644 --- a/test/integration/roles/test_service/tasks/systemd_setup.yml +++ b/test/integration/roles/test_service/tasks/systemd_setup.yml @@ -12,7 +12,7 @@ - "install_systemd_result.dest == '/usr/lib/systemd/system/ansible_test.service'" - "install_systemd_result.state == 'file'" - "install_systemd_result.mode == '0644'" - - "install_systemd_result.md5sum == 'f634df77d9160ab05bad4ed49d82a0d0'" + - "install_systemd_result.md5sum == '6be64a1e44e9e72a467e70a0b562444f'" - "install_broken_systemd_result.dest == '/usr/lib/systemd/system/ansible_test_broken.service'" - "install_broken_systemd_result.state == 'link'"