Skip to content

Commit

Permalink
apply_manifest catch_failures: true
Browse files Browse the repository at this point in the history
  • Loading branch information
danielparks committed Feb 15, 2024
1 parent 4662827 commit 22b0bfc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/acceptance/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@
it 'can remove itself after the user was deleted' do
expect(user('rustup_test')).not_to exist

apply_manifest(<<~'END')
apply_manifest(<<~'END', catch_failures: true)
user { 'rustup_test':
ensure => present,
managehome => true,
Expand All @@ -394,7 +394,7 @@
expect(file('/home/rustup_test/.bashrc').content)
.to eq %(# .bashrc\n. "$HOME/.cargo/env"\n)

apply_manifest(<<~'END')
apply_manifest(<<~'END', catch_failures: true)
user { 'rustup_test':
ensure => absent,
}
Expand All @@ -421,7 +421,7 @@
expect(file('/home/rustup_test/.bashrc').content).to eq %(# .bashrc\n)

# Clean up
apply_manifest(<<~'END')
apply_manifest(<<~'END', catch_failures: true)
user { 'rustup_test':
ensure => absent,
}
Expand All @@ -436,7 +436,7 @@
it 'can remove itself after the user was deleted (with custom cargo_home)' do
expect(user('rustup_test')).not_to exist

apply_manifest(<<~'END')
apply_manifest(<<~'END', catch_failures: true)
user { 'rustup_test':
ensure => present,
managehome => true,
Expand Down Expand Up @@ -471,7 +471,7 @@
expect(file('/home/rustup_test/.bashrc').content)
.to eq %(# .bashrc\n. "/home/rustup_test/a/b/.cargo/env"\n)

apply_manifest(<<~'END')
apply_manifest(<<~'END', catch_failures: true)
user { 'rustup_test':
ensure => absent,
}
Expand Down Expand Up @@ -499,7 +499,7 @@
expect(file('/home/rustup_test/.bashrc').content).to eq %(# .bashrc\n)

# Clean up
apply_manifest(<<~'END')
apply_manifest(<<~'END', catch_failures: true)
user { 'rustup_test':
ensure => absent,
}
Expand Down

0 comments on commit 22b0bfc

Please sign in to comment.