File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 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 ( { } )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments