forked from pact-foundation/pact_broker-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update readme and cli usage text
- Loading branch information
Showing
4 changed files
with
152 additions
and
4 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,31 @@ | ||
Returns exit code 0 or 1, indicating whether or not the specified pacticipant versions are compatible. Prints out the relevant pact/verification details. | ||
|
||
WARNING! This feature is in beta release, and backwards compatibility is NOT guaranteed. You will need the latest version of the Pact Broker for this feature to work. | ||
|
||
The environment variables PACT_BROKER_BASE_URL_BASE_URL, PACT_BROKER_BASE_URL_USERNAME and PACT_BROKER_BASE_URL_PASSWORD may be used instead of their respective command line options. | ||
|
||
SCENARIOS | ||
|
||
Check the status of the pacts for a pacticipant version: | ||
|
||
$ pact-broker can-i-deploy --pacticipant PACTICIPANT --version VERSION --broker-base-url BROKER_BASE_URL | ||
|
||
Check the status of the pacts for the latest pacticipant version: | ||
|
||
$ pact-broker can-i-deploy --pacticipant PACTICIPANT --latest --broker-base-url BROKER_BASE_URL | ||
|
||
Check the status of the pacts for the latest pacticipant version for a given tag: | ||
|
||
$ pact-broker can-i-deploy --pacticipant PACTICIPANT --latest TAG --broker-base-url BROKER_BASE_URL | ||
|
||
Check the status of the pacts between two (or more) specific pacticipant versions: | ||
|
||
$ pact-broker can-i-deploy --pacticipant PACTICIPANT1 --version VERSION1 --pacticipant PACTICIPANT2 --version VERSION2 --broker-base-url BROKER_BASE_URL | ||
|
||
Check the status of the pacts between the latest versions of two (or more) pacticipants: | ||
|
||
$ pact-broker can-i-deploy --pacticipant PACTICIPANT1 --latest --pacticipant PACTICIPANT2 --latest --broker-base-url BROKER_BASE_URL | ||
|
||
Check the status of the pacts between the latest versions of two (or more) pacticipants with a given tag: | ||
|
||
$ pact-broker can-i-deploy --pacticipant PACTICIPANT1 --latest TAG1 --pacticipant PACTICIPANT2 --latest TAG2 --broker-base-url BROKER_BASE_URL |
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,20 @@ | ||
echo '### publish' | ||
echo '' | ||
echo '```' | ||
echo "$(bundle exec bin/pact-broker help publish)" | ||
echo '```' | ||
echo '' | ||
echo '### create-version-tag' | ||
echo '' | ||
echo '```' | ||
echo "$(bundle exec bin/pact-broker help create-version-tag)" | ||
echo '```' | ||
echo '' | ||
echo '### can-i-deploy' | ||
echo '' | ||
echo '*This feature is in beta release, and backwards compatibility is NOT guaranteed.*' | ||
echo 'You will need the latest version of the Pact Broker for this feature to work.' | ||
echo '' | ||
echo '```' | ||
echo "$(bundle exec bin/pact-broker help can-i-deploy)" | ||
echo '```' |