GitHub
03/03/2023, 5:10 AM"Authorization": "Bearer auth_token",
"Content-Type": "application/json"
body:
{
"serviceAttributes": [
"string1",
"string2"
]
}
Relevant log files
2022-12-07T09:05:11.021458Z INFO ThreadId(02) verify_interaction{interaction="A request to update service attributes for Patient"}: pact_verifier: Running provider verification for 'A request to update service attributes for Patient'
2022-12-07T09:05:11.021508Z DEBUG ThreadId(02) verify_interaction{interaction="A request to update service attributes for Patient"}: pact_verifier: Verifying a HTTP interaction
2022-12-07T09:05:11.021537Z INFO ThreadId(02) verify_interaction{interaction="A request to update service attributes for Patient"}: pact_verifier::provider_client: Sending request to provider at <http://127.0.0.1:64155/>
...
{"level":20,"time":1670403911036,"pid":45449,"hostname":"masked","msg":"pact@10.3.1: incoming request: {\"body\":{\"serviceAttributes\":[\"string1\",\"string2\"]},\"headers\":{\"authorization\":\"Bearer auth_token\",\"content-type\":\"application/json\",\"accept\":\"*/*\",\"accept-encoding\":\"gzip, deflate\",\"host\":\"127.0.0.1:64155\",\"content-length\":\"38\"},\"method\":\"PUT\",\"path\":\"/api/v1/tenant/tenantId/user/userId/service-attribution\"}"}
{"level":20,"time":1670403911037,"pid":45449,"hostname":"masked","msg":"pact@10.3.1: outgoing response: {\"body\":\"<!DOCTYPE html>\\n<html lang=\\\"en\\\">\\n<head>\\n<meta charset=\\\"utf-8\\\">\\n<title>Error</title>\\n</head>\\n<body>\\n<pre>Cannot PUT /api/v1/tenant/tenantId/user/userId/service-attribution</pre>\\n</body>\\n</html>\\n\",\"headers\":{\"x-powered-by\":\"Express\",\"content-security-policy\":\"default-src 'none'\",\"x-content-type-options\":\"nosniff\",\"content-type\":\"text/html; charset=utf-8\",\"content-length\":220},\"status\":404}"}
P.S. In the logs it says that it sends a request to a provider at "http://127.0.0.1:64155/", but my providerBaseUrl is "http://localhost:3000", just in case.
pact-foundation/pact-jsGitHub
03/03/2023, 5:10 AM