acceptance/lib/pxp-agent/bolt_pxp_module_helper.rb
# Starts a blocking task on targets, and confirms that it produced an RPC error
# Block is executed on the RPC error message string.
Starts a blocking task on targets, and confirms that it produced an RPC error
Block is executed on the RPC error message string.
Starts a blocking task on targets and confirms that it produced an RPC error Block is executed on the RPC error message string .
def run_errored_task(broker, targets, task, files, input: {}, metadata: nil)
  run_task(broker, targets, task, files, input: input, metadata: metadata,
           blocking_request: true,
           expected_response_type: "http://puppetlabs.com/rpc_error_message") do |response_dataset|
    response_dataset.each { |data| yield data['description'] } if block_given?
  end
end
def run_errored_task ( broker , targets , task , files , input : { } , metadata : nil ) run_task ( broker , targets , task , files , input : input , metadata : metadata , blocking_request : true , expected_response_type : "http://puppetlabs.com/rpc_error_message" ) do | response_dataset | response_dataset . each { | data | yield data [ 'description' ] } if block_given? end end
Starts a blocking task on targets, and confirms that it produced an RPC error
Block is executed on the RPC error message string.
Starts a blocking task on targets and confirms that it produced an RPC error Block is executed on the RPC error message string .
broker
<not_specific>
targets
<not_specific>
task
<not_specific>
files
<not_specific>
input
<not_specific>
metadata
<not_specific>