-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add missing HAL docs for various relations and correct test tha…
…t should have identified their absence
- Loading branch information
Showing
5 changed files
with
42 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Can I Deploy | ||
|
||
Allowed methods: `GET` | ||
|
||
A simplified resource that accepts the same parameters as the basic usage of the `can-i-deploy` CLI command. | ||
|
||
**Parameters**: | ||
|
||
* _pacticipant_: The name of the pacticipant (application) you want to deploy (required). | ||
* _version_: The version of the pacticipant (application) you want to deploy (required). | ||
* _to_: The tag used to identify the environment into which you wish to deploy the application (eg. `test` or `prod`). This assumes you have already tagged the currently deployed versions of each of the integrated applications with the same tag. To be specific, the logic checks if the application version you have specified is compatible with the latest versions _for the specified tag_ of all the other applications it is integrated with. This parameter is optional - if not specified, it checks for compatiblity with the latest version of all the integrated applications. | ||
|
||
|
||
If you have an environment that you identify with the tag `prod`, and each time you deployed an application to the prod environment you tagged the relevant application version in the Pact Broker with the tag `prod`, then calling `/can-i-deploy?pacticipant=Foo&version=734137278d&to=prod` will check that version 734137278d of Foo has a successful verification result with each of the integrated application versions that are currently in prod. That is, it is safe to deploy. |
8 changes: 8 additions & 0 deletions
8
lib/pact_broker/doc/views/index/pacticipant-version-tag.markdown
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,8 @@ | ||
# Pacticipant version tag | ||
|
||
Allowed methods: `GET`, `PUT`, `DELETE` | ||
Path: `/pacticipants/{pacticipant}/versions/{version}/tags/{tag}` | ||
|
||
To create a tag, send an empty request with the URL specified above and `Content-Type` of `application/json`. | ||
|
||
Tags must be applied before pacts or verification results are published to ensure that the webhook fires with the correct metadata. |
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,7 @@ | ||
# Matrix | ||
|
||
Allowed methods: `GET` | ||
|
||
This resource returns the "cartesian join" of every pact publication and every verification results publication, and is used to determine whether or not an application is safe to deploy. | ||
|
||
If you need to use this API, consider calling the `/can-i-deploy` resource instead. |
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,5 @@ | ||
# Metrics | ||
|
||
Allowed methods: `GET` | ||
|
||
Returns counts for the Pact Broker resources. |
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