File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 163
163
ref 'https://docs.docker.com/engine/reference/run/#security-configuration'
164
164
ref 'http://wiki.apparmor.net/index.php/Main_Page'
165
165
166
- only_if { os [ :family ] == ( ' ubuntu' || ' debian' ) }
166
+ only_if { %w( ubuntu debian ) . include? os [ :name ] }
167
167
docker . ps . each do |id |
168
168
describe docker . inspect ( id ) do
169
169
its ( [ 'AppArmorProfile' ] ) { should include ( APP_ARMOR_PROFILE ) }
182
182
ref 'https://docs.docker.com/engine/reference/run/#security-configuration'
183
183
ref 'https://docs.fedoraproject.org/en-US/Fedora/13/html/Security-Enhanced_Linux/'
184
184
185
- only_if { os [ :family ] == ( ' centos' || ' redhat' ) }
185
+ only_if { %w( centos redhat ) . include? os [ :name ] }
186
186
describe json ( '/etc/docker/daemon.json' ) do
187
187
its ( [ 'selinux-enabled' ] ) { should eq ( true ) }
188
188
end
You can’t perform that action at this time.
0 commit comments