Siim Mardus
08/26/2024, 11:41 AMMatt (pactflow.io / pact-js / pact-go)
Siim Mardus
08/26/2024, 12:13 PMYep! seeNeat! Does it also work for open source pact broker? I wanted to test it out manually, but I get
{
"error": "The requested document was not found on this server."
}
I am providing the consumer name, consumer version and an existing environment as path parameters.
https://<broker_url>/pacticipants/<consumer-name>/versions/<consumer-version>/deployed-versions/environment/test
What about other CLI calls like publishing pacts, or calling can-i-deploy?We are running various stages in different containers. So far we had to install the CLI in one container during the build, to publish pacts and run can-i-deploy, but publishing the build to environments happens in another container, where we'd have to install it again. š Just peculiarities of our pipeline.
Siim Mardus
08/26/2024, 12:19 PMSiim Mardus
08/26/2024, 1:06 PMSiim Mardus
08/26/2024, 1:11 PMtest
2. Deploy to beta environment. record deployment for beta
3. Deployment gets aborted for any reason, this triggers automatic rollbacks for beta and test
In those automatic rollbacks is where we would like to run pact undeploy.
Is this the expected approach or is there an alternative way to go about this?Siim Mardus
08/26/2024, 1:14 PMSiim Mardus
08/28/2024, 5:30 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
--verbose command, and then use that info to determine how to proceed (it will show the verb, path, headers and payload)Siim Mardus
08/28/2024, 6:25 AMSiim Mardus
08/28/2024, 6:58 AMtest
2. Deploy version 123 to beta
3. Deploy version 123 to prod
4. Deployment complete
At this point, the versions should be as follows, right?
⢠test - 123
⢠beta - 123
⢠prod - 123
Now someone makes another deployment
1. Deploy version 456 to test
2. Deploy version 456 to beta
3. uh-oh, the developer noticed a bug. Aborting the deployment, rolling back
4. Rolling back version 456 in beta
5. Rolling back version 456 in test
What I expected to happen, is that the versions in pact broker would be as follows:
⢠test - 123
⢠beta - 123
⢠prod - 123
... since they all rolled back..
What happened, when using record-undeployment though, was:
⢠prod - 123
there were no versions marked with test or beta anymore in pact broker...Siim Mardus
08/28/2024, 7:01 AM