Skip to content

Commit

Permalink
rubocop: autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jun 12, 2017
1 parent 96fe1f5 commit bca2004
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/acceptance/selinux_permissive_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
apply_manifest(manifest, catch_failures: true)
end

after :all do # rubocop:disable RSpec/BeforeAfterAll
after :all do
# cleanup
shell('semanage permissive -d passwd_t', acceptable_exit_codes: [0, 1])
end
Expand All @@ -19,7 +19,7 @@
end
end
context 'purge with ensure present for passwd_t, when kernel_t is permissive' do
before :all do # rubocop:disable RSpec/BeforeAfterAll
before :all do
shell('semanage permissive -a kernel_t')
end
let(:result) do
Expand All @@ -30,7 +30,7 @@
apply_manifest(manifest, catch_failures: true)
end

after :all do # rubocop:disable RSpec/BeforeAfterAll
after :all do
# clean up
shell('semanage permissive -d passwd_t', acceptable_exit_codes: [0, 1])
shell('semanage permissive -d kernel_t', acceptable_exit_codes: [0, 1])
Expand All @@ -46,7 +46,7 @@
end
end
context 'ensure absent for kernel_t only, when passwd_t is also permissive' do
before :all do # rubocop:disable RSpec/BeforeAfterAll
before :all do
shell('semanage permissive -a kernel_t')
shell('semanage permissive -a passwd_t')
end
Expand All @@ -55,7 +55,7 @@
apply_manifest(manifest, catch_failures: true)
end

after :all do # rubocop:disable RSpec/BeforeAfterAll
after :all do
# clean up
shell('semanage permissive -d passwd_t', acceptable_exit_codes: [0, 1])
shell('semanage permissive -d kernel_t', acceptable_exit_codes: [0, 1])
Expand Down

0 comments on commit bca2004

Please sign in to comment.