Skip to content

Commit

Permalink
PE-38801 Specs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronShannon committed Oct 3, 2024
1 parent 962c7b3 commit feca2fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/plans/convert_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

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

# For some reason, expect_plan() was not working??
allow_plan('peadm::modify_certificate').always_return({})
Expand Down
3 changes: 3 additions & 0 deletions spec/plans/upgrade_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def allow_standard_non_returning_calls

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

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

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

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

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

it 'updates pe.conf if r10k_known_hosts is set' do
Expand Down

0 comments on commit feca2fd

Please sign in to comment.