Skip to content

Commit

Permalink
enable debug output in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Apr 14, 2023
1 parent 3f9f3a8 commit 93c28d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/acceptance/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

describe 'borg' do
context 'with a backup server' do
shell('dnf config-manager --set-enabled powertools') if fact('os.name') == 'CentOS' && fact('os.release.major').to_i == 8
shell('dnf config-manager --set-enabled powertools') if fact('os.family') == 'RedHat' && fact('os.release.major').to_i == 8
let(:pp) do
<<-PUPPET
class { 'borg':
Expand All @@ -15,8 +15,8 @@ class { 'borg':
end

it 'works idempotently with no errors' do
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
apply_manifest(pp, catch_failures: true, show_diff: true)
apply_manifest(pp, catch_changes: true, show_diff: true)
end

describe service('borg-backup.timer') do
Expand Down

0 comments on commit 93c28d0

Please sign in to comment.