Sha256: 12b1d12557a2f6f1fe42869124163fa797e8c6d0826c80f7139402807e401d70

Contents?: true

Size: 675 Bytes

Versions: 89

Compression:

Stored size: 675 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

89 entries across 89 versions & 1 rubygems

Version Path
pact_broker-client-1.77.0 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.76.2 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.76.1 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.75.3 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.75.1 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.75.0 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.74.0 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.73.0 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.72.0 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.71.0 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.70.0 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.69.0 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.68.0 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.67.0 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.66.1 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.66.0 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.65.0 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.64.0 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.63.0 lib/pact_broker/client/webhooks/test.rb
pact_broker-client-1.62.1 lib/pact_broker/client/webhooks/test.rb