-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add --verification-exit-code to publish-provider-contract command
- Loading branch information
Showing
2 changed files
with
63 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
export PACT_BROKER_BASE_URL="http://localhost:9292" | ||
export PACT_BROKER_BASE_URL=${PACT_BROKER_BASE_URL:-"http://localhost:9292"} | ||
export PACTFLOW_FEATURES=publish-provider-contract | ||
bundle exec bin/pactflow publish-provider-contract \ | ||
script/oas.yml \ | ||
--provider Foo \ | ||
--provider-app-version 1013b5650d61214e19f10558f97fb5a3bb082d44 \ | ||
--branch main \ | ||
--tag dev \ | ||
--specification oas \ | ||
--content-type application/yml \ | ||
--verification-exit-code 0 \ | ||
--verification-results script/verification-results.txt \ | ||
--verification-results-content-type text/plain \ | ||
--verification-results-format text \ | ||
--verifier my-custom-tool \ | ||
--verifier-version "1.0" \ | ||
--verbose | ||
|
||
|
||
# bundle exec bin/pactflow publish-provider-contract \ | ||
# script/oas.yml \ | ||
# --provider Foo \ | ||
# --provider-app-version 1013b5650d61214e19f10558f97fb5a3bb082d44 \ | ||
# --branch main \ | ||
# --tag dev \ | ||
# --specification oas \ | ||
# --content-type application/yml \ | ||
# --no-verification-success \ | ||
# --verification-results script/verification-results.txt \ | ||
# --verification-results-content-type text/plain \ | ||
# --verification-results-format text \ | ||
# --verifier my-custom-tool \ | ||
# --verifier-version "1.0" \ | ||
# --verbose | ||
|
||
# --content-type application/yml | ||
|
||
bundle exec bin/pactflow publish-provider-contract \ | ||
script/oas.yml \ | ||
--provider Foo \ | ||
--provider-app-version 1013b5650d61214e19f10558f97fb5a3bb082d44 \ | ||
--branch main \ | ||
--tag dev \ | ||
--specification oas \ | ||
--content-type application/yml |