pact-js
pact-js copied to clipboard
VerifyProvider method always return failure test although all the interactions have passed
Software versions
Please provide at least OS and version of pact-js
- OS: Mac OSX 11.6.2_
- Consumer Pact library: @pact-foundation/pact ^9.17.3
- Provider Pact library: no clue
-
Node Version:
v16.11.1
Issue Checklist
Please confirm the following:
- [x] I have upgraded to the latest
- [x] I have the read the FAQs in the Readme
- [x] I have triple checked, that there are no unhandled promises in my code and have read the section on intermittent test failures
- [x] I have set my log level to debug and attached a log file showing the complete request/response cycle
- [ ] For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem
Expected behaviour
once all the interactions have passed we expect that the tests will also be successful
Actual behaviour
I'm having the following error
FAIL src/api.pact.ts (6.691 s)
Pact Verification
✕ validates the expectations of SignupService (5005 ms)
● Pact Verification › validates the expectations of SignupService
thrown: "Exceeded timeout of 5000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
25 | describe('Pact Verification', () => {
26 | // eslint-disable-next-line jest/expect-expect
> 27 | it('validates the expectations of SignupService', () => {
| ^
28 | const opts: VerifierOptions = {
29 | logLevel: 'debug',
30 | providerVersionTags: ['test'],
at src/api.pact.ts:27:3
at Object.<anonymous> (src/api.pact.ts:25:1)
at TestScheduler.scheduleTests (../../node_modules/@jest/core/build/TestScheduler.js:333:13)
at runJest (../../node_modules/@jest/core/build/runJest.js:404:19)
at _run10000 (../../node_modules/@jest/core/build/cli/index.js:320:7)
at runCLI (../../node_modules/@jest/core/build/cli/index.js:173:3)
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 6.757 s, estimated 8 s
Steps to reproduce
with a given file
/* istanbul ignore file */
// eslint-disable-next-line import/no-extraneous-dependencies
import { Verifier, VerifierOptions } from '@pact-foundation/pact';
import express from 'express';
import signupRoutes from './routes/api/signup-routes';
import SignupService from './services/signup';
const newAccount = {
accountUuid: 'blah',
realm: 'blah',
userUuid: 'blah',
groupIds: ['271b6c14-9334-11ec-b909-0242ac120002', 'f325425c-9330-11ec-b909-0242ac120002'],
};
const port = 8080;
// Setup provider server to verify
const app = express();
app.use(express.json());
app.use('/api', signupRoutes);
const server = app.listen(port);
describe('Pact Verification', () => {
// eslint-disable-next-line jest/expect-expect
it('validates the expectations of SignupService', () => {
const opts: VerifierOptions = {
logLevel: 'debug',
providerVersionTags: ['test'],
providerBaseUrl: `http://localhost:${port}`,
provider: 'PlatformSignupServer',
providerVersion: '1.0.0',
pactBrokerUrl: 'http://localhost:9292/',
stateHandlers: {
'user doesnt exist in the database': () => {
jest.spyOn(SignupService.prototype, 'createAccount').mockResolvedValueOnce(newAccount);
return Promise.resolve(newAccount);
},
},
};
if (process.env.CI) {
Object.assign(opts, {
publishVerificationResult: true,
});
}
return new Verifier(opts)
.verifyProvider()
.then((output) => {
console.log(output);
})
.finally(() => {
server.close();
});
});
});
the result of the test is always a failure even though the interactions are passing.
Relevant log files
Please ensure you set logging to DEBUG
and attach any relevant log files here (or link to a gist).
$ NODE_TLS_REJECT_UNAUTHORIZED=0 API_HOSTNAME=internal-customer-signup-service-mytzud-578406012.us-east-1.elb.amazonaws.com API_PROTOCOL=https CI=true yarn test src/api.pact.ts --testMatch \"**/*.pact.ts\"
$ jest --runInBand src/api.pact.ts --testMatch '"**/*.pact.ts"'
[2022-03-28 20:32:04.062 +0000] INFO (77810 on MAC-CA-BELFOER2): [email protected]: Verifying provider
[2022-03-28 20:32:04.062 +0000] INFO (77810 on MAC-CA-BELFOER2): [email protected]: debug request/response logging enabled
[2022-03-28 20:32:04.062 +0000] INFO (77810 on MAC-CA-BELFOER2): [email protected]: Verifying Pacts.
[2022-03-28 20:32:04.062 +0000] INFO (77810 on MAC-CA-BELFOER2): [email protected]: Verifying Pact Files
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: Starting pact binary '/Users/belfoer1/Documents/platform/signup/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.83/pact/bin/pact-provider-verifier', with arguments [--provider-states-setup-url http://localhost:54256/_pactSetup --log-level debug --provider-version-tag test --provider-base-url http://localhost:54256 --provider PlatformSignupServer --provider-app-version 1.0.0 --pact-broker-base-url http://localhost:9292/ --publish-verification-results true --verbose true]
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: Created '/Users/belfoer1/Documents/platform/signup/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.83/pact/bin/pact-provider-verifier' process with PID: 77930
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: opening connection to localhost:9292...
opened
<- "GET / HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nHost: localhost:9292\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Mon, 28 Mar 2022 20:32:05 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 4300\r\n"
-> "\r\n"
reading 4300 bytes...
-> "{\"_links\":{\"self\":{\"href\":\"http://localhost:9292\",\"title\":\"Index\",\"templated\":false},\"pb:publish-pact\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/consumer/{consumer}/version/{consumerApplicationVersion}\",\"title\":\"Publish a pact\",\"templated\":true},\"pb:publish-contracts\":{\"href\":\"http://localhost:9292/contracts/publish\",\"title\":\"Publish contracts\",\"templated\":false},\"pb:latest-pact-versions\":{\"href\":\"http://localhost:9292/pacts/latest\",\"title\":\"Latest pact versions\",\"templated\":false},\"pb:tagged-pact-versions\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/consumer/{consumer}/tag/{tag}\",\"title\":\"All versions of a pact for a given consumer, provider and consumer version tag\",\"templated\":false},\"pb:pacticipants\":{\"href\":\"http://localhost:9292/pacticipants\",\"title\":\"Pacticipants\",\"templated\":false},\"pb:pacticipant\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}\",\"title\":\"Fetch pacticipant by name\",\"templated\":true},\"pb:latest-provider-pacts\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/latest\",\"title\":\"Latest pacts by provider\",\"templated\":true},\"pb:latest-provider-pacts-with-tag\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/latest/{tag}\",\"title\":\"Latest pacts for provider with the specified tag\",\"templated\":true},\"pb:provider-pacts-with-tag\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/tag/{tag}\",\"title\":\"All pact versions for the provider with the specified consumer version tag\",\"templated\":true},\"pb:provider-pacts\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}\",\"title\":\"All pact versions for the specified provider\",\"templated\":true},\"pb:latest-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/latest-version\",\"title\":\"Latest pacticipant version\",\"templated\":true},\"pb:latest-tagged-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/latest-version/{tag}\",\"title\":\"Latest pacticipant version with the specified tag\",\"templated\":true},\"pb:webhooks\":{\"href\":\"http://localhost:9292/webhooks\",\"title\":\"Webhooks\",\"templated\":false},\"pb:webhook\":{\"href\":\"http://localhost:9292/webhooks/{uuid}\",\"title\":\"Webhook\",\"templated\":true},\"pb:integrations\":{\"href\":\"http://localhost:9292/integrations\",\"title\":\"Integrations\",\"templated\":false},\"pb:pacticipant-version-tag\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/versions/{version}/tags/{tag}\",\"title\":\"Get, create or delete a tag for a pacticipant version\",\"templated\":true},\"pb:pacticipant-branch-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/branches/{branch}/versions/{version}\",\"title\":\"Get or add/create a pacticipant version for a branch\",\"templated\":true},\"pb:pacticipant-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/versions/{version}\",\"title\":\"Get, create or delete a pacticipant version\",\"templated\":true},\"pb:metrics\":{\"href\":\"http://localhost:9292/metrics\",\"title\":\"Get Pact Broker metrics\"},\"pb:can-i-deploy-pacticipant-version-to-tag\":{\"href\":\"http://localhost:9292/can-i-deploy?pacticipant={pacticipant}&version={version}&to={tag}\",\"title\":\"Determine if an application version can be safely deployed to an environment identified by the given tag\",\"templated\":true},\"pb:can-i-deploy-pacticipant-version-to-environment\":{\"href\":\"http://localhost:9292/can-i-deploy?pacticipant={pacticipant}&version={version}&environment={environment}\",\"title\":\"Determine if an application version can be safely deployed to an environment\",\"templated\":true},\"pb:provider-pacts-for-verification\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/for-verification\",\"title\":\"Pact versions to be verified for the specified provider\",\"templated\":true},\"beta:provider-pacts-for-verification\":{\"name\":\"beta\",\"href\":\"http://localhost:9292/pacts/provider/{provider}/for-verification\",\"title\":\"DEPRECATED - please use pb:provider-pacts-for-verification\",\"templated\":true},\"curies\":[{\"name\":\"pb\",\"href\":\"http://localhost:9292/doc/{rel}?context=index\",\"templated\":true},{\"name\":\"beta\",\"href\":\"http://localhost:9292/doc/{rel}?context=index\",\"templated\":true}],\"pb:environments\":{\"title\":\"Environments\",\"href\":\"http://localhost:9292/environments\",\"templated\":false},\"pb:environment\":{\"title\":\"Environment\",\"href\":\"http://localhost:9292/environments/{uuid}\",\"templated\":true}}}"
read 4300 bytes
Conn keep-alive
INFO: Fetching pacts for PlatformSignupServer from http://localhost:9292/ with the selection criteria:
opening connection to localhost:9292...
opened
<- "POST /pacts/provider/PlatformSignupServer/for-verification HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nContent-Type: application/json\r\nHost: localhost:9292\r\nContent-Length: 61\r\n\r\n"
<- "{\"includePendingStatus\":false,\"providerVersionTags\":[\"test\"]}"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Mon, 28 Mar 2022 20:32:06 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 905\r\n"
-> "\r\n"
reading 905 bytes...
-> "{\"_embedded\":{\"pacts\":[{\"shortDescription\":\"latest\",\"verificationProperties\":{\"notices\":[{\"when\":\"before_verification\",\"text\":\"The pact at http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1 is being verified because the pact content belongs to the consumer version matching the following criterion:\\n * latest version of PlatformSignupClient that has a pact with PlatformSignupServer (1)\"}]},\"_links\":{\"self\":{\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05\",\"name\":\"Pact between PlatformSignupClient (1) and PlatformSignupServer\"}}}]},\"_links\":{\"self\":{\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/for-verification\",\"title\":\"Pacts to be verified\"}}}"
read 905 bytes
Conn keep-alive
opening connection to localhost:9292...
opened
<- "GET /pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05 HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: Ruby\r\nHost: localhost:9292\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Mon, 28 Mar 2022 20:32:06 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 5205\r\n"
-> "\r\n"
reading 5205 bytes...
-> "{\"consumer\":{\"name\":\"PlatformSignupClient\"},\"provider\":{\"name\":\"PlatformSignupServer\"},\"interactions\":[{\"_id\":\"f7e23d19eeca20b74ad59a808907e78346597082\",\"description\":\"save a new customer\",\"providerState\":\"user doesnt exist in the database\",\"request\":{\"method\":\"POST\",\"path\":\"/api/signup\",\"headers\":{\"Content-Type\":\"application/json\",\"Accept\":\"application/json\"},\"body\":{\"emailAddress\":\"DIuser@exa
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: mple.com\",\"password\":\"$Silanis1\",\"firstName\":\"DIstring\",\"lastName\":\"DIstring\",\"customerName\":\"DIstring\"},\"matchingRules\":{\"$.headers.Content-Type\":{\"match\":\"type\"},\"$.headers.Accept\":{\"match\":\"type\"}}},\"response\":{\"status\":201,\"headers\":{\"Content-Type\":\"application/json; charset=utf-8\"},\"body\":{\"accountUuid\":\"d4168ad5-7dc8-4736-91db-96b3b802a66a\",\"realm\":\"us-east-1_5zspcLher\",\"userUuid\":\"211d5ab1-c18d-4f61-85ec-1b2bd7cfe45b\",\"groupIds\":[\"271b6c14-9334-11ec-b909-0242ac120002\",\"f325425c-9330-11ec-b909-0242ac120002\"]}}}],\"metadata\":{\"pactSpecification\":{\"version\":\"2.0.0\"}},\"createdAt\":\"2022-03-28T19:22:59+00:00\",\"_links\":{\"self\":{\"title\":\"Pact\",\"name\":\"Pact between PlatformSignupClient (1) and PlatformSignupServer\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1\"},\"pb:consumer\":{\"title\":\"Consumer\",\"name\":\"PlatformSignupClient\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient\"},\"pb:consumer-version\":{\"title\":\"Consumer version\",\"name\":\"1\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1\"},\"pb:consumer-versions\":[{\"title\":\"Consumer version\",\"name\":\"1\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1\"}],\"pb:provider\":{\"title\":\"Provider\",\"name\":\"PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer\"},\"pb:pact-version\":{\"title\":\"Pact content version permalink\",\"name\":\"aa8f8a35a8810678e66d699165328de7ea07b4a1\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1\"},\"pb:latest-pact-version\":{\"title\":\"Latest version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/latest\"},\"pb:all-pact-versions\":{\"title\":\"All versions of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/versions\"},\"pb:latest-untagged-pact-version\":{\"title\":\"Latest untagged version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/latest-untagged\"},\"pb:latest-tagged-pact-version\":{\"title\":\"Latest tagged version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/latest/{tag}\",\"templated\":true},\"pb:previous-distinct\":{\"title\":\"Previous distinct version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1/previous-distinct\"},\"pb:diff-previous-distinct\":{\"title\":\"Diff with previous distinct version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1/diff/previous-distinct\"},\"pb:diff\":{\"title\":\"Diff with another specified version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/diff/pact-version/{pactVersion}\",\"templated\":true},\"pb:pact-webhooks\":{\"title\":\"Webhooks for the pact between PlatformSignupClient and PlatformSignupServer\",\"href\":\"http://localhost:9292/webhooks/provider/PlatformSignupServer/consumer/PlatformSignupClient\"},\"pb:consumer-webhooks\":{\"title\":\"Webhooks for all pacts with provider PlatformSignupServer\",\"href\":\"http://localhost:9292/webhooks/consumer/PlatformSignupServer\"},\"pb:tag-prod-version\":{\"title\":\"PUT to this resource to tag this consumer version as 'production'\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1/tags/prod\"},\"pb:tag-version\":{\"title\":\"PUT to this resource to tag this consumer version\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1/tags/{tag}\"},\"pb:publish-verification-results\":{\"title\":\"Publish verification results\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05/verification-results\"},\"pb:latest-verification-results\":{\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/latest\"},\"pb:triggered-webhooks\":{\"title\":\"Webhooks triggered by the publication of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1/triggered-webhooks\"},\"pb:matrix-for-consumer-version\":{\"title\":\"View matrix rows for the consumer version to which this pact belongs\",\"href\":\"http://localhost:9292/matrix?q[][pacticipant]=PlatformSignupClient&q[][version]=1&latestby=cvpv\"},\"curies\":[{\"name\":\"pb\",\"href\":\"http://localhost:9292/doc/{rel}?context=pact\",\"templated\":true}]}}"
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: read 5205 bytes
Conn keep-alive
INFO: Reading pact at http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05
WARN: Please note: we are tracking events anonymously to gather important usage statistics like Pact-Ruby version
and operating system. To disable tracking, set the 'PACT_DO_NOT_TRACK' environment
variable to 'true'.
DEBUG: The pact at http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1 is being verified because the pact content belongs to the consumer version matching the following criterion:
* latest version of PlatformSignupClient that has a pact with PlatformSignupServer (1)
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]:
Verifying a pact between PlatformSignupClient and PlatformSignupServer
Given user doesnt exist in the database
save a new customer
with POST /api/signup
returns a response which
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: DEBUG: Setting up provider state 'user doesnt exist in the database' for consumer 'PlatformSignupClient' using provider state set up URL http://localhost:54256/_pactSetup
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: I, [2022-03-28T16:32:06.132863 #77930] INFO -- request: POST http://localhost:54256/_pactSetup
D, [2022-03-28T16:32:06.132895 #77930] DEBUG -- request: User-Agent: "Faraday v0.17.5"
Content-Type: "application/json"
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: incoming request
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: outgoing response
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: I, [2022-03-28T16:32:06.157893 #77930] INFO -- response: Status 200
D, [2022-03-28T16:32:06.157938 #77930] DEBUG -- response: x-powered-by: "Express"
content-type: "text/plain; charset=utf-8"
content-length: "2"
etag: "W/\"2-nOO9QiTIwXgNtWtBJezz8kv3SLc\""
date: "Mon, 28 Mar 2022 20:32:06 GMT"
connection: "close"
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: incoming request
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: Proxing
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: outgoing response
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: has status code 201
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: has a matching body
includes headers
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: "Content-Type" which equals "application/json; charset=utf-8"
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]:
1 interaction, 0 failures
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: opening connection to localhost:9292...
opened
<- "GET /pacticipants/PlatformSignupServer HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nHost: localhost:9292\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Mon, 28 Mar 2022 20:32:06 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 1964\r\n"
-> "\r\n"
reading 1964 bytes...
-> "{\"name\":\"PlatformSignupServer\",\"displayName\":\"Platform Signup Server\",\"createdAt\":\"2021-11-12T13:20:17+00:00\",\"_embedded\":{\"latestVersion\":{\"number\":\"1.3.21\",\"_links\":{\"self\":{\"title\":\"Version\",\"name\":\"1.3.21\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.3.21\"}}},\"labels\":[],\"latest-version\":{\"number\":\"1.3.21\",\"_links\":{\"self\":{\"title\":\"Version\",\"name\":\"1.3.21\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.3.21\"}},\"title\":\"DEPRECATED - please use latestVersion\",\"name\":\"DEPRECATED - please use latestVersion\"}},\"_links\":{\"self\":{\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer\"},\"pb:versions\":{\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions\"},\"pb:version\":{\"title\":\"Get, create or delete a pacticipant version\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/{version}\",\"templated\":true},\"pb:version-tag\":{\"title\":\"Get, create or delete a tag for a version of PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/{version}/tags/{tag}\",\"templated\":true},\"pb:branch-version\":{\"title\":\"Get or add/create a version for a branch of PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/branches/{branch}/versions/{version}\",\"templated\":true},\"pb:label\":{\"title\":\"Get, create or delete a label for PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/labels/{label}\",\"templated\":true},\"versions\":{\"title\":\"Deprecated - use pb:versions\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions\"},\"pb:can-i-deploy-badge\":{\"title\":\"Can I Deploy PlatformSignupServer badge\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/latest-version/{tag}/can-i-deploy/to/{environmentTag}/badge\",\"templated\":true},\"curies\":[{\"name\":\"pb\",\"href\":\"http://localhost:9292/doc/{rel}?context=pacticipant\",\"templated\":true}]}}"
read 1964 bytes
Conn keep-alive
INFO: Tagging version 1.0.0 of PlatformSignupServer as "test"
opening connection to localhost:9292...
opened
<- "PUT /pacticipants/PlatformSignupServer/versions/1.0.0/tags/test HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nContent-Type: application/json\r\nHost: localhost:9292\r\nContent-Length: 0\r\n\r\n"
<- ""
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Mon, 28 Mar 2022 20:32:06 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 451\r\n"
-> "\r\n"
reading 451 bytes...
-> "{\"name\":\"test\",\"createdAt\":\"2021-11-15T18:44:52+00:00\",\"_links\":{\"self\":{\"title\":\"Tag\",\"name\":\"test\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.0.0/tags/test\"},\"version\":{\"title\":\"Version\",\"name\":\"1.0.0\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.0.0\"},\"pacticipant\":{\"title\":\"Pacticipant\",\"name\":\"PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer\"}}}"
read 451 bytes
Conn keep-alive
opening connection to localhost:9292...
opened
<- "POST /pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05/verification-results HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json, */*\r\nUser-Agent: Ruby\r\nContent-Type: application/json\r\nHost: localhost:9292\r\nContent-Length: 2064\r\n\r\n"
<- "{\"success\":true,\"providerApplicationVersion\":\"1.0.0\",\"testResults\":{\"tests\":[{\"testDescription\":\"has status code 201\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has status code 201\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualStatus\":201},{\"testDescription\":\"has a matching body\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has a matching body\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualBody\":{\"accountUuid\":\"d4168ad5-7dc8-4736-91db-96b3b802a66a\",\"realm\":\"us-east-1_5zspcLher\",\"userUuid\":\"211d5ab1-c18d-4f61-85ec-1b2bd7cfe45b\",\"groupIds\":[\"271b6c14-9334-11ec-b909-0242ac120002\",\"f325425c-9330-11ec-b909-0242ac120002\"]}},{\"testDescription\":\"\\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which includes headers \\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualHeaders\":{\"X-Powered-By\":\"Express\",\"Content-Type\":\"application/json; charset=utf-8\",\"Content-Length\":\"225\",\"Etag\":\"W/\\\"e1-UBUYkvLbmme2Ld7OJQImqwnSkyo\\\"\",\"Date\":\"Mon, 28 Mar 2022 20:32:06 GMT\",\"Connection\":\"close\"}}],\"summary\":{\"testCount\":3,\"failureCount\":0},\"metadata\":{\"warning\":\"These test results use a beta format. Do not rely on it, as it will definitely change.\",\"pactVerificationResultsSpecification\":{\"version\":\"1.0.0-beta.1\"}}}}"
-> "HTTP/1.1 201 Created\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Location: http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/275\r\n"
-> "Date: Mon, 28 Mar 2022 20:32:06 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 3063\r\n"
-> "\r\n"
reading 3063 bytes...
-> "{\"providerName\":\"PlatformSignupServer\",\"providerApplicationVersion\":\"1.0.0\",\"success\":true,\"verificationDate\":\"2022-03-28T20:32:06+00:00\",\"testResults\":{\"tests\":[{\"testDescription\":\"has status code 201\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has status code 201\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualStatus\":201},{\"testDescription\":\"has a matching body\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has a matching body\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in
[2022-03-28 20:32:04.062 +0000] DEBUG (77810 on MAC-CA-BELFOER2): [email protected]: the database\",\"interactionDescription\":\"save a new customer\",\"actualBody\":{\"accountUuid\":\"d4168ad5-7dc8-4736-91db-96b3b802a66a\",\"realm\":\"us-east-1_5zspcLher\",\"userUuid\":\"211d5ab1-c18d-4f61-85ec-1b2bd7cfe45b\",\"groupIds\":[\"271b6c14-9334-11ec-b909-0242ac120002\",\"f325425c-9330-11ec-b909-0242ac120002\"]}},{\"testDescription\":\"\\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which includes headers \\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualHeaders\":{\"X-Powered-By\":\"Express\",\"Content-Type\":\"application/json; charset=utf-8\",\"Content-Length\":\"225\",\"Etag\":\"W/\\\"e1-UBUYkvLbmme2Ld7OJQImqwnSkyo\\\"\",\"Date\":\"Mon, 28 Mar 2022 20:32:06 GMT\",\"Connection\":\"close\"}}],\"summary\":{\"testCount\":3,\"failureCount\":0},\"metadata\":{\"warning\":\"These test results use a beta format. Do not rely on it, as it will definitely change.\",\"pactVerificationResultsSpecification\":{\"version\":\"1.0.0-beta.1\"}}},\"verifiedBy\":{},\"_links\":{\"self\":{\"title\":\"Verification result\",\"name\":\"Verification result 275 for Pact between PlatformSignupClient (1) and PlatformSignupServer\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/veri"
-> "fication-results/275\"},\"pb:pact-version\":{\"title\":\"Pact\",\"name\":\"Pact between PlatformSignupClient (1) and PlatformSignupServer\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/Y3ZuPTE\"},\"pb:triggered-webhooks\":{\"title\":\"Webhooks triggered by the publication of this verification result\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/275/triggered-webhooks\"}}}"
read 3063 bytes
Conn keep-alive
INFO: Verification results published to http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/275
[2022-03-28 20:32:04.062 +0000] INFO (77810 on MAC-CA-BELFOER2): [email protected]: Pact Verification succeeded.
● Cannot log after tests are done. Did you forget to wait for something async in your test?
Attempted to log "opening connection to localhost:9292...
opened
<- "GET / HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nHost: localhost:9292\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Mon, 28 Mar 2022 20:32:05 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 4300\r\n"
-> "\r\n"
reading 4300 bytes...
-> "{\"_links\":{\"self\":{\"href\":\"http://localhost:9292\",\"title\":\"Index\",\"templated\":false},\"pb:publish-pact\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/consumer/{consumer}/version/{consumerApplicationVersion}\",\"title\":\"Publish a pact\",\"templated\":true},\"pb:publish-contracts\":{\"href\":\"http://localhost:9292/contracts/publish\",\"title\":\"Publish contracts\",\"templated\":false},\"pb:latest-pact-versions\":{\"href\":\"http://localhost:9292/pacts/latest\",\"title\":\"Latest pact versions\",\"templated\":false},\"pb:tagged-pact-versions\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/consumer/{consumer}/tag/{tag}\",\"title\":\"All versions of a pact for a given consumer, provider and consumer version tag\",\"templated\":false},\"pb:pacticipants\":{\"href\":\"http://localhost:9292/pacticipants\",\"title\":\"Pacticipants\",\"templated\":false},\"pb:pacticipant\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}\",\"title\":\"Fetch pacticipant by name\",\"templated\":true},\"pb:latest-provider-pacts\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/latest\",\"title\":\"Latest pacts by provider\",\"templated\":true},\"pb:latest-provider-pacts-with-tag\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/latest/{tag}\",\"title\":\"Latest pacts for provider with the specified tag\",\"templated\":true},\"pb:provider-pacts-with-tag\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/tag/{tag}\",\"title\":\"All pact versions for the provider with the specified consumer version tag\",\"templated\":true},\"pb:provider-pacts\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}\",\"title\":\"All pact versions for the specified provider\",\"templated\":true},\"pb:latest-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/latest-version\",\"title\":\"Latest pacticipant version\",\"templated\":true},\"pb:latest-tagged-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/latest-version/{tag}\",\"title\":\"Latest pacticipant version with the specified tag\",\"templated\":true},\"pb:webhooks\":{\"href\":\"http://localhost:9292/webhooks\",\"title\":\"Webhooks\",\"templated\":false},\"pb:webhook\":{\"href\":\"http://localhost:9292/webhooks/{uuid}\",\"title\":\"Webhook\",\"templated\":true},\"pb:integrations\":{\"href\":\"http://localhost:9292/integrations\",\"title\":\"Integrations\",\"templated\":false},\"pb:pacticipant-version-tag\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/versions/{version}/tags/{tag}\",\"title\":\"Get, create or delete a tag for a pacticipant version\",\"templated\":true},\"pb:pacticipant-branch-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/branches/{branch}/versions/{version}\",\"title\":\"Get or add/create a pacticipant version for a branch\",\"templated\":true},\"pb:pacticipant-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/versions/{version}\",\"title\":\"Get, create or delete a pacticipant version\",\"templated\":true},\"pb:metrics\":{\"href\":\"http://localhost:9292/metrics\",\"title\":\"Get Pact Broker metrics\"},\"pb:can-i-deploy-pacticipant-version-to-tag\":{\"href\":\"http://localhost:9292/can-i-deploy?pacticipant={pacticipant}&version={version}&to={tag}\",\"title\":\"Determine if an application version can be safely deployed to an environment identified by the given tag\",\"templated\":true},\"pb:can-i-deploy-pacticipant-version-to-environment\":{\"href\":\"http://localhost:9292/can-i-deploy?pacticipant={pacticipant}&version={version}&environment={environment}\",\"title\":\"Determine if an application version can be safely deployed to an environment\",\"templated\":true},\"pb:provider-pacts-for-verification\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/for-verification\",\"title\":\"Pact versions to be verified for the specified provider\",\"templated\":true},\"beta:provider-pacts-for-verification\":{\"name\":\"beta\",\"href\":\"http://localhost:9292/pacts/provider/{provider}/for-verification\",\"title\":\"DEPRECATED - please use pb:provider-pacts-for-verification\",\"templated\":true},\"curies\":[{\"name\":\"pb\",\"href\":\"http://localhost:9292/doc/{rel}?context=index\",\"templated\":true},{\"name\":\"beta\",\"href\":\"http://localhost:9292/doc/{rel}?context=index\",\"templated\":true}],\"pb:environments\":{\"title\":\"Environments\",\"href\":\"http://localhost:9292/environments\",\"templated\":false},\"pb:environment\":{\"title\":\"Environment\",\"href\":\"http://localhost:9292/environments/{uuid}\",\"templated\":true}}}"
read 4300 bytes
Conn keep-alive
INFO: Fetching pacts for PlatformSignupServer from http://localhost:9292/ with the selection criteria:
opening connection to localhost:9292...
opened
<- "POST /pacts/provider/PlatformSignupServer/for-verification HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nContent-Type: application/json\r\nHost: localhost:9292\r\nContent-Length: 61\r\n\r\n"
<- "{\"includePendingStatus\":false,\"providerVersionTags\":[\"test\"]}"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Mon, 28 Mar 2022 20:32:06 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 905\r\n"
-> "\r\n"
reading 905 bytes...
-> "{\"_embedded\":{\"pacts\":[{\"shortDescription\":\"latest\",\"verificationProperties\":{\"notices\":[{\"when\":\"before_verification\",\"text\":\"The pact at http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1 is being verified because the pact content belongs to the consumer version matching the following criterion:\\n * latest version of PlatformSignupClient that has a pact with PlatformSignupServer (1)\"}]},\"_links\":{\"self\":{\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05\",\"name\":\"Pact between PlatformSignupClient (1) and PlatformSignupServer\"}}}]},\"_links\":{\"self\":{\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/for-verification\",\"title\":\"Pacts to be verified\"}}}"
read 905 bytes
Conn keep-alive
opening connection to localhost:9292...
opened
<- "GET /pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05 HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: Ruby\r\nHost: localhost:9292\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Mon, 28 Mar 2022 20:32:06 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 5205\r\n"
-> "\r\n"
reading 5205 bytes...
-> "{\"consumer\":{\"name\":\"PlatformSignupClient\"},\"provider\":{\"name\":\"PlatformSignupServer\"},\"interactions\":[{\"_id\":\"f7e23d19eeca20b74ad59a808907e78346597082\",\"description\":\"save a new customer\",\"providerState\":\"user doesnt exist in the database\",\"request\":{\"method\":\"POST\",\"path\":\"/api/signup\",\"headers\":{\"Content-Type\":\"application/json\",\"Accept\":\"application/json\"},\"body\":{\"emailAddress\":\"DIuser@exa
mple.com\",\"password\":\"$Silanis1\",\"firstName\":\"DIstring\",\"lastName\":\"DIstring\",\"customerName\":\"DIstring\"},\"matchingRules\":{\"$.headers.Content-Type\":{\"match\":\"type\"},\"$.headers.Accept\":{\"match\":\"type\"}}},\"response\":{\"status\":201,\"headers\":{\"Content-Type\":\"application/json; charset=utf-8\"},\"body\":{\"accountUuid\":\"d4168ad5-7dc8-4736-91db-96b3b802a66a\",\"realm\":\"us-east-1_5zspcLher\",\"userUuid\":\"211d5ab1-c18d-4f61-85ec-1b2bd7cfe45b\",\"groupIds\":[\"271b6c14-9334-11ec-b909-0242ac120002\",\"f325425c-9330-11ec-b909-0242ac120002\"]}}}],\"metadata\":{\"pactSpecification\":{\"version\":\"2.0.0\"}},\"createdAt\":\"2022-03-28T19:22:59+00:00\",\"_links\":{\"self\":{\"title\":\"Pact\",\"name\":\"Pact between PlatformSignupClient (1) and PlatformSignupServer\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1\"},\"pb:consumer\":{\"title\":\"Consumer\",\"name\":\"PlatformSignupClient\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient\"},\"pb:consumer-version\":{\"title\":\"Consumer version\",\"name\":\"1\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1\"},\"pb:consumer-versions\":[{\"title\":\"Consumer version\",\"name\":\"1\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1\"}],\"pb:provider\":{\"title\":\"Provider\",\"name\":\"PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer\"},\"pb:pact-version\":{\"title\":\"Pact content version permalink\",\"name\":\"aa8f8a35a8810678e66d699165328de7ea07b4a1\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1\"},\"pb:latest-pact-version\":{\"title\":\"Latest version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/latest\"},\"pb:all-pact-versions\":{\"title\":\"All versions of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/versions\"},\"pb:latest-untagged-pact-version\":{\"title\":\"Latest untagged version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/latest-untagged\"},\"pb:latest-tagged-pact-version\":{\"title\":\"Latest tagged version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/latest/{tag}\",\"templated\":true},\"pb:previous-distinct\":{\"title\":\"Previous distinct version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1/previous-distinct\"},\"pb:diff-previous-distinct\":{\"title\":\"Diff with previous distinct version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1/diff/previous-distinct\"},\"pb:diff\":{\"title\":\"Diff with another specified version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/diff/pact-version/{pactVersion}\",\"templated\":true},\"pb:pact-webhooks\":{\"title\":\"Webhooks for the pact between PlatformSignupClient and PlatformSignupServer\",\"href\":\"http://localhost:9292/webhooks/provider/PlatformSignupServer/consumer/PlatformSignupClient\"},\"pb:consumer-webhooks\":{\"title\":\"Webhooks for all pacts with provider PlatformSignupServer\",\"href\":\"http://localhost:9292/webhooks/consumer/PlatformSignupServer\"},\"pb:tag-prod-version\":{\"title\":\"PUT to this resource to tag this consumer version as 'production'\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1/tags/prod\"},\"pb:tag-version\":{\"title\":\"PUT to this resource to tag this consumer version\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1/tags/{tag}\"},\"pb:publish-verification-results\":{\"title\":\"Publish verification results\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05/verification-results\"},\"pb:latest-verification-results\":{\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/latest\"},\"pb:triggered-webhooks\":{\"title\":\"Webhooks triggered by the publication of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1/triggered-webhooks\"},\"pb:matrix-for-consumer-version\":{\"title\":\"View matrix rows for the consumer version to which this pact belongs\",\"href\":\"http://localhost:9292/matrix?q[][pacticipant]=PlatformSignupClient&q[][version]=1&latestby=cvpv\"},\"curies\":[{\"name\":\"pb\",\"href\":\"http://localhost:9292/doc/{rel}?context=pact\",\"templated\":true}]}}"
read 5205 bytes
Conn keep-alive
INFO: Reading pact at http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05
WARN: Please note: we are tracking events anonymously to gather important usage statistics like Pact-Ruby version
and operating system. To disable tracking, set the 'PACT_DO_NOT_TRACK' environment
variable to 'true'.
DEBUG: The pact at http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1 is being verified because the pact content belongs to the consumer version matching the following criterion:
* latest version of PlatformSignupClient that has a pact with PlatformSignupServer (1)
Verifying a pact between PlatformSignupClient and PlatformSignupServer
Given user doesnt exist in the database
save a new customer
with POST /api/signup
returns a response which
DEBUG: Setting up provider state 'user doesnt exist in the database' for consumer 'PlatformSignupClient' using provider state set up URL http://localhost:54256/_pactSetup
I, [2022-03-28T16:32:06.132863 #77930] INFO -- request: POST http://localhost:54256/_pactSetup
D, [2022-03-28T16:32:06.132895 #77930] DEBUG -- request: User-Agent: "Faraday v0.17.5"
Content-Type: "application/json"
I, [2022-03-28T16:32:06.157893 #77930] INFO -- response: Status 200
D, [2022-03-28T16:32:06.157938 #77930] DEBUG -- response: x-powered-by: "Express"
content-type: "text/plain; charset=utf-8"
content-length: "2"
etag: "W/\"2-nOO9QiTIwXgNtWtBJezz8kv3SLc\""
date: "Mon, 28 Mar 2022 20:32:06 GMT"
connection: "close"
has status code 201
has a matching body
includes headers
"Content-Type" which equals "application/json; charset=utf-8"
1 interaction, 0 failures
opening connection to localhost:9292...
opened
<- "GET /pacticipants/PlatformSignupServer HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nHost: localhost:9292\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Mon, 28 Mar 2022 20:32:06 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 1964\r\n"
-> "\r\n"
reading 1964 bytes...
-> "{\"name\":\"PlatformSignupServer\",\"displayName\":\"Platform Signup Server\",\"createdAt\":\"2021-11-12T13:20:17+00:00\",\"_embedded\":{\"latestVersion\":{\"number\":\"1.3.21\",\"_links\":{\"self\":{\"title\":\"Version\",\"name\":\"1.3.21\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.3.21\"}}},\"labels\":[],\"latest-version\":{\"number\":\"1.3.21\",\"_links\":{\"self\":{\"title\":\"Version\",\"name\":\"1.3.21\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.3.21\"}},\"title\":\"DEPRECATED - please use latestVersion\",\"name\":\"DEPRECATED - please use latestVersion\"}},\"_links\":{\"self\":{\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer\"},\"pb:versions\":{\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions\"},\"pb:version\":{\"title\":\"Get, create or delete a pacticipant version\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/{version}\",\"templated\":true},\"pb:version-tag\":{\"title\":\"Get, create or delete a tag for a version of PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/{version}/tags/{tag}\",\"templated\":true},\"pb:branch-version\":{\"title\":\"Get or add/create a version for a branch of PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/branches/{branch}/versions/{version}\",\"templated\":true},\"pb:label\":{\"title\":\"Get, create or delete a label for PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/labels/{label}\",\"templated\":true},\"versions\":{\"title\":\"Deprecated - use pb:versions\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions\"},\"pb:can-i-deploy-badge\":{\"title\":\"Can I Deploy PlatformSignupServer badge\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/latest-version/{tag}/can-i-deploy/to/{environmentTag}/badge\",\"templated\":true},\"curies\":[{\"name\":\"pb\",\"href\":\"http://localhost:9292/doc/{rel}?context=pacticipant\",\"templated\":true}]}}"
read 1964 bytes
Conn keep-alive
INFO: Tagging version 1.0.0 of PlatformSignupServer as "test"
opening connection to localhost:9292...
opened
<- "PUT /pacticipants/PlatformSignupServer/versions/1.0.0/tags/test HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nContent-Type: application/json\r\nHost: localhost:9292\r\nContent-Length: 0\r\n\r\n"
<- ""
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Mon, 28 Mar 2022 20:32:06 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 451\r\n"
-> "\r\n"
reading 451 bytes...
-> "{\"name\":\"test\",\"createdAt\":\"2021-11-15T18:44:52+00:00\",\"_links\":{\"self\":{\"title\":\"Tag\",\"name\":\"test\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.0.0/tags/test\"},\"version\":{\"title\":\"Version\",\"name\":\"1.0.0\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.0.0\"},\"pacticipant\":{\"title\":\"Pacticipant\",\"name\":\"PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer\"}}}"
read 451 bytes
Conn keep-alive
opening connection to localhost:9292...
opened
<- "POST /pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05/verification-results HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json, */*\r\nUser-Agent: Ruby\r\nContent-Type: application/json\r\nHost: localhost:9292\r\nContent-Length: 2064\r\n\r\n"
<- "{\"success\":true,\"providerApplicationVersion\":\"1.0.0\",\"testResults\":{\"tests\":[{\"testDescription\":\"has status code 201\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has status code 201\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualStatus\":201},{\"testDescription\":\"has a matching body\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has a matching body\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualBody\":{\"accountUuid\":\"d4168ad5-7dc8-4736-91db-96b3b802a66a\",\"realm\":\"us-east-1_5zspcLher\",\"userUuid\":\"211d5ab1-c18d-4f61-85ec-1b2bd7cfe45b\",\"groupIds\":[\"271b6c14-9334-11ec-b909-0242ac120002\",\"f325425c-9330-11ec-b909-0242ac120002\"]}},{\"testDescription\":\"\\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which includes headers \\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualHeaders\":{\"X-Powered-By\":\"Express\",\"Content-Type\":\"application/json; charset=utf-8\",\"Content-Length\":\"225\",\"Etag\":\"W/\\\"e1-UBUYkvLbmme2Ld7OJQImqwnSkyo\\\"\",\"Date\":\"Mon, 28 Mar 2022 20:32:06 GMT\",\"Connection\":\"close\"}}],\"summary\":{\"testCount\":3,\"failureCount\":0},\"metadata\":{\"warning\":\"These test results use a beta format. Do not rely on it, as it will definitely change.\",\"pactVerificationResultsSpecification\":{\"version\":\"1.0.0-beta.1\"}}}}"
-> "HTTP/1.1 201 Created\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Location: http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/275\r\n"
-> "Date: Mon, 28 Mar 2022 20:32:06 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 3063\r\n"
-> "\r\n"
reading 3063 bytes...
-> "{\"providerName\":\"PlatformSignupServer\",\"providerApplicationVersion\":\"1.0.0\",\"success\":true,\"verificationDate\":\"2022-03-28T20:32:06+00:00\",\"testResults\":{\"tests\":[{\"testDescription\":\"has status code 201\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has status code 201\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualStatus\":201},{\"testDescription\":\"has a matching body\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has a matching body\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in
the database\",\"interactionDescription\":\"save a new customer\",\"actualBody\":{\"accountUuid\":\"d4168ad5-7dc8-4736-91db-96b3b802a66a\",\"realm\":\"us-east-1_5zspcLher\",\"userUuid\":\"211d5ab1-c18d-4f61-85ec-1b2bd7cfe45b\",\"groupIds\":[\"271b6c14-9334-11ec-b909-0242ac120002\",\"f325425c-9330-11ec-b909-0242ac120002\"]}},{\"testDescription\":\"\\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which includes headers \\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualHeaders\":{\"X-Powered-By\":\"Express\",\"Content-Type\":\"application/json; charset=utf-8\",\"Content-Length\":\"225\",\"Etag\":\"W/\\\"e1-UBUYkvLbmme2Ld7OJQImqwnSkyo\\\"\",\"Date\":\"Mon, 28 Mar 2022 20:32:06 GMT\",\"Connection\":\"close\"}}],\"summary\":{\"testCount\":3,\"failureCount\":0},\"metadata\":{\"warning\":\"These test results use a beta format. Do not rely on it, as it will definitely change.\",\"pactVerificationResultsSpecification\":{\"version\":\"1.0.0-beta.1\"}}},\"verifiedBy\":{},\"_links\":{\"self\":{\"title\":\"Verification result\",\"name\":\"Verification result 275 for Pact between PlatformSignupClient (1) and PlatformSignupServer\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/veri"
-> "fication-results/275\"},\"pb:pact-version\":{\"title\":\"Pact\",\"name\":\"Pact between PlatformSignupClient (1) and PlatformSignupServer\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/Y3ZuPTE\"},\"pb:triggered-webhooks\":{\"title\":\"Webhooks triggered by the publication of this verification result\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/275/triggered-webhooks\"}}}"
read 3063 bytes
Conn keep-alive
INFO: Verification results published to http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/275
".
48 |
49 | return new Verifier(opts)
> 50 | .verifyProvider()
| ^
51 | .then((output) => {
52 | console.log(output);
53 | })
at console.log (../../node_modules/@jest/console/build/CustomConsole.js:187:10)
at src/api.pact.ts:50:21
at tryCatcher (../../node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (../../node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (../../node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (../../node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (../../node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (../../node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (../../node_modules/bluebird/js/release/async.js:86:9)
at Async.Object.<anonymous>.Async._drainQueues (../../node_modules/bluebird/js/release/async.js:102:5)
```
You may need to increase your test timeout, your test is closing before the server has finished responding
thrown: "Exceeded timeout of 5000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
and
Cannot log after tests are done. Did you forget to wait for something async in your test?
Attempted to log "opening connection to localhost:9292...
opened
I've already tried increasing the timeout, still the same issue, the only difference is that it takes longer to terminate the process with a failure.
Here is the full log after adding 30 seconds timeout
$ jest --runInBand src/api.pact.ts --testMatch '"**/*.pact.ts"' --testTimeout 30000
[2022-03-29 12:29:53.023 +0000] INFO (76114 on MAC-CA-BELFOER2): [email protected]: Verifying provider
[2022-03-29 12:29:53.023 +0000] INFO (76114 on MAC-CA-BELFOER2): [email protected]: debug request/response logging enabled
[2022-03-29 12:29:53.023 +0000] INFO (76114 on MAC-CA-BELFOER2): [email protected]: Verifying Pacts.
[2022-03-29 12:29:53.023 +0000] INFO (76114 on MAC-CA-BELFOER2): [email protected]: Verifying Pact Files
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: Starting pact binary '/Users/belfoer1/Documents/platform/signup/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.83/pact/bin/pact-provider-verifier', with arguments [--provider-states-setup-url http://localhost:53537/_pactSetup --log-level debug --provider-version-tag test --provider-base-url http://localhost:53537 --provider PlatformSignupServer --provider-app-version 1.0.0 --pact-broker-base-url http://localhost:9292/ --publish-verification-results true --verbose true]
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: Created '/Users/belfoer1/Documents/platform/signup/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.83/pact/bin/pact-provider-verifier' process with PID: 76235
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: opening connection to localhost:9292...
opened
<- "GET / HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nHost: localhost:9292\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Tue, 29 Mar 2022 12:29:55 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 4300\r\n"
-> "\r\n"
reading 4300 bytes...
-> "{\"_links\":{\"self\":{\"href\":\"http://localhost:9292\",\"title\":\"Index\",\"templated\":false},\"pb:publish-pact\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/consumer/{consumer}/version/{consumerApplicationVersion}\",\"title\":\"Publish a pact\",\"templated\":true},\"pb:publish-contracts\":{\"href\":\"http://localhost:9292/contracts/publish\",\"title\":\"Publish contracts\",\"templated\":false},\"pb:latest-pact-versions\":{\"href\":\"http://localhost:9292/pacts/latest\",\"title\":\"Latest pact versions\",\"templated\":false},\"pb:tagged-pact-versions\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/consumer/{consumer}/tag/{tag}\",\"title\":\"All versions of a pact for a given consumer, provider and consumer version tag\",\"templated\":false},\"pb:pacticipants\":{\"href\":\"http://localhost:9292/pacticipants\",\"title\":\"Pacticipants\",\"templated\":false},\"pb:pacticipant\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}\",\"title\":\"Fetch pacticipant by name\",\"templated\":true},\"pb:latest-provider-pacts\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/latest\",\"title\":\"Latest pacts by provider\",\"templated\":true},\"pb:latest-provider-pacts-with-tag\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/latest/{tag}\",\"title\":\"Latest pacts for provider with the specified tag\",\"templated\":true},\"pb:provider-pacts-with-tag\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/tag/{tag}\",\"title\":\"All pact versions for the provider with the specified consumer version tag\",\"templated\":true},\"pb:provider-pacts\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}\",\"title\":\"All pact versions for the specified provider\",\"templated\":true},\"pb:latest-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/latest-version\",\"title\":\"Latest pacticipant version\",\"templated\":true},\"pb:latest-tagged-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/latest-version/{tag}\",\"title\":\"Latest pacticipant version with the specified tag\",\"templated\":true},\"pb:webhooks\":{\"href\":\"http://localhost:9292/webhooks\",\"title\":\"Webhooks\",\"templated\":false},\"pb:webhook\":{\"href\":\"http://localhost:9292/webhooks/{uuid}\",\"title\":\"Webhook\",\"templated\":true},\"pb:integrations\":{\"href\":\"http://localhost:9292/integrations\",\"title\":\"Integrations\",\"templated\":false},\"pb:pacticipant-version-tag\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/versions/{version}/tags/{tag}\",\"title\":\"Get, create or delete a tag for a pacticipant version\",\"templated\":true},\"pb:pacticipant-branch-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/branches/{branch}/versions/{version}\",\"title\":\"Get or add/create a pacticipant version for a branch\",\"templated\":true},\"pb:pacticipant-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/versions/{version}\",\"title\":\"Get, create or delete a pacticipant version\",\"templated\":true},\"pb:metrics\":{\"href\":\"http://localhost:9292/metrics\",\"title\":\"Get Pact Broker metrics\"},\"pb:can-i-deploy-pacticipant-version-to-tag\":{\"href\":\"http://localhost:9292/can-i-deploy?pacticipant={pacticipant}&version={version}&to={tag}\",\"title\":\"Determine if an application version can be safely deployed to an environment identified by the given tag\",\"templated\":true},\"pb:can-i-deploy-pacticipant-version-to-environment\":{\"href\":\"http://localhost:9292/can-i-deploy?pacticipant={pacticipant}&version={version}&environment={environment}\",\"title\":\"Determine if an application version can be safely deployed to an environment\",\"templated\":true},\"pb:provider-pacts-for-verification\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/for-verification\",\"title\":\"Pact versions to be verified for the specified provider\",\"templated\":true},\"beta:provider-pacts-for-verification\":{\"name\":\"beta\",\"href\":\"http://localhost:9292/pacts/provider/{provider}/for-verification\",\"title\":\"DEPRECATED - please use pb:provider-pacts-for-verification\",\"templated\":true},\"curies\":[{\"name\":\"pb\",\"href\":\"http://localhost:9292/doc/{rel}?context=index\",\"templated\":true},{\"name\":\"beta\",\"href\":\"http://localhost:9292/doc/{rel}?context=index\",\"templated\":true}],\"pb:environments\":{\"title\":\"Environments\",\"href\":\"http://localhost:9292/environments\",\"templated\":false},\"pb:environment\":{\"title\":\"Environment\",\"href\":\"http://localhost:9292/environments/{uuid}\",\"templated\":true}}}"
read 4300 bytes
Conn keep-alive
INFO: Fetching pacts for PlatformSignupServer from http://localhost:9292/ with the selection criteria:
opening connection to localhost:9292...
opened
<- "POST /pacts/provider/PlatformSignupServer/for-verification HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nContent-Type: application/json\r\nHost: localhost:9292\r\nContent-Length: 61\r\n\r\n"
<- "{\"includePendingStatus\":false,\"providerVersionTags\":[\"test\"]}"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Tue, 29 Mar 2022 12:29:55 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 905\r\n"
-> "\r\n"
reading 905 bytes...
-> "{\"_embedded\":{\"pacts\":[{\"shortDescription\":\"latest\",\"verificationProperties\":{\"notices\":[{\"when\":\"before_verification\",\"text\":\"The pact at http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1 is being verified because the pact content belongs to the consumer version matching the following criterion:\\n * latest version of PlatformSignupClient that has a pact with PlatformSignupServer (1)\"}]},\"_links\":{\"self\":{\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05\",\"name\":\"Pact between PlatformSignupClient (1) and PlatformSignupServer\"}}}]},\"_links\":{\"self\":{\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/for-verification\",\"title\":\"Pacts to be verified\"}}}"
read 905 bytes
Conn keep-alive
opening connection to localhost:9292...
opened
<- "GET /pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05 HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: Ruby\r\nHost: localhost:9292\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Tue, 29 Mar 2022 12:29:55 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 5205\r\n"
-> "\r\n"
reading 5205 bytes...
-> "{\"consumer\":{\"name\":\"PlatformSignupClient\"},\"provider\":{\"name\":\"PlatformSignupServer\"},\"interactions\":[{\"_id\":\"f7e23d19eeca20b74ad59a808907e78346597082\",\"description\":\"save a new customer\",\"providerState\":\"user doesnt exist in the database\",\"request\":{\"method\":\"POST\",\"path\":\"/api/signup\",\"headers\":{\"Content-Type\":\"application/json\",\"Accept\":\"application/json\"},\"body\":{\"emailAddress\":\"DIuser@exa
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: mple.com\",\"password\":\"$Silanis1\",\"firstName\":\"DIstring\",\"lastName\":\"DIstring\",\"customerName\":\"DIstring\"},\"matchingRules\":{\"$.headers.Content-Type\":{\"match\":\"type\"},\"$.headers.Accept\":{\"match\":\"type\"}}},\"response\":{\"status\":201,\"headers\":{\"Content-Type\":\"application/json; charset=utf-8\"},\"body\":{\"accountUuid\":\"d4168ad5-7dc8-4736-91db-96b3b802a66a\",\"realm\":\"us-east-1_5zspcLher\",\"userUuid\":\"211d5ab1-c18d-4f61-85ec-1b2bd7cfe45b\",\"groupIds\":[\"271b6c14-9334-11ec-b909-0242ac120002\",\"f325425c-9330-11ec-b909-0242ac120002\"]}}}],\"metadata\":{\"pactSpecification\":{\"version\":\"2.0.0\"}},\"createdAt\":\"2022-03-28T19:22:59+00:00\",\"_links\":{\"self\":{\"title\":\"Pact\",\"name\":\"Pact between PlatformSignupClient (1) and PlatformSignupServer\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1\"},\"pb:consumer\":{\"title\":\"Consumer\",\"name\":\"PlatformSignupClient\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient\"},\"pb:consumer-version\":{\"title\":\"Consumer version\",\"name\":\"1\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1\"},\"pb:consumer-versions\":[{\"title\":\"Consumer version\",\"name\":\"1\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1\"}],\"pb:provider\":{\"title\":\"Provider\",\"name\":\"PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer\"},\"pb:pact-version\":{\"title\":\"Pact content version permalink\",\"name\":\"aa8f8a35a8810678e66d699165328de7ea07b4a1\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1\"},\"pb:latest-pact-version\":{\"title\":\"Latest version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/latest\"},\"pb:all-pact-versions\":{\"title\":\"All versions of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/versions\"},\"pb:latest-untagged-pact-version\":{\"title\":\"Latest untagged version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/latest-untagged\"},\"pb:latest-tagged-pact-version\":{\"title\":\"Latest tagged version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/latest/{tag}\",\"templated\":true},\"pb:previous-distinct\":{\"title\":\"Previous distinct version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1/previous-distinct\"},\"pb:diff-previous-distinct\":{\"title\":\"Diff with previous distinct version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1/diff/previous-distinct\"},\"pb:diff\":{\"title\":\"Diff with another specified version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/diff/pact-version/{pactVersion}\",\"templated\":true},\"pb:pact-webhooks\":{\"title\":\"Webhooks for the pact between PlatformSignupClient and PlatformSignupServer\",\"href\":\"http://localhost:9292/webhooks/provider/PlatformSignupServer/consumer/PlatformSignupClient\"},\"pb:consumer-webhooks\":{\"title\":\"Webhooks for all pacts with provider PlatformSignupServer\",\"href\":\"http://localhost:9292/webhooks/consumer/PlatformSignupServer\"},\"pb:tag-prod-version\":{\"title\":\"PUT to this resource to tag this consumer version as 'production'\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1/tags/prod\"},\"pb:tag-version\":{\"title\":\"PUT to this resource to tag this consumer version\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1/tags/{tag}\"},\"pb:publish-verification-results\":{\"title\":\"Publish verification results\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05/verification-results\"},\"pb:latest-verification-results\":{\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/latest\"},\"pb:triggered-webhooks\":{\"title\":\"Webhooks triggered by the publication of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1/triggered-webhooks\"},\"pb:matrix-for-consumer-version\":{\"title\":\"View matrix rows for the consumer version to which this pact belongs\",\"href\":\"http://localhost:9292/matrix?q[][pacticipant]=PlatformSignupClient&q[][version]=1&latestby=cvpv\"},\"curies\":[{\"name\":\"pb\",\"href\":\"http://localhost:9292/doc/{rel}?context=pact\",\"templated\":true}]}}"
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: read 5205 bytes
Conn keep-alive
INFO: Reading pact at http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05
WARN: Please note: we are tracking events anonymously to gather important usage statistics like Pact-Ruby version
and operating system. To disable tracking, set the 'PACT_DO_NOT_TRACK' environment
variable to 'true'.
DEBUG: The pact at http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1 is being verified because the pact content belongs to the consumer version matching the following criterion:
* latest version of PlatformSignupClient that has a pact with PlatformSignupServer (1)
Verifying a pact between PlatformSignupClient and PlatformSignupServer
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: Given user doesnt exist in the database
save a new customer
with POST /api/signup
returns a response which
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: DEBUG: Setting up provider state 'user doesnt exist in the database' for consumer 'PlatformSignupClient' using provider state set up URL http://localhost:53537/_pactSetup
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: I, [2022-03-29T08:29:55.944917 #76235] INFO -- request: POST http://localhost:53537/_pactSetup
D, [2022-03-29T08:29:55.944973 #76235] DEBUG -- request: User-Agent: "Faraday v0.17.5"
Content-Type: "application/json"
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: incoming request
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: outgoing response
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: I, [2022-03-29T08:29:55.970099 #76235] INFO -- response: Status 200
D, [2022-03-29T08:29:55.970146 #76235] DEBUG -- response: x-powered-by: "Express"
content-type: "text/plain; charset=utf-8"
content-length: "2"
etag: "W/\"2-nOO9QiTIwXgNtWtBJezz8kv3SLc\""
date: "Tue, 29 Mar 2022 12:29:55 GMT"
connection: "close"
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: incoming request
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: Proxing
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: outgoing response
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: has status code 201
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: has a matching body
includes headers
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: "Content-Type" which equals "application/json; charset=utf-8"
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]:
1 interaction, 0 failures
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: opening connection to localhost:9292...
opened
<- "GET /pacticipants/PlatformSignupServer HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nHost: localhost:9292\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Tue, 29 Mar 2022 12:29:56 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 1964\r\n"
-> "\r\n"
reading 1964 bytes...
-> "{\"name\":\"PlatformSignupServer\",\"displayName\":\"Platform Signup Server\",\"createdAt\":\"2021-11-12T13:20:17+00:00\",\"_embedded\":{\"latestVersion\":{\"number\":\"1.3.21\",\"_links\":{\"self\":{\"title\":\"Version\",\"name\":\"1.3.21\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.3.21\"}}},\"labels\":[],\"latest-version\":{\"number\":\"1.3.21\",\"_links\":{\"self\":{\"title\":\"Version\",\"name\":\"1.3.21\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.3.21\"}},\"title\":\"DEPRECATED - please use latestVersion\",\"name\":\"DEPRECATED - please use latestVersion\"}},\"_links\":{\"self\":{\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer\"},\"pb:versions\":{\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions\"},\"pb:version\":{\"title\":\"Get, create or delete a pacticipant version\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/{version}\",\"templated\":true},\"pb:version-tag\":{\"title\":\"Get, create or delete a tag for a version of PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/{version}/tags/{tag}\",\"templated\":true},\"pb:branch-version\":{\"title\":\"Get or add/create a version for a branch of Pla"
-> "tformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/branches/{branch}/versions/{version}\",\"templated\":true},\"pb:label\":{\"title\":\"Get, create or delete a label for PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/labels/{label}\",\"templated\":true},\"versions\":{\"title\":\"Deprecated - use pb:versions\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions\"},\"pb:can-i-deploy-badge\":{\"title\":\"Can I Deploy PlatformSignupServer badge\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/latest-version/{tag}/can-i-deploy/to/{environmentTag}/badge\",\"templated\":true},\"curies\":[{\"name\":\"pb\",\"href\":\"http://localhost:9292/doc/{rel}?context=pacticipant\",\"templated\":true}]}}"
read 1964 bytes
Conn keep-alive
INFO: Tagging version 1.0.0 of PlatformSignupServer as "test"
opening connection to localhost:9292...
opened
<- "PUT /pacticipants/PlatformSignupServer/versions/1.0.0/tags/test HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nContent-Type: application/json\r\nHost: localhost:9292\r\nContent-Length: 0\r\n\r\n"
<- ""
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Tue, 29 Mar 2022 12:29:56 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 451\r\n"
-> "\r\n"
reading 451 bytes...
-> "{\"name\":\"test\",\"createdAt\":\"2021-11-15T18:44:52+00:00\",\"_links\":{\"self\":{\"title\":\"Tag\",\"name\":\"test\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.0.0/tags/test\"},\"version\":{\"title\":\"Version\",\"name\":\"1.0.0\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.0.0\"},\"pacticipant\":{\"title\":\"Pacticipant\",\"name\":\"PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer\"}}}"
read 451 bytes
Conn keep-alive
opening connection to localhost:9292...
opened
<- "POST /pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05/verification-results HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json, */*\r\nUser-Agent: Ruby\r\nContent-Type: application/json\r\nHost: localhost:9292\r\nContent-Length: 2064\r\n\r\n"
<- "{\"success\":true,\"providerApplicationVersion\":\"1.0.0\",\"testResults\":{\"tests\":[{\"testDescription\":\"has status code 201\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has status code 201\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualStatus\":201},{\"testDescription\":\"has a matching body\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has a matching body\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualBody\":{\"accountUuid\":\"d4168ad5-7dc8-4736-91db-96b3b802a66a\",\"realm\":\"us-east-1_5zspcLher\",\"userUuid\":\"211d5ab1-c18d-4f61-85ec-1b2bd7cfe45b\",\"groupIds\":[\"271b6c14-9334-11ec-b909-0242ac120002\",\"f325425c-9330-11ec-b909-0242ac120002\"]}},{\"testDescription\":\"\\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which includes headers \\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualHeaders\":{\"X-Powered-By\":\"Express\",\"Content-Type\":\"application/json; charset=utf-8\",\"Content-Length\":\"225\",\"Etag\":\"W/\\\"e1-UBUYkvLbmme2Ld7OJQImqwnSkyo\\\"\",\"Date\":\"Tue, 29 Mar 2022 12:29:55 GMT\",\"Connection\":\"close\"}}],\"summary\":{\"testCount\":3,\"failureCount\":0},\"metadata\":{\"warning\":\"These test results use a beta format. Do not rely on it, as it will definitely change.\",\"pactVerificationResultsSpecification\":{\"version\":\"1.0.0-beta.1\"}}}}"
-> "HTTP/1.1 201 Created\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Location: http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/276\r\n"
-> "Date: Tue, 29 Mar 2022 12:29:56 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 3063\r\n"
-> "\r\n"
reading 3063 bytes...
-> "{\"providerName\":\"PlatformSignupServer\",\"providerApplicationVersion\":\"1.0.0\",\"success\":true,\"verificationDate\":\"2022-03-29T12:29:56+00:00\",\"testResults\":{\"tests\":[{\"testDescription\":\"has status code 201\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has status code 201\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualStatus\":201},{\"testDescription\":\"has a matching body\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has a matching body\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exi
[2022-03-29 12:29:53.023 +0000] DEBUG (76114 on MAC-CA-BELFOER2): [email protected]: st in the database\",\"interactionDescription\":\"save a new customer\",\"actualBody\":{\"accountUuid\":\"d4168ad5-7dc8-4736-91db-96b3b802a66a\",\"realm\":\"us-east-1_5zspcLher\",\"userUuid\":\"211d5ab1-c18d-4f61-85ec-1b2bd7cfe45b\",\"groupIds\":[\"271b6c14-9334-11ec-b909-0242ac120002\",\"f325425c-9330-11ec-b909-0242ac120002\"]}},{\"testDescription\":\"\\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which includes headers \\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualHeaders\":{\"X-Powered-By\":\"Express\",\"Content-Type\":\"application/json; charset=utf-8\",\"Content-Length\":\"225\",\"Etag\":\"W/\\\"e1-UBUYkvLbmme2Ld7OJQImqwnSkyo\\\"\",\"Date\":\"Tue, 29 Mar 2022 12:29:55 GMT\",\"Connection\":\"close\"}}],\"summary\":{\"testCount\":3,\"failureCount\":0},\"metadata\":{\"warning\":\"These test results use a beta format. Do not rely on it, as it will definitely change.\",\"pactVerificationResultsSpecification\":{\"version\":\"1.0.0-beta.1\"}}},\"verifiedBy\":{},\"_links\":{\"self\":{\"title\":\"Verification result\",\"name\":\"Verification result 276 for Pact between PlatformSignupClient (1) and PlatformSignupServer\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/276\"},\"pb:pact-version\":{\"title\":\"Pact\",\"name\":\"Pact between PlatformSignupClient (1) and PlatformSignupServer\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/Y3ZuPTE\"},\"pb:triggered-webhooks\":{\"title\":\"Webhooks triggered by the publication of this verification result\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/276/triggered-webhooks\"}}}"
read 3063 bytes
Conn keep-alive
INFO: Verification results published to http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/276
[2022-03-29 12:29:53.023 +0000] INFO (76114 on MAC-CA-BELFOER2): [email protected]: Pact Verification succeeded.
● Cannot log after tests are done. Did you forget to wait for something async in your test?
Attempted to log "opening connection to localhost:9292...
opened
<- "GET / HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nHost: localhost:9292\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Tue, 29 Mar 2022 12:29:55 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 4300\r\n"
-> "\r\n"
reading 4300 bytes...
-> "{\"_links\":{\"self\":{\"href\":\"http://localhost:9292\",\"title\":\"Index\",\"templated\":false},\"pb:publish-pact\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/consumer/{consumer}/version/{consumerApplicationVersion}\",\"title\":\"Publish a pact\",\"templated\":true},\"pb:publish-contracts\":{\"href\":\"http://localhost:9292/contracts/publish\",\"title\":\"Publish contracts\",\"templated\":false},\"pb:latest-pact-versions\":{\"href\":\"http://localhost:9292/pacts/latest\",\"title\":\"Latest pact versions\",\"templated\":false},\"pb:tagged-pact-versions\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/consumer/{consumer}/tag/{tag}\",\"title\":\"All versions of a pact for a given consumer, provider and consumer version tag\",\"templated\":false},\"pb:pacticipants\":{\"href\":\"http://localhost:9292/pacticipants\",\"title\":\"Pacticipants\",\"templated\":false},\"pb:pacticipant\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}\",\"title\":\"Fetch pacticipant by name\",\"templated\":true},\"pb:latest-provider-pacts\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/latest\",\"title\":\"Latest pacts by provider\",\"templated\":true},\"pb:latest-provider-pacts-with-tag\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/latest/{tag}\",\"title\":\"Latest pacts for provider with the specified tag\",\"templated\":true},\"pb:provider-pacts-with-tag\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/tag/{tag}\",\"title\":\"All pact versions for the provider with the specified consumer version tag\",\"templated\":true},\"pb:provider-pacts\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}\",\"title\":\"All pact versions for the specified provider\",\"templated\":true},\"pb:latest-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/latest-version\",\"title\":\"Latest pacticipant version\",\"templated\":true},\"pb:latest-tagged-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/latest-version/{tag}\",\"title\":\"Latest pacticipant version with the specified tag\",\"templated\":true},\"pb:webhooks\":{\"href\":\"http://localhost:9292/webhooks\",\"title\":\"Webhooks\",\"templated\":false},\"pb:webhook\":{\"href\":\"http://localhost:9292/webhooks/{uuid}\",\"title\":\"Webhook\",\"templated\":true},\"pb:integrations\":{\"href\":\"http://localhost:9292/integrations\",\"title\":\"Integrations\",\"templated\":false},\"pb:pacticipant-version-tag\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/versions/{version}/tags/{tag}\",\"title\":\"Get, create or delete a tag for a pacticipant version\",\"templated\":true},\"pb:pacticipant-branch-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/branches/{branch}/versions/{version}\",\"title\":\"Get or add/create a pacticipant version for a branch\",\"templated\":true},\"pb:pacticipant-version\":{\"href\":\"http://localhost:9292/pacticipants/{pacticipant}/versions/{version}\",\"title\":\"Get, create or delete a pacticipant version\",\"templated\":true},\"pb:metrics\":{\"href\":\"http://localhost:9292/metrics\",\"title\":\"Get Pact Broker metrics\"},\"pb:can-i-deploy-pacticipant-version-to-tag\":{\"href\":\"http://localhost:9292/can-i-deploy?pacticipant={pacticipant}&version={version}&to={tag}\",\"title\":\"Determine if an application version can be safely deployed to an environment identified by the given tag\",\"templated\":true},\"pb:can-i-deploy-pacticipant-version-to-environment\":{\"href\":\"http://localhost:9292/can-i-deploy?pacticipant={pacticipant}&version={version}&environment={environment}\",\"title\":\"Determine if an application version can be safely deployed to an environment\",\"templated\":true},\"pb:provider-pacts-for-verification\":{\"href\":\"http://localhost:9292/pacts/provider/{provider}/for-verification\",\"title\":\"Pact versions to be verified for the specified provider\",\"templated\":true},\"beta:provider-pacts-for-verification\":{\"name\":\"beta\",\"href\":\"http://localhost:9292/pacts/provider/{provider}/for-verification\",\"title\":\"DEPRECATED - please use pb:provider-pacts-for-verification\",\"templated\":true},\"curies\":[{\"name\":\"pb\",\"href\":\"http://localhost:9292/doc/{rel}?context=index\",\"templated\":true},{\"name\":\"beta\",\"href\":\"http://localhost:9292/doc/{rel}?context=index\",\"templated\":true}],\"pb:environments\":{\"title\":\"Environments\",\"href\":\"http://localhost:9292/environments\",\"templated\":false},\"pb:environment\":{\"title\":\"Environment\",\"href\":\"http://localhost:9292/environments/{uuid}\",\"templated\":true}}}"
read 4300 bytes
Conn keep-alive
INFO: Fetching pacts for PlatformSignupServer from http://localhost:9292/ with the selection criteria:
opening connection to localhost:9292...
opened
<- "POST /pacts/provider/PlatformSignupServer/for-verification HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nContent-Type: application/json\r\nHost: localhost:9292\r\nContent-Length: 61\r\n\r\n"
<- "{\"includePendingStatus\":false,\"providerVersionTags\":[\"test\"]}"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Tue, 29 Mar 2022 12:29:55 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 905\r\n"
-> "\r\n"
reading 905 bytes...
-> "{\"_embedded\":{\"pacts\":[{\"shortDescription\":\"latest\",\"verificationProperties\":{\"notices\":[{\"when\":\"before_verification\",\"text\":\"The pact at http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1 is being verified because the pact content belongs to the consumer version matching the following criterion:\\n * latest version of PlatformSignupClient that has a pact with PlatformSignupServer (1)\"}]},\"_links\":{\"self\":{\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05\",\"name\":\"Pact between PlatformSignupClient (1) and PlatformSignupServer\"}}}]},\"_links\":{\"self\":{\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/for-verification\",\"title\":\"Pacts to be verified\"}}}"
read 905 bytes
Conn keep-alive
opening connection to localhost:9292...
opened
<- "GET /pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05 HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: Ruby\r\nHost: localhost:9292\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Tue, 29 Mar 2022 12:29:55 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 5205\r\n"
-> "\r\n"
reading 5205 bytes...
-> "{\"consumer\":{\"name\":\"PlatformSignupClient\"},\"provider\":{\"name\":\"PlatformSignupServer\"},\"interactions\":[{\"_id\":\"f7e23d19eeca20b74ad59a808907e78346597082\",\"description\":\"save a new customer\",\"providerState\":\"user doesnt exist in the database\",\"request\":{\"method\":\"POST\",\"path\":\"/api/signup\",\"headers\":{\"Content-Type\":\"application/json\",\"Accept\":\"application/json\"},\"body\":{\"emailAddress\":\"DIuser@exa
mple.com\",\"password\":\"$Silanis1\",\"firstName\":\"DIstring\",\"lastName\":\"DIstring\",\"customerName\":\"DIstring\"},\"matchingRules\":{\"$.headers.Content-Type\":{\"match\":\"type\"},\"$.headers.Accept\":{\"match\":\"type\"}}},\"response\":{\"status\":201,\"headers\":{\"Content-Type\":\"application/json; charset=utf-8\"},\"body\":{\"accountUuid\":\"d4168ad5-7dc8-4736-91db-96b3b802a66a\",\"realm\":\"us-east-1_5zspcLher\",\"userUuid\":\"211d5ab1-c18d-4f61-85ec-1b2bd7cfe45b\",\"groupIds\":[\"271b6c14-9334-11ec-b909-0242ac120002\",\"f325425c-9330-11ec-b909-0242ac120002\"]}}}],\"metadata\":{\"pactSpecification\":{\"version\":\"2.0.0\"}},\"createdAt\":\"2022-03-28T19:22:59+00:00\",\"_links\":{\"self\":{\"title\":\"Pact\",\"name\":\"Pact between PlatformSignupClient (1) and PlatformSignupServer\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1\"},\"pb:consumer\":{\"title\":\"Consumer\",\"name\":\"PlatformSignupClient\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient\"},\"pb:consumer-version\":{\"title\":\"Consumer version\",\"name\":\"1\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1\"},\"pb:consumer-versions\":[{\"title\":\"Consumer version\",\"name\":\"1\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1\"}],\"pb:provider\":{\"title\":\"Provider\",\"name\":\"PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer\"},\"pb:pact-version\":{\"title\":\"Pact content version permalink\",\"name\":\"aa8f8a35a8810678e66d699165328de7ea07b4a1\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1\"},\"pb:latest-pact-version\":{\"title\":\"Latest version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/latest\"},\"pb:all-pact-versions\":{\"title\":\"All versions of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/versions\"},\"pb:latest-untagged-pact-version\":{\"title\":\"Latest untagged version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/latest-untagged\"},\"pb:latest-tagged-pact-version\":{\"title\":\"Latest tagged version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/latest/{tag}\",\"templated\":true},\"pb:previous-distinct\":{\"title\":\"Previous distinct version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1/previous-distinct\"},\"pb:diff-previous-distinct\":{\"title\":\"Diff with previous distinct version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1/diff/previous-distinct\"},\"pb:diff\":{\"title\":\"Diff with another specified version of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/diff/pact-version/{pactVersion}\",\"templated\":true},\"pb:pact-webhooks\":{\"title\":\"Webhooks for the pact between PlatformSignupClient and PlatformSignupServer\",\"href\":\"http://localhost:9292/webhooks/provider/PlatformSignupServer/consumer/PlatformSignupClient\"},\"pb:consumer-webhooks\":{\"title\":\"Webhooks for all pacts with provider PlatformSignupServer\",\"href\":\"http://localhost:9292/webhooks/consumer/PlatformSignupServer\"},\"pb:tag-prod-version\":{\"title\":\"PUT to this resource to tag this consumer version as 'production'\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1/tags/prod\"},\"pb:tag-version\":{\"title\":\"PUT to this resource to tag this consumer version\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupClient/versions/1/tags/{tag}\"},\"pb:publish-verification-results\":{\"title\":\"Publish verification results\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05/verification-results\"},\"pb:latest-verification-results\":{\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/latest\"},\"pb:triggered-webhooks\":{\"title\":\"Webhooks triggered by the publication of this pact\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/version/1/triggered-webhooks\"},\"pb:matrix-for-consumer-version\":{\"title\":\"View matrix rows for the consumer version to which this pact belongs\",\"href\":\"http://localhost:9292/matrix?q[][pacticipant]=PlatformSignupClient&q[][version]=1&latestby=cvpv\"},\"curies\":[{\"name\":\"pb\",\"href\":\"http://localhost:9292/doc/{rel}?context=pact\",\"templated\":true}]}}"
read 5205 bytes
Conn keep-alive
INFO: Reading pact at http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05
WARN: Please note: we are tracking events anonymously to gather important usage statistics like Pact-Ruby version
and operating system. To disable tracking, set the 'PACT_DO_NOT_TRACK' environment
variable to 'true'.
DEBUG: The pact at http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1 is being verified because the pact content belongs to the consumer version matching the following criterion:
* latest version of PlatformSignupClient that has a pact with PlatformSignupServer (1)
Verifying a pact between PlatformSignupClient and PlatformSignupServer
Given user doesnt exist in the database
save a new customer
with POST /api/signup
returns a response which
DEBUG: Setting up provider state 'user doesnt exist in the database' for consumer 'PlatformSignupClient' using provider state set up URL http://localhost:53537/_pactSetup
I, [2022-03-29T08:29:55.944917 #76235] INFO -- request: POST http://localhost:53537/_pactSetup
D, [2022-03-29T08:29:55.944973 #76235] DEBUG -- request: User-Agent: "Faraday v0.17.5"
Content-Type: "application/json"
I, [2022-03-29T08:29:55.970099 #76235] INFO -- response: Status 200
D, [2022-03-29T08:29:55.970146 #76235] DEBUG -- response: x-powered-by: "Express"
content-type: "text/plain; charset=utf-8"
content-length: "2"
etag: "W/\"2-nOO9QiTIwXgNtWtBJezz8kv3SLc\""
date: "Tue, 29 Mar 2022 12:29:55 GMT"
connection: "close"
has status code 201
has a matching body
includes headers
"Content-Type" which equals "application/json; charset=utf-8"
1 interaction, 0 failures
opening connection to localhost:9292...
opened
<- "GET /pacticipants/PlatformSignupServer HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nHost: localhost:9292\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Tue, 29 Mar 2022 12:29:56 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 1964\r\n"
-> "\r\n"
reading 1964 bytes...
-> "{\"name\":\"PlatformSignupServer\",\"displayName\":\"Platform Signup Server\",\"createdAt\":\"2021-11-12T13:20:17+00:00\",\"_embedded\":{\"latestVersion\":{\"number\":\"1.3.21\",\"_links\":{\"self\":{\"title\":\"Version\",\"name\":\"1.3.21\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.3.21\"}}},\"labels\":[],\"latest-version\":{\"number\":\"1.3.21\",\"_links\":{\"self\":{\"title\":\"Version\",\"name\":\"1.3.21\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.3.21\"}},\"title\":\"DEPRECATED - please use latestVersion\",\"name\":\"DEPRECATED - please use latestVersion\"}},\"_links\":{\"self\":{\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer\"},\"pb:versions\":{\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions\"},\"pb:version\":{\"title\":\"Get, create or delete a pacticipant version\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/{version}\",\"templated\":true},\"pb:version-tag\":{\"title\":\"Get, create or delete a tag for a version of PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/{version}/tags/{tag}\",\"templated\":true},\"pb:branch-version\":{\"title\":\"Get or add/create a version for a branch of Pla"
-> "tformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/branches/{branch}/versions/{version}\",\"templated\":true},\"pb:label\":{\"title\":\"Get, create or delete a label for PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/labels/{label}\",\"templated\":true},\"versions\":{\"title\":\"Deprecated - use pb:versions\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions\"},\"pb:can-i-deploy-badge\":{\"title\":\"Can I Deploy PlatformSignupServer badge\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/latest-version/{tag}/can-i-deploy/to/{environmentTag}/badge\",\"templated\":true},\"curies\":[{\"name\":\"pb\",\"href\":\"http://localhost:9292/doc/{rel}?context=pacticipant\",\"templated\":true}]}}"
read 1964 bytes
Conn keep-alive
INFO: Tagging version 1.0.0 of PlatformSignupServer as "test"
opening connection to localhost:9292...
opened
<- "PUT /pacticipants/PlatformSignupServer/versions/1.0.0/tags/test HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json\r\nUser-Agent: Ruby\r\nContent-Type: application/json\r\nHost: localhost:9292\r\nContent-Length: 0\r\n\r\n"
<- ""
-> "HTTP/1.1 200 OK\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Date: Tue, 29 Mar 2022 12:29:56 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 451\r\n"
-> "\r\n"
reading 451 bytes...
-> "{\"name\":\"test\",\"createdAt\":\"2021-11-15T18:44:52+00:00\",\"_links\":{\"self\":{\"title\":\"Tag\",\"name\":\"test\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.0.0/tags/test\"},\"version\":{\"title\":\"Version\",\"name\":\"1.0.0\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer/versions/1.0.0\"},\"pacticipant\":{\"title\":\"Pacticipant\",\"name\":\"PlatformSignupServer\",\"href\":\"http://localhost:9292/pacticipants/PlatformSignupServer\"}}}"
read 451 bytes
Conn keep-alive
opening connection to localhost:9292...
opened
<- "POST /pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/c1tdW2xdPXRydWUmc1tdW2N2XT05/verification-results HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: application/hal+json, */*\r\nUser-Agent: Ruby\r\nContent-Type: application/json\r\nHost: localhost:9292\r\nContent-Length: 2064\r\n\r\n"
<- "{\"success\":true,\"providerApplicationVersion\":\"1.0.0\",\"testResults\":{\"tests\":[{\"testDescription\":\"has status code 201\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has status code 201\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualStatus\":201},{\"testDescription\":\"has a matching body\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has a matching body\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualBody\":{\"accountUuid\":\"d4168ad5-7dc8-4736-91db-96b3b802a66a\",\"realm\":\"us-east-1_5zspcLher\",\"userUuid\":\"211d5ab1-c18d-4f61-85ec-1b2bd7cfe45b\",\"groupIds\":[\"271b6c14-9334-11ec-b909-0242ac120002\",\"f325425c-9330-11ec-b909-0242ac120002\"]}},{\"testDescription\":\"\\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which includes headers \\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualHeaders\":{\"X-Powered-By\":\"Express\",\"Content-Type\":\"application/json; charset=utf-8\",\"Content-Length\":\"225\",\"Etag\":\"W/\\\"e1-UBUYkvLbmme2Ld7OJQImqwnSkyo\\\"\",\"Date\":\"Tue, 29 Mar 2022 12:29:55 GMT\",\"Connection\":\"close\"}}],\"summary\":{\"testCount\":3,\"failureCount\":0},\"metadata\":{\"warning\":\"These test results use a beta format. Do not rely on it, as it will definitely change.\",\"pactVerificationResultsSpecification\":{\"version\":\"1.0.0-beta.1\"}}}}"
-> "HTTP/1.1 201 Created\r\n"
-> "Vary: Accept\r\n"
-> "Content-Type: application/hal+json;charset=utf-8\r\n"
-> "Location: http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/276\r\n"
-> "Date: Tue, 29 Mar 2022 12:29:56 GMT\r\n"
-> "Server: Webmachine-Ruby/1.6.0 Rack/1.3\r\n"
-> "X-Pact-Broker-Version: 2.89.1\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Content-Length: 3063\r\n"
-> "\r\n"
reading 3063 bytes...
-> "{\"providerName\":\"PlatformSignupServer\",\"providerApplicationVersion\":\"1.0.0\",\"success\":true,\"verificationDate\":\"2022-03-29T12:29:56+00:00\",\"testResults\":{\"tests\":[{\"testDescription\":\"has status code 201\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has status code 201\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualStatus\":201},{\"testDescription\":\"has a matching body\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which has a matching body\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exi
st in the database\",\"interactionDescription\":\"save a new customer\",\"actualBody\":{\"accountUuid\":\"d4168ad5-7dc8-4736-91db-96b3b802a66a\",\"realm\":\"us-east-1_5zspcLher\",\"userUuid\":\"211d5ab1-c18d-4f61-85ec-1b2bd7cfe45b\",\"groupIds\":[\"271b6c14-9334-11ec-b909-0242ac120002\",\"f325425c-9330-11ec-b909-0242ac120002\"]}},{\"testDescription\":\"\\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"testFullDescription\":\"Verifying a pact between PlatformSignupClient and PlatformSignupServer Given user doesnt exist in the database save a new customer with POST /api/signup returns a response which includes headers \\\"Content-Type\\\" which equals \\\"application/json; charset=utf-8\\\"\",\"status\":\"passed\",\"interactionProviderState\":\"user doesnt exist in the database\",\"interactionDescription\":\"save a new customer\",\"actualHeaders\":{\"X-Powered-By\":\"Express\",\"Content-Type\":\"application/json; charset=utf-8\",\"Content-Length\":\"225\",\"Etag\":\"W/\\\"e1-UBUYkvLbmme2Ld7OJQImqwnSkyo\\\"\",\"Date\":\"Tue, 29 Mar 2022 12:29:55 GMT\",\"Connection\":\"close\"}}],\"summary\":{\"testCount\":3,\"failureCount\":0},\"metadata\":{\"warning\":\"These test results use a beta format. Do not rely on it, as it will definitely change.\",\"pactVerificationResultsSpecification\":{\"version\":\"1.0.0-beta.1\"}}},\"verifiedBy\":{},\"_links\":{\"self\":{\"title\":\"Verification result\",\"name\":\"Verification result 276 for Pact between PlatformSignupClient (1) and PlatformSignupServer\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/276\"},\"pb:pact-version\":{\"title\":\"Pact\",\"name\":\"Pact between PlatformSignupClient (1) and PlatformSignupServer\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/metadata/Y3ZuPTE\"},\"pb:triggered-webhooks\":{\"title\":\"Webhooks triggered by the publication of this verification result\",\"href\":\"http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/276/triggered-webhooks\"}}}"
read 3063 bytes
Conn keep-alive
INFO: Verification results published to http://localhost:9292/pacts/provider/PlatformSignupServer/consumer/PlatformSignupClient/pact-version/aa8f8a35a8810678e66d699165328de7ea07b4a1/verification-results/276
".
47 |
48 | return new Verifier(opts)
> 49 | .verifyProvider()
| ^
50 | .then((output) => {
51 | console.log(output);
52 | })
at console.log (../../node_modules/@jest/console/build/CustomConsole.js:187:10)
at src/api.pact.ts:49:21
at tryCatcher (../../node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (../../node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (../../node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (../../node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (../../node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (../../node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (../../node_modules/bluebird/js/release/async.js:86:9)
at Async.Object.<anonymous>.Async._drainQueues (../../node_modules/bluebird/js/release/async.js:102:5)
FAIL src/api.pact.ts (33.362 s)
Pact Verification
✕ validates the expectations of SignupService (30003 ms)
● Pact Verification › validates the expectations of SignupService
thrown: "Exceeded timeout of 30000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
24 | describe('Pact Verification', () => {
25 | // eslint-disable-next-line jest/expect-expect
> 26 | it('validates the expectations of SignupService', () => {
| ^
27 | const opts: VerifierOptions = {
28 | logLevel: 'debug',
29 | providerVersionTags: ['test'],
at src/api.pact.ts:26:3
at Object.<anonymous> (src/api.pact.ts:24:1)
at TestScheduler.scheduleTests (../../node_modules/@jest/core/build/TestScheduler.js:333:13)
at runJest (../../node_modules/@jest/core/build/runJest.js:404:19)
at _run10000 (../../node_modules/@jest/core/build/cli/index.js:320:7)
at runCLI (../../node_modules/@jest/core/build/cli/index.js:173:3)
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 33.434 s
Did you ever get to the bottom of this?
Closing due to inactivity.