Skip to content

Commit feca2fd

Browse files
committed
PE-38801 Specs updated
1 parent 962c7b3 commit feca2fd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

spec/plans/convert_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
expect_task('peadm::cert_data').return_for_targets('primary' => trustedjson)
2222
expect_task('peadm::read_file').always_return({ 'content' => '2021.7.9' })
23+
expect_task('peadm::get_group_rules').return_for_targets('primary' => { '_output' => '{"rules": []}' })
2324

2425
# For some reason, expect_plan() was not working??
2526
allow_plan('peadm::modify_certificate').always_return({})

spec/plans/upgrade_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def allow_standard_non_returning_calls
2222

2323
it 'minimum variables to run' do
2424
allow_standard_non_returning_calls
25+
expect_task('peadm::get_group_rules').return_for_targets('primary' => { '_output' => '{"rules": []}' })
2526

2627
expect_task('peadm::read_file')
2728
.with_params('path' => '/opt/puppetlabs/server/pe_build')
@@ -36,6 +37,7 @@ def allow_standard_non_returning_calls
3637

3738
it 'runs with a primary, compilers, but no replica' do
3839
allow_standard_non_returning_calls
40+
expect_task('peadm::get_group_rules').return_for_targets('primary' => { '_output' => '{"rules": []}' })
3941

4042
expect_task('peadm::read_file')
4143
.with_params('path' => '/opt/puppetlabs/server/pe_build')
@@ -92,6 +94,7 @@ def allow_standard_non_returning_calls
9294
.always_return({ 'content' => installed_version })
9395

9496
expect_task('peadm::cert_data').return_for_targets('primary' => trusted_primary)
97+
expect_task('peadm::get_group_rules').return_for_targets('primary' => { '_output' => '{"rules": []}' })
9598
end
9699

97100
it 'updates pe.conf if r10k_known_hosts is set' do

0 commit comments

Comments
 (0)