Rafael Anachoreta
02/07/2022, 11:29 AMdescribe-version --latest=production
except using environmentsMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
curl -H"Authorization: Bearer ${PACT_BROKER_TOKEN}" <https://testdemo.pactflow.io/environments/47158b1e-a5e0-4198-a9ab-008aa5e18bc5/deployed-versions/currently-deployed> | jq .
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 21165 100 21165 0 0 52388 0 --:--:-- --:--:-- --:--:-- 52388
{
"_embedded": {
"deployedVersions": [
{
"uuid": "838dc2d8-8554-4ca2-805e-464a6bfb5c5f",
"currentlyDeployed": true,
"createdAt": "2022-02-01T03:40:46+00:00",
"_embedded": {
"pacticipant": {
"name": "pactflow-example-provider-js-sns",
"_links": {
"self": {
"href": "<https://testdemo.pactflow.io/pacticipants/pactflow-example-provider-js-sns>"
}
}
},
"version": {
"number": "d29ce65231c0c9a7cd857ba63503f1fc281eb4c3",
"_links": {
"self": {
"title": "Version",
"name": "d29ce65231c0c9a7cd857ba63503f1fc281eb4c3",
"href": "<https://testdemo.pactflow.io/pacticipants/pactflow-example-provider-js-sns/versions/d29ce65231c0c9a7cd857ba63503f1fc281eb4c3>"
}
}
},
"environment": {
"uuid": "47158b1e-a5e0-4198-a9ab-008aa5e18bc5",
"name": "production",
"displayName": "Production",
"production": true,
"createdAt": "2021-07-08T02:49:05+00:00",
"_links": {
"self": {
"title": "Environment",
"name": "production",
"href": "<https://testdemo.pactflow.io/environments/47158b1e-a5e0-4198-a9ab-008aa5e18bc5>"
},
"pb:currently-deployed-deployed-versions": {
"title": "Versions currently deployed to Production environment",
"href": "<https://testdemo.pactflow.io/environments/47158b1e-a5e0-4198-a9ab-008aa5e18bc5/deployed-versions/currently-deployed>"
},
"pb:currently-supported-released-versions": {
"title": "Versions released and supported in Production environment",
"href": "<https://testdemo.pactflow.io/environments/47158b1e-a5e0-4198-a9ab-008aa5e18bc5/released-versions/currently-supported>"
},
"pb:environments": {
"title": "Environments",
"href": "<https://testdemo.pactflow.io/environments>"
}
}
}
},
"_links": {
"self": {
"href": "<https://testdemo.pactflow.io/deployed-versions/838dc2d8-8554-4ca2-805e-464a6bfb5c5f>"
}
}
},
...
Matt (pactflow.io / pact-js / pact-go)
d29ce65231c0c9a7cd857ba63503f1fc281eb4c3
for the consumer deployed to prodRafael Anachoreta
02/08/2022, 10:08 AMdescribe-version
to return this information? Or maybe adding a new describe-deployed
/`describe-released` that returns all the deployed/released versions on the environment, optionally filtering by name?
pact-broker describe-deployed --environment=production --pacticipant="My Consumer"
Matt (pactflow.io / pact-js / pact-go)
Rafael Anachoreta
02/08/2022, 10:19 AM