acceptance/lib/pxp-agent/bolt_pxp_module_helper.rb
# Runs a blocking command action on targets, and confirms that it unsuccessful, but did not error.
# Block is executed on the stderr string.
Runs a blocking command action on targets, and confirms that it unsuccessful, but did not error.
Block is executed on the stderr string.
Runs a blocking command action on targets and confirms that it unsuccessful but did not error . Block is executed on the stderr string .
def run_errored_command(broker, targets, command)
  run_command(broker, targets, command,
              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_command ( broker , targets , command ) run_command ( broker , targets , command , 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
Runs a blocking command action on targets, and confirms that it unsuccessful, but did not error.
Runs a blocking command action on targets and confirms that it unsuccessful but did not error .
broker
<not_specific>
targets
<not_specific>
command
<not_specific>