Sha256: b98c91b9b95d92449be721dc07340ad851242f2a53394397bc48f66ab8c16762

Contents?: true

Size: 725 Bytes

Versions: 112

Compression:

Stored size: 725 Bytes

Contents

require 'pact_broker/api/resources/triggered_webhook_logs'

module PactBroker
  module Api
    module Resources
      describe TriggeredWebhookLogs do

        let(:td) { TestDataBuilder.new }

        before do
          td.create_pact_with_hierarchy
            .create_webhook(uuid: "5432")
            .create_triggered_webhook(trigger_uuid: "1234")
            .create_webhook_execution(logs: "foo")
            .create_webhook_execution(logs: "bar")
        end

        let(:path) { "/webhooks/5432/trigger/1234/logs" }

        subject { get path; last_response }

        it "returns the concatenated webhook execution logs" do
          expect(subject.body).to eq "foo\nbar"
        end
      end
    end
  end
end

Version data entries

112 entries across 112 versions & 1 rubygems

Version Path
pact_broker-2.79.1 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.79.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.78.1 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.78.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.77.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.76.2 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.76.1 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.76.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.75.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.74.1 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.74.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.73.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.72.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.71.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.70.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.69.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.68.1 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.68.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.67.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.66.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb