Sha256: b7066d8fe5d132b0f474e1f2c2d674c8ca13636fc9e613dc5051b5070777e9dc
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
require 'pact_broker/client/hal' require 'pact_broker/client/command_result' module PactBroker module Client module Webhooks class Test def self.call(options, pact_broker_client_options) http_client = PactBroker::Client::Hal::HttpClient.new(pact_broker_client_options.merge(pact_broker_client_options[:basic_auth] || {})) execution_result = PactBroker::Client::Hal::EntryPoint.new(options.broker_base_url, http_client).get!._link!('pb:webhook').expand('uuid' => options.uuid).get!.post('pb:execute') PactBroker::Client::CommandResult.new(true, execution_result.response.body['logs']) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pact_broker-client-1.26.0 | lib/pact_broker/client/webhooks/test.rb |