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.65.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.64.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.63.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.62.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.61.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.60.1 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.60.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.59.2 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.59.1 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.59.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.58.3 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.58.2 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.58.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.57.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.56.1 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.56.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.55.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.54.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.53.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.52.2 spec/features/get_triggered_webhooks_for_verification_spec.rb