Sha256: a0a2f3575708fbee487e6610d111e9d96687d5432a791d1b5b2917e7d1851d86

Contents?: true

Size: 619 Bytes

Versions: 1

Compression:

Stored size: 619 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Debian

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