Is there a way with `pact-broker` to show what pac...
# pact-broker
d
Is there a way with
pact-broker
to show what pactflow thinks is deployed in an environment? E.g. when I run
can-i-deploy
I get output that includes:
Copy code
CONSUMER                 | C.VERSION  | PROVIDER                 | P.VERSION  | SUCCESS? | RESULT#
-------------------------|------------|--------------------------|------------|----------|--------
x-service                | ab7d3b5... | y-service                | 84270bd... | true     | 1
I was sort of hoping for a command like
pact-broker what-is-deployed --pacticipant=y-service --to-environment=Dev
. Basically, I’d like to be able to script a way to give us a summary of what versions are deployed for all our services, for informational purposes. I suppose it might be possible through the API… but hoping not to have to go there.
Actually, what would be even better is
pact-broker what-is-deployed --to-environment=Dev
and just get a list of everything pact-flow knows about in that envrionment.
m
I don’t think there is a command for such things
Could you please raise a feature request here: https://pact.canny.io/ (There might already be one for this)
b
@Denis Haskin we have a feature request for what you want. you’ll need to use the API in the meantime.
You can call the API. Go to /environments and then go to the tpb:currently-deployed-deployed-versions link for the enviroment you’re after.
d
Thanks! We’ll use that.