From 43b3eecf525511932fa2d6b8439fc0f832873d29 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 21 Oct 2014 01:31:55 -0400 Subject: [PATCH] Debian/Ubuntu doesn't have group nobody so remove the group portion of the new template tests as owner and mode will exercise the problematic code path --- test/integration/roles/test_template/tasks/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/integration/roles/test_template/tasks/main.yml b/test/integration/roles/test_template/tasks/main.yml index 0c5d3d18bf..0305885473 100644 --- a/test/integration/roles/test_template/tasks/main.yml +++ b/test/integration/roles/test_template/tasks/main.yml @@ -67,7 +67,7 @@ # VERIFY dest as a directory does not break file attributes # Note: expanduser is needed to go down the particular codepath that was broken before - name: setup directory for test - file: state=directory dest={{output_dir | expanduser}}/template-dir mode=0755 owner=nobody group=nobody + file: state=directory dest={{output_dir | expanduser}}/template-dir mode=0755 owner=nobody group=root - name: set file mode when the destination is a directory template: src=foo.j2 dest={{output_dir | expanduser}}/template-dir/ mode=0600 owner=root group=root @@ -82,7 +82,6 @@ - assert: that: - - "file_attrs.stat.gid == 0" - "file_attrs.stat.uid == 0" - "file_attrs.stat.pw_name == 'root'" - "file_attrs.stat.mode == '0600'" @@ -93,7 +92,6 @@ - assert: that: - - "dir_attrs.stat.gid != 0" - "dir_attrs.stat.uid != 0" - "dir_attrs.stat.pw_name == 'nobody'" - "dir_attrs.stat.mode == '0755'"