Sha256: f88a191a6e94cfacc7011be67cc8dbb04c76bdf56dd3e17064161e17eda13957

Contents?: true

Size: 619 Bytes

Versions: 1

Compression:

Stored size: 619 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Gentoo

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/gentoo/selinux_spec.rb