Sha256: a2737b0949fb66dcc7d48c2edcf7b6515c2e89fe9325e1841c905edee464663c

Contents?: true

Size: 665 Bytes

Versions: 84

Compression:

Stored size: 665 Bytes

Contents

RSpec.describe "Get triggered webhooks for verification" do
  before do
    td.create_pact_with_hierarchy
      .create_verification_webhook
      .create_verification
      .create_triggered_webhook
      .create_webhook_execution
  end

  let(:td) { TestDataBuilder.new }
  let(:path) { PactBroker::Api::PactBrokerUrls.verification_triggered_webhooks_url(td.verification) }
  let(:json_response_body) { JSON.parse(subject.body) }

  subject { get(path); last_response }

  it { is_expected.to be_a_hal_json_success_response }

  it "contains a list of triggered webhooks" do
    expect(json_response_body['_embedded']['triggeredWebhooks'].size).to be 1
  end
end

Version data entries

84 entries across 84 versions & 1 rubygems

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