From 2a6929b740ff01b0b6ff7d6a3be9f925d83b3db4 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Wed, 25 Nov 2020 16:13:40 +1100 Subject: [PATCH] chore: update repro [ci-skip] --- lib/pact_broker/test/http_test_data_builder.rb | 4 +++- script/reproduce-issue.rb | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/pact_broker/test/http_test_data_builder.rb b/lib/pact_broker/test/http_test_data_builder.rb index 4eb9ab666..9bca90cef 100644 --- a/lib/pact_broker/test/http_test_data_builder.rb +++ b/lib/pact_broker/test/http_test_data_builder.rb @@ -79,7 +79,10 @@ def get_pacts_for_verification(provider: last_provider_name, provider_version_ta includeWipPactsSince: include_wip_pacts_since } puts body.to_yaml + puts "" @pacts_for_verification_response = client.post("/pacts/provider/#{encode(provider)}/for-verification", body) + + print_pacts_for_verification separate self end @@ -94,7 +97,6 @@ def print_pacts_for_verification "pending" => pact["verificationProperties"]["pending"] }.to_yaml) end - separate self end diff --git a/script/reproduce-issue.rb b/script/reproduce-issue.rb index ee5573f8a..ae0a17ba0 100755 --- a/script/reproduce-issue.rb +++ b/script/reproduce-issue.rb @@ -18,14 +18,17 @@ provider_version_tag: "main", include_wip_pacts_since: "2020-01-01", consumer_version_selectors: [{ tag: "main", latest: true }]) - .print_pacts_for_verification .verify_pact( index: 0, provider_version_tag: "main", provider_version: "1", success: false ) - .print_pacts_for_verification + .get_pacts_for_verification( + enable_pending: true, + provider_version_tag: "main", + include_wip_pacts_since: "2020-01-01", + consumer_version_selectors: [{ tag: "main", latest: true }]) .can_i_deploy(pacticipant: "MyProvider", version: "1", to: "prod") .can_i_deploy(pacticipant: "MyConsumer", version: "1", to: "prod") .deploy_to_prod(pacticipant: "MyProvider", version: "1")