-
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: use the pb:publish-contracts relation and endpoint to publish p…
…acts
- Loading branch information
Showing
14 changed files
with
482 additions
and
79 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
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
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,8 +1,20 @@ | ||
bundle exec bin/pact-broker publish spec/pacts/pact_broker_client-pact_broker.json \ | ||
--consumer-app-version 1.2.7 \ | ||
# bundle exec bin/pact-broker create-or-update-webhook http://localhost:9393 \ | ||
# --uuid d40f38c3-aaa3-47f5-9161-95c07bc16b14 \ | ||
# --request POST \ | ||
# --description "foo webhook" \ | ||
# --contract-published | ||
|
||
bundle exec bin/pact-broker create-or-update-webhook http://localhost:9393 \ | ||
--uuid d40f38c3-aaa3-47f5-9161-95c07bc16555 \ | ||
--provider Bar \ | ||
--request POST \ | ||
--contract-published | ||
|
||
bundle exec bin/pact-broker publish spec/pacts/pact_broker_client-pact_broker.json spec/pacts/foo-bar.json \ | ||
--consumer-app-version 1.2.12 \ | ||
--broker-base-url http://localhost:9292 \ | ||
--broker-username localhost --broker-password localhost \ | ||
--auto-detect-version-properties \ | ||
--build-url http://mybuild \ | ||
--branch master | ||
--branch master --tag foo5 | ||
|
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 @@ | ||
{ | ||
"consumer": { | ||
"name": "Foo" | ||
}, | ||
"provider": { | ||
"name": "Bar" | ||
}, | ||
"interactions": [ | ||
{ | ||
"description": "an example request", | ||
"providerState": "a provider state", | ||
"request": { | ||
"method": "GET", | ||
"path": "/", | ||
"headers": { | ||
} | ||
}, | ||
"response": { | ||
"status": 200, | ||
"headers": { | ||
"Content-Type": "application/hal+json" | ||
} | ||
} | ||
} | ||
], | ||
"metadata": { | ||
"pactSpecification": { | ||
"version": "2.0.0" | ||
} | ||
} | ||
} |
Oops, something went wrong.