Sha256: f69dcf61ddd69c908cdf1c0b7f674dd3d13b41532131c503c8cd888c05253cb3
Contents?: true
Size: 619 Bytes
Versions: 1
Compression:
Stored size: 619 Bytes
Contents
require 'spec_helper' include Serverspec::Helper::RedHat describe selinux do it { should be_enforcing } its(:command) { should eq "(getenforce | grep -i -- enforcing && grep -i -- ^SELINUX=enforcing$ /etc/selinux/config)" } end describe selinux do it { should be_permissive } its(:command) { should eq "(getenforce | grep -i -- permissive && grep -i -- ^SELINUX=permissive$ /etc/selinux/config)" } end describe selinux do it { should be_disabled } its(:command) { should eq "test ! -f /etc/selinux/config || (getenforce | grep -i -- disabled && grep -i -- ^SELINUX=disabled$ /etc/selinux/config)" } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
serverspec-0.6.29 | spec/redhat/selinux_spec.rb |