Bruno Tacca
10/26/2023, 1:39 PMrecord-deployment?Yousaf Nabi (pactflow.io)
Bruno Tacca
10/26/2023, 2:35 PMBruno Tacca
10/26/2023, 2:35 PMYousaf Nabi (pactflow.io)
Bruno Tacca
10/26/2023, 5:36 PMtest and production are OK.
c. For the Consumer, can-i-deploy for env test and production are NOT OK.
3. Then the Provider deploys to test and after the completed deployment, a record-deployment is sent to the broker with --environment test. The pact now has the Environment Test marked on it (provider side).
4. Now, for the Consumer, can-i-deploy for env test is OK.
5. Consumer can deploy, and send a record-deployment too, it marks the Environment Test on the pact (consumer side)
Same stuff for Prod...
After deploying in Prod, will it mark Test and Prod ? Or will just be replaced with Prod ?
Thanks.Yousaf Nabi (pactflow.io)
test and production are OK. ✅ - provider can deploy to any env if they aren’t reliant on any consumers. no consumers currently in test or prod, so its ok.
c. For the Consumer, can-i-deploy for env test and production are NOT OK. ✅ - correct, the provider is not deployed to production, so even if the contract is valid with the providers main branch, its not got any deployed versions
3. Then the Provider deploys to test and after the completed deployment, a record-deployment is sent to the broker with --environment test. The pact now has the Environment Test marked on it (provider side). ✅
4. Now, for the Consumer, can-i-deploy for env test is OK. ✅
5. Consumer can deploy, and send a record-deployment too, it marks the Environment Test on the pact (consumer side) ✅
Same stuff for Prod...
After deploying in Prod, will it mark Test and Prod ? Or will just be replaced with Prod ? ❓ - A provider may not mirror the same environments as the consumer. This is OK, Pact Broker will keep track of the environments associated consumers and providers exist in.
msn lightbulb In your scenario, in step 3, the provider version is already marked as deployed into Test and therefore if you are just deployed to prod, you would record-deployment is sent to the broker with --environment prod
There would be no harm in re-recording the same version into testYousaf Nabi (pactflow.io)