Skip to content

Instantly share code, notes, and snippets.

@jameshd

jameshd/ci.log Secret

Last active July 4, 2019 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameshd/8ded31e46940740cb0bafa352754335d to your computer and use it in GitHub Desktop.
Save jameshd/8ded31e46940740cb0bafa352754335d to your computer and use it in GitHub Desktop.
?
Tagging Pacts in Broker
[Pipeline] sh
+ docker images pactfoundation/pact-cli
REPOSITORY TAG IMAGE ID CREATED SIZE
pactfoundation/pact-cli latest 73d0190c8934 9 days ago 79.5MB
[Pipeline] sh
+ docker run --rm -e PACT_BROKER_BASE_URL=http://pact-broker-30407140.eu-west-1.elb.amazonaws.com pactfoundation/pact-cli broker version
1.19.0
[Pipeline] sh
+ docker run --rm -e PACT_BROKER_BASE_URL=http://pact-broker-30407140.eu-west-1.elb.amazonaws.com pactfoundation/pact-cli:latest broker create-version-tag --pacticipant web-selling-product-cmd --version 1.12.0 --tag dont-wait-on-pact-verify
Tagging web-selling-product-cmd version 1.12.0 as dont-wait-on-pact-verify
[Pipeline] echo
Running can-i-deploy
[Pipeline] sh
+ docker run --rm -e PACT_BROKER_BASE_URL=http://pact-broker-30407140.eu-west-1.elb.amazonaws.com pactfoundation/pact-cli:latest broker can-i-deploy --pacticipant web-selling-product-cmd --version 1.12.0 --verbose --retry-while-unknown=3
opening connection to pact-broker-30407140.eu-west-1.elb.amazonaws.com:80...
opened
<- "GET /matrix?q[][pacticipant]=web-selling-product-cmd&q[][version]=1.12.0&latestby=cvp HTTP/1.1\r\nAccept: application/hal+json, application/json\r\nConnection: close\r\nHost: pact-broker-30407140.eu-west-1.elb.amazonaws.com\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Thu, 04 Jul 2019 11:00:55 GMT\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Content-Length: 975\r\n"
-> "Connection: close\r\n"
-> "Vary: Accept\r\n"
-> "Server: Webmachine-Ruby/1.5.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.32.0\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "\r\n"
reading 975 bytes...
-> "{\"summary\":{\"deployable\":null,\"reason\":\"There is no verified pact between version 1.12.0 of web-selling-product-cmd and any version of selling-product-command\",\"success\":0,\"failed\":0,\"unknown\":1},\"matrix\":[{\"consumer\":{\"name\":\"web-selling-product-cmd\",\"version\":{\"number\":\"1.12.0\",\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/web-selling-product-cmd/versions/1.12.0\"}}},\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/web-selling-product-cmd\"}}},\"provider\":{\"name\":\"selling-product-command\",\"version\":null,\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/selling-product-command\"}}},\"pact\":{\"createdAt\":\"2019-07-04T11:00:44+00:00\",\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacts/provider/selling-product-command/consumer/web-selling-product-cmd/version/1.12.0\"}}},\"verificationResult\":null}]}"
read 975 bytes
Conn close
opening connection to pact-broker-30407140.eu-west-1.elb.amazonaws.com:80...
opened
<- "GET /matrix?q[][pacticipant]=web-selling-product-cmd&q[][version]=1.12.0&latestby=cvp HTTP/1.1\r\nAccept: application/hal+json, application/json\r\nConnection: close\r\nHost: pact-broker-30407140.eu-west-1.elb.amazonaws.com\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Thu, 04 Jul 2019 11:01:05 GMT\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Content-Length: 975\r\n"
-> "Connection: close\r\n"
-> "Vary: Accept\r\n"
-> "Server: Webmachine-Ruby/1.5.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.32.0\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "\r\n"
reading 975 bytes...
-> "{\"summary\":{\"deployable\":null,\"reason\":\"There is no verified pact between version 1.12.0 of web-selling-product-cmd and any version of selling-product-command\",\"success\":0,\"failed\":0,\"unknown\":1},\"matrix\":[{\"consumer\":{\"name\":\"web-selling-product-cmd\",\"version\":{\"number\":\"1.12.0\",\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/web-selling-product-cmd/versions/1.12.0\"}}},\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/web-selling-product-cmd\"}}},\"provider\":{\"name\":\"selling-product-command\",\"version\":null,\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/selling-product-command\"}}},\"pact\":{\"createdAt\":\"2019-07-04T11:00:44+00:00\",\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacts/provider/selling-product-command/consumer/web-selling-product-cmd/version/1.12.0\"}}},\"verificationResult\":null}]}"
read 975 bytes
Conn close
opening connection to pact-broker-30407140.eu-west-1.elb.amazonaws.com:80...
opened
<- "GET /matrix?q[][pacticipant]=web-selling-product-cmd&q[][version]=1.12.0&latestby=cvp HTTP/1.1\r\nAccept: application/hal+json, application/json\r\nConnection: close\r\nHost: pact-broker-30407140.eu-west-1.elb.amazonaws.com\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Thu, 04 Jul 2019 11:01:15 GMT\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Content-Length: 975\r\n"
-> "Connection: close\r\n"
-> "Vary: Accept\r\n"
-> "Server: Webmachine-Ruby/1.5.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.32.0\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "\r\n"
reading 975 bytes...
-> "{\"summary\":{\"deployable\":null,\"reason\":\"There is no verified pact between version 1.12.0 of web-selling-product-cmd and any version of selling-product-command\",\"success\":0,\"failed\":0,\"unknown\":1},\"matrix\":[{\"consumer\":{\"name\":\"web-selling-product-cmd\",\"version\":{\"number\":\"1.12.0\",\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/web-selling-product-cmd/versions/1.12.0\"}}},\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/web-selling-product-cmd\"}}},\"provider\":{\"name\":\"selling-product-command\",\"version\":null,\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/selling-product-command\"}}},\"pact\":{\"createdAt\":\"2019-07-04T11:00:44+00:00\",\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacts/provider/selling-product-command/consumer/web-selling-product-cmd/version/1.12.0\"}}},\"verificationResult\":null}]}"
read 975 bytes
Conn close
opening connection to pact-broker-30407140.eu-west-1.elb.amazonaws.com:80...
opened
<- "GET /matrix?q[][pacticipant]=web-selling-product-cmd&q[][version]=1.12.0&latestby=cvp HTTP/1.1\r\nAccept: application/hal+json, application/json\r\nConnection: close\r\nHost: pact-broker-30407140.eu-west-1.elb.amazonaws.com\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Thu, 04 Jul 2019 11:01:25 GMT\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Content-Length: 975\r\n"
-> "Connection: close\r\n"
-> "Vary: Accept\r\n"
-> "Server: Webmachine-Ruby/1.5.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.32.0\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "\r\n"
reading 975 bytes...
-> "{\"summary\":{\"deployable\":null,\"reason\":\"There is no verified pact between version 1.12.0 of web-selling-product-cmd and any version of selling-product-command\",\"success\":0,\"failed\":0,\"unknown\":1},\"matrix\":[{\"consumer\":{\"name\":\"web-selling-product-cmd\",\"version\":{\"number\":\"1.12.0\",\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/web-selling-product-cmd/versions/1.12.0\"}}},\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/web-selling-product-cmd\"}}},\"provider\":{\"name\":\"selling-product-command\",\"version\":null,\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/selling-product-command\"}}},\"pact\":{\"createdAt\":\"2019-07-04T11:00:44+00:00\",\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacts/provider/selling-product-command/consumer/web-selling-product-cmd/version/1.12.0\"}}},\"verificationResult\":null}]}"
read 975 bytes
Conn close
Computer says no ¯\_(ツ)_/¯
CONSUMER | C.VERSION | PROVIDER | P.VERSION | SUCCESS?
------------------------|-----------|-------------------------|-----------|---------
web-selling-product-cmd | 1.12.0 | selling-product-command | ??? | ???
There is no verified pact between version 1.12.0 of web-selling-product-cmd and any version of selling-product-command
root@ip-10-4-1-163:/home/ubuntu# docker run --rm -e PACT_BROKER_BASE_URL=http://pact-broker-30407140.eu-west-1.elb.amazonaws.com pactfoundation/pact-cli:latest broker can-i-deploy --pacticipant web-selling-product-cmd --version 1.12.0 --verbose --retry-while-unknown=3
opening connection to pact-broker-30407140.eu-west-1.elb.amazonaws.com:80...
opened
<- "GET /matrix?q[][pacticipant]=web-selling-product-cmd&q[][version]=1.12.0&latestby=cvp HTTP/1.1\r\nAccept: application/hal+json, application/json\r\nConnection: close\r\nHost: pact-broker-30407140.eu-west-1.elb.amazonaws.com\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Thu, 04 Jul 2019 10:52:24 GMT\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Content-Length: 1223\r\n"
-> "Connection: close\r\n"
-> "Vary: Accept\r\n"
-> "Server: Webmachine-Ruby/1.5.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.32.0\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "\r\n"
reading 1223 bytes...
-> "{\"summary\":{\"deployable\":true,\"reason\":\"All required verification results are published and successful\",\"success\":1,\"failed\":0,\"unknown\":0},\"matrix\":[{\"consumer\":{\"name\":\"web-selling-product-cmd\",\"version\":{\"number\":\"1.12.0\",\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/web-selling-product-cmd/versions/1.12.0\"}}},\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/web-selling-product-cmd\"}}},\"provider\":{\"name\":\"selling-product-command\",\"version\":{\"number\":\"1.25.0\"},\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacticipants/selling-product-command\"}}},\"pact\":{\"createdAt\":\"2019-07-04T10:50:23+00:00\",\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacts/provider/selling-product-command/consumer/web-selling-product-cmd/version/1.12.0\"}}},\"verificationResult\":{\"success\":true,\"verifiedAt\":\"2019-07-04T10:51:06+00:00\",\"_links\":{\"self\":{\"href\":\"http://pact-broker-30407140.eu-west-1.elb.amazonaws.com/pacts/provider/selling-product-command/consumer/web-selling-product-cmd/pact-version/678e85e3aced58a474c1bcc8527578257f3d8f4a/verification-results/191\"}}}}]}"
read 1223 bytes
Conn close
Computer says yes \o/
CONSUMER | C.VERSION | PROVIDER | P.VERSION | SUCCESS?
------------------------|-----------|-------------------------|-----------|---------
web-selling-product-cmd | 1.12.0 | selling-product-command | 1.25.0 | true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment