Jayesh Guru
02/08/2022, 3:47 PMAuthorization: Bearer <hardcode token>
in verification step in Buildkite pipeline before publishing pact to the pact-broker, below are the steps in our BK pipeline
1. Run consumer Contract Test and upload pact.json file to the artifacts
2. Download pact.json file
3. Verify pact with Provider
4. Publish pacts to the pact-broker
Getting below error for invalid authorization as hardcoded token was passed
Verifying a pact between cmedia-distribute-api and vmedia-mats-app
Given get schema tag enums
return schema tags
with GET /metadata/schema-tag-enums
returns a response which
has status code 200 (FAILED - 1)
has a matching body (FAILED - 2)
Failure/Error: expect(response_status).to eql expected_response_status
expected: 200
got: 401
(compared using eql?)
# /pact/bin/pact:15:in `<top (required)>'
Failure/Error: expect(response_body).to match_term expected_response_body, diff_options, example
Actual: {"title":"Unauthorized","message":"401 Unauthorized: Invalid token: Cannot extract header,payload and signature","mats_error_code":1001}
Diff
--------------------------------------
Key: - is expected
+ is actual
Matt (pactflow.io / pact-js / pact-go)
Jayesh Guru
02/09/2022, 12:53 AMJayesh Guru
02/09/2022, 12:53 AMJayesh Guru
02/09/2022, 12:54 AMMatt (pactflow.io / pact-js / pact-go)
Jayesh Guru
02/09/2022, 1:27 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Jayesh Guru
02/09/2022, 1:29 AMJayesh Guru
02/09/2022, 1:31 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Jayesh Guru
02/09/2022, 1:47 PMJayesh Guru
02/09/2022, 1:47 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Jayesh Guru
02/09/2022, 11:45 PMJayesh Guru
02/09/2022, 11:45 PMJayesh Guru
02/09/2022, 11:45 PMJayesh Guru
02/09/2022, 11:46 PMJayesh Guru
02/09/2022, 11:46 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Jayesh Guru
02/09/2022, 11:49 PMJayesh Guru
02/09/2022, 11:49 PMJayesh Guru
02/09/2022, 11:49 PMJayesh Guru
02/09/2022, 11:50 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Jayesh Guru
02/09/2022, 11:52 PMJayesh Guru
02/09/2022, 11:52 PMJayesh Guru
02/09/2022, 11:54 PMJayesh Guru
02/09/2022, 11:55 PMJayesh Guru
02/09/2022, 11:55 PMMatt (pactflow.io / pact-js / pact-go)
Jayesh Guru
02/09/2022, 11:57 PM