From e401927d6760a91193e180f20272de8ed2b3218a Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 17 Apr 2018 14:00:35 -0700 Subject: [PATCH] Restore seboolean and sefcontext tests on RHEL. --- test/integration/targets/seboolean/aliases | 1 - test/integration/targets/seboolean/tasks/seboolean.yml | 6 ++++++ test/integration/targets/sefcontext/aliases | 1 - test/integration/targets/sefcontext/tasks/sefcontext.yml | 6 ++++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/test/integration/targets/seboolean/aliases b/test/integration/targets/seboolean/aliases index cf6db271b00..53b32510a0e 100644 --- a/test/integration/targets/seboolean/aliases +++ b/test/integration/targets/seboolean/aliases @@ -1,3 +1,2 @@ needs/root posix/ci/group2 -skip/rhel diff --git a/test/integration/targets/seboolean/tasks/seboolean.yml b/test/integration/targets/seboolean/tasks/seboolean.yml index 1e7916a3dd1..5c9b7674f61 100644 --- a/test/integration/targets/seboolean/tasks/seboolean.yml +++ b/test/integration/targets/seboolean/tasks/seboolean.yml @@ -15,6 +15,12 @@ # You should have received a copy of the GNU General Public License # along with Ansible. If not, see . +- name: install requirements for RHEL + package: + name: policycoreutils-python + when: + - ansible_distribution == 'RedHat' + - name: Cleanup shell: setsebool -P httpd_can_network_connect 0 ########################################################################################## diff --git a/test/integration/targets/sefcontext/aliases b/test/integration/targets/sefcontext/aliases index cf6db271b00..53b32510a0e 100644 --- a/test/integration/targets/sefcontext/aliases +++ b/test/integration/targets/sefcontext/aliases @@ -1,3 +1,2 @@ needs/root posix/ci/group2 -skip/rhel diff --git a/test/integration/targets/sefcontext/tasks/sefcontext.yml b/test/integration/targets/sefcontext/tasks/sefcontext.yml index 04df61cf72e..d2fbc5886e6 100644 --- a/test/integration/targets/sefcontext/tasks/sefcontext.yml +++ b/test/integration/targets/sefcontext/tasks/sefcontext.yml @@ -15,6 +15,12 @@ # You should have received a copy of the GNU General Public License # along with Ansible. If not, see . +- name: install requirements for RHEL + package: + name: policycoreutils-python + when: + - ansible_distribution == 'RedHat' + - name: Ensure we start with a clean state sefcontext: path: '/tmp/foo/bar(/.*)?'