Skip to content

Commit

Permalink
chore: update http test data builder [ci-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Dec 18, 2020
1 parent 0b31b0c commit 5097507
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pact_broker/test/http_test_data_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def initialize(pact_broker_base_url, auth)
end

def sleep
Kernel.sleep 1
Kernel.sleep 0.5
self
end

Expand Down Expand Up @@ -79,6 +79,7 @@ def publish_pact(consumer: last_consumer_name, consumer_version:, provider: last
end

def get_pacts_for_verification(provider: last_provider_name, provider_version_tag: , consumer_version_selectors:, enable_pending: false, include_wip_pacts_since: nil)
@last_provider_name = provider
puts "Fetching pacts for verification for #{provider}"
body = {
providerVersionTags: [*provider_version_tag],
Expand Down Expand Up @@ -111,6 +112,7 @@ def print_pacts_for_verification
end

def verify_pact(index: 0, success:, provider: last_provider_name, provider_version_tag: , provider_version: )
@last_provider_name = provider
pact_to_verify = @pacts_for_verification_response.body["_embedded"]["pacts"][index]
raise "No pact found to verify at index #{index}" unless pact_to_verify
url_of_pact_to_verify = pact_to_verify["_links"]["self"]["href"]
Expand Down

0 comments on commit 5097507

Please sign in to comment.