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.36.1 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.36.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.35.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.34.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.33.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.32.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.31.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.30.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.29.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.27.6 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.27.5 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.27.4 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.27.3 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.27.2 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.27.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.26.1 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.26.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.25.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.24.0 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb
pact_broker-2.23.4 spec/lib/pact_broker/api/resources/triggered_webhook_logs_spec.rb