From 4905841d2f34ceb00e8230f56157b2ce7e447e2a Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Mon, 4 Dec 2023 15:57:05 -0600 Subject: [PATCH] fix file mode and 2.15 ignore Signed-off-by: Adam Miller --- tests/integration/targets/acl/tasks/acl.yml | 19 ++++++++++++++++++- tests/sanity/ignore-2.15.txt | 1 - 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/tests/integration/targets/acl/tasks/acl.yml b/tests/integration/targets/acl/tasks/acl.yml index 36812f5..13f8483 100644 --- a/tests/integration/targets/acl/tasks/acl.yml +++ b/tests/integration/targets/acl/tasks/acl.yml @@ -39,7 +39,7 @@ ansible.builtin.file: path: "{{ test_file }}" state: touch - mode: "0755" + mode: "0644" - name: Create ansible dir ansible.builtin.file: @@ -56,11 +56,19 @@ state: present register: output +- name: Debug ansible.posix.acl output + ansible.builtin.debug: + msg: "{{ output }}" + - name: Get getfacl output ansible.builtin.command: /bin/getfacl {{ test_file | quote }} changed_when: false register: getfacl_output +- name: Debug getfacl output + ansible.builtin.debug: + msg: "{{ getfacl_output.stdout_lines }}" + - name: Verify Output ansible.builtin.assert: that: @@ -74,11 +82,19 @@ path: "{{ test_file }}" register: output +- name: Debug ansible.posix.acl output + ansible.builtin.debug: + msg: "{{ output }}" + - name: Get getfacl output ansible.builtin.command: /bin/getfacl {{ test_file | quote }} changed_when: false register: getfacl_output +- name: Debug getfacl output + ansible.builtin.debug: + msg: "{{ getfacl_output.stdout_lines }}" + - name: Verify output ansible.builtin.assert: that: @@ -95,6 +111,7 @@ - "'mask::r--' in getfacl_output.stdout_lines" - "'other::r--' in getfacl_output.stdout_lines" ############################################################################## +# - name: Removes the acl for ansible user on a specific file ansible.posix.acl: path: "{{ test_file }}" diff --git a/tests/sanity/ignore-2.15.txt b/tests/sanity/ignore-2.15.txt index 0b6905e..3ae26db 100644 --- a/tests/sanity/ignore-2.15.txt +++ b/tests/sanity/ignore-2.15.txt @@ -1,4 +1,3 @@ -plugins/modules/synchronize.py pylint:disallowed-name plugins/modules/synchronize.py use-argspec-type-path plugins/modules/synchronize.py validate-modules:doc-default-does-not-match-spec plugins/modules/synchronize.py validate-modules:nonexistent-parameter-documented