-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use new 'pacts for verification' endpoint when PACT_BROKER_PACT…
…S_FOR_VERIFICATION_ENABLED is set to 'true'
- Loading branch information
Showing
6 changed files
with
89 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
app = ->(env) { | ||
[201, [], ["something"]] | ||
} | ||
|
||
run app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
bundle exec rackup -p 4567 spec/support/config.ru 2> /dev/null & | ||
bundle exec rackup -p 4567 script/dev/bar_provider_config.ru 2> /dev/null & | ||
pid=$! | ||
sleep 3 | ||
|
||
bundle exec bin/pact-provider-verifier --provider Bar --consumer-version-tag prod --pact-broker-base-url http://localhost:9292 -a 1.0.100 --provider-base-url http://localhost:4567 --provider-states-setup-url http://localhost:4567/provider-state | ||
export PACT_BROKER_PACTS_FOR_VERIFICATION_ENABLED=true | ||
# bundle exec bin/pact-provider-verifier --provider Bar --consumer-version-tag prod --pact-broker-base-url http://localhost:9292 -a 1.0.100 --provider-base-url http://localhost:4567 --provider-states-setup-url http://localhost:4567/provider-state | ||
# --consumer-version-tag dev \ | ||
bundle exec bin/pact-provider-verifier --broker-token localhost \ | ||
--provider Bar \ | ||
--provider-version-tag pdev \ | ||
--pact-broker-base-url http://localhost:9292 \ | ||
-a 1.0.100 --provider-base-url http://localhost:4567 \ | ||
--provider-states-setup-url http://localhost:4567/provider-state \ | ||
--publish-verification-results | ||
|
||
kill -2 $pid | ||
wait $pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters