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.52.1 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.52.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.51.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.50.1 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.50.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.49.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.48.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.47.1 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.47.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.46.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.45.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.44.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.43.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.42.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.41.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.40.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.39.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.38.1 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.38.0 spec/features/get_triggered_webhooks_for_verification_spec.rb
pact_broker-2.37.0 spec/features/get_triggered_webhooks_for_verification_spec.rb