File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 163163 ref 'https://docs.docker.com/engine/reference/run/#security-configuration'
164164 ref 'http://wiki.apparmor.net/index.php/Main_Page'
165165
166- only_if { os [ :family ] == ( ' ubuntu' || ' debian' ) }
166+ only_if { %w( ubuntu debian ) . include? os [ :name ] }
167167 docker . ps . each do |id |
168168 describe docker . inspect ( id ) do
169169 its ( [ 'AppArmorProfile' ] ) { should include ( APP_ARMOR_PROFILE ) }
182182 ref 'https://docs.docker.com/engine/reference/run/#security-configuration'
183183 ref 'https://docs.fedoraproject.org/en-US/Fedora/13/html/Security-Enhanced_Linux/'
184184
185- only_if { os [ :family ] == ( ' centos' || ' redhat' ) }
185+ only_if { %w( centos redhat ) . include? os [ :name ] }
186186 describe json ( '/etc/docker/daemon.json' ) do
187187 its ( [ 'selinux-enabled' ] ) { should eq ( true ) }
188188 end
You can’t perform that action at this time.
0 commit comments