Hello. Can I use pact_verifier_cli to specify the ...
# pact-broker
s
Hello. Can I use pact_verifier_cli to specify the provider environment? According to the output of the
pact_verifier_cli --help
command, there is no such possibility. Is it so?
y
consumer version selectors option plus the json payload of the required selectors
s
aha! thank you
m
Is this for verification, or uploading results?
The environment field is populated by a
pact-broker record-deployment
command
s
Thank you
👍 1
b
@Serghei Iakovlev you shouldn’t be verifying against a deployed provider
The point of using pact is to verify the pact before the provider is deployed.
s
@Beth (pactflow.io/Pact Broker/pact-ruby) We have several environments and provider usually goes into production after a whole chain of verifications and tests. I thought it would be nice to understand that a certain version of the provider is deployed to a certain environment (say, STAGING, RC, etc) and the pact is verified
e.g. Users API -> PROD, v1.2.3, verified -> RC, v1.2.4, verified -> STAGING, v1.2.5, not verified
b
Ah, good, no, that’s fine.
As matt says, use the record-deployment to let pactflow know that the version has been deployed
👍 1