Skip to content

Commit

Permalink
Merge pull request voxpupuli#369 from roidelapluie/verb
Browse files Browse the repository at this point in the history
Reduce logs verbosity
  • Loading branch information
bastelfreak authored Sep 15, 2016
2 parents 3f56c39 + 2c66f92 commit 16b15f6
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- Add autorequirement between cs\_location and cs\_primitives/cs\_clone (#359)
- Add autorequirement between cs\_clone and cs\_primitive (#357, #365)
- Add "Managed By Puppet" header to corosync.conf (#360)
- Improve tests (#335, #337, #331, #328, #364)
- Improve tests (#335, #337, #331, #328, #364, #369)
- Modulesync (#330)

### Backward incompatible changes
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/basic_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class { 'corosync':
EOS

apply_manifest(pp, catch_failures: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
end

describe service('corosync') do
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/corosync_class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class { 'corosync':
EOS

apply_manifest(pp, catch_failures: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
end

describe service('corosync') do
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/cs_colocation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class { 'corosync':
EOS

apply_manifest(pp, catch_failures: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
end

describe service('corosync') do
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/cs_commit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class { 'corosync':
EOS

apply_manifest(pp, catch_failures: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
end

describe service('corosync') do
Expand Down
12 changes: 6 additions & 6 deletions spec/acceptance/cs_location_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class { 'corosync':
EOS

apply_manifest(pp, catch_failures: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
end

describe service('corosync') do
Expand All @@ -64,7 +64,7 @@ class { 'corosync':
}
EOS
apply_manifest(pp, catch_failures: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
shell('cibadmin --query | grep duncan_vip_there') do |r|
expect(r.stdout).to match(%r{rsc_location})
end
Expand All @@ -77,7 +77,7 @@ class { 'corosync':
}
EOS
apply_manifest(pp, catch_failures: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
assert_raises(Beaker::Host::CommandFailure) do
shell('cibadmin --query | grep duncan_vip_there')
end
Expand All @@ -93,7 +93,7 @@ class { 'corosync':
}
EOS
apply_manifest(pp, catch_failures: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
shell('cibadmin --query | grep duncan_vip_there') do |r|
expect(r.stdout).to match(%r{rsc_location})
end
Expand Down Expand Up @@ -135,7 +135,7 @@ class { 'corosync':
}
EOS
apply_manifest(pp, catch_failures: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
end

# attribute order in XML might be non-deterministic
Expand Down Expand Up @@ -194,7 +194,7 @@ class { 'corosync':
}
EOS
apply_manifest(pp, catch_failures: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
end

# attribute order in XML might be non-deterministic
Expand Down
8 changes: 4 additions & 4 deletions spec/acceptance/cs_order_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class { 'corosync':
EOS

apply_manifest(pp, expect_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
end

describe service('corosync') do
Expand All @@ -70,7 +70,7 @@ class { 'corosync':
}
EOS
apply_manifest(pp, expect_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
shell('cibadmin --query | grep first_then_two') do |r|
expect(r.stdout).to match(%r{rsc_order})
end
Expand Down Expand Up @@ -115,7 +115,7 @@ class { 'corosync':
}
EOS
apply_manifest(pp, expect_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
assert_raises(Beaker::Host::CommandFailure) do
shell('cibadmin --query | grep first_then_two')
end
Expand All @@ -130,7 +130,7 @@ class { 'corosync':
}
EOS
apply_manifest(pp, expect_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
shell('cibadmin --query | grep one_then_two_complex') do |r|
expect(r.stdout).to match(%r{rsc_order})
end
Expand Down
20 changes: 10 additions & 10 deletions spec/acceptance/cs_primitive_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class { 'corosync':
EOS

apply_manifest(pp, catch_failures: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
end

describe service('corosync') do
Expand Down Expand Up @@ -90,7 +90,7 @@ class { 'corosync':
}
EOS
apply_manifest(pp, expect_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
shell('cibadmin --query') do |r|
expect(r.stdout).to match(%r{haproxy_vip})
end
Expand All @@ -107,12 +107,12 @@ class { 'corosync':
}
EOS
apply_manifest(pp, expect_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)

shell('crm_resource -r test_stop -m -p target-role -v Stopped')

apply_manifest(pp, expect_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
end

it 'respects unmanaged_metadata' do
Expand All @@ -127,11 +127,11 @@ class { 'corosync':
}
EOS
apply_manifest(pp, expect_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)

shell('crm_resource -r test_stop2 -m -p target-role -v Stopped')

apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)

pp = <<-EOS
cs_primitive { 'test_stop2':
Expand All @@ -144,7 +144,7 @@ class { 'corosync':
EOS

apply_manifest(pp, expect_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
end

it 'accepts 2 metadata names in unmanaged_metadata' do
Expand All @@ -159,7 +159,7 @@ class { 'corosync':
}
EOS
apply_manifest(pp, expect_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
end

it 'does set is-managed in test_md' do
Expand All @@ -186,7 +186,7 @@ class { 'corosync':
}
EOS

apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
end

it 'does not delete or change is-managed if it is in unmanaged_metadata' do
Expand Down Expand Up @@ -214,7 +214,7 @@ class { 'corosync':
EOS

apply_manifest(pp, expect_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)
end

it 'does delete is-managed because it is no longer in unmanaged_metadata' do
Expand Down
4 changes: 2 additions & 2 deletions spec/acceptance/cs_rsc_defaults_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class { 'corosync':
EOS

apply_manifest(pp, catch_failures: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)

shell('cibadmin --query') do |r|
expect(r.stdout).to match(%r{resource-stickiness.*98898})
Expand All @@ -56,7 +56,7 @@ class { 'corosync':
}
EOS
apply_manifest(pp, expect_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: true, trace: true)
apply_manifest(pp, catch_changes: true, debug: false, trace: true)

shell('cibadmin --query') do |r|
expect(r.stdout).not_to match(%r{resource-stickiness.*98898})
Expand Down

0 comments on commit 16b15f6

Please sign in to comment.