Disable SELinux for acceptance tests

Change-Id: Ic43c030225e2ae26113e214f09d998df10bac0fa
(cherry picked from commit cdc5ebf591)
This commit is contained in:
Mohammed Naser 2017-10-30 20:25:39 -04:00 committed by Emilien Macchi
parent 39517d8e13
commit 5260fe3c27
1 changed files with 12 additions and 1 deletions

View File

@ -12,6 +12,12 @@ describe 'basic swift' do
include ::openstack_integration::mysql
include ::openstack_integration::keystone
exec { 'setenforce 0':
path => '/bin:/sbin:/usr/bin:/usr/sbin',
onlyif => 'which setenforce && getenforce | grep Enforcing',
before => Class['::swift'],
}
package { 'curl': ensure => present }
class { '::memcached':
@ -69,7 +75,6 @@ describe 'basic swift' do
}
EOS
# Need to be run 2 times because we have an exported when creating the ring.
apply_manifest(pp, :catch_failures => false)
apply_manifest(pp, :catch_failures => true)
@ -93,6 +98,12 @@ describe 'basic swift' do
include ::openstack_integration::mysql
include ::openstack_integration::keystone
exec { 'setenforce 0':
path => '/bin:/sbin:/usr/bin:/usr/sbin',
onlyif => 'which setenforce && getenforce | grep Enforcing',
before => Class['::swift'],
}
package { 'curl': ensure => present }
class { '::memcached':