Disable SELinux for acceptance tests

Change-Id: Ic43c030225e2ae26113e214f09d998df10bac0fa
This commit is contained in:
Mohammed Naser 2017-10-30 20:25:39 -04:00
parent efc5e48c3f
commit cdc5ebf591
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':
@ -106,7 +112,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)
@ -130,6 +135,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':