Facu Conejero
03/08/2023, 9:31 AMYousaf Nabi (pactflow.io)
Marck Puiu
03/08/2023, 1:10 PMMichael Branders
03/13/2023, 1:45 PMMichael Branders
03/13/2023, 3:06 PMTimothy Jones
03/16/2023, 5:08 AMconsumer-driven contract testing pact
is the top link in “people also search for”Gustavo Souza
03/16/2023, 6:42 PMBody:
$: Expected body type of 'application/json' but received 'text/html'
Header:
Content-Type: Mismatch with header 'Content-Type': Expected header 'Content-Type' to have value 'application/json' but was 'text/html'
where should I manage that? at service? at provider file?Kripa Kurian
03/16/2023, 7:32 PMsasank kumar
03/20/2023, 11:52 AMViktoriia Vlasiuk
03/20/2023, 2:12 PMAuthorization
header with proper token it should be enough...
with Authentication setup with my creds I get 404 when I test my webhook.
without it I get 401
Could you please help me understand this?
NOTE: token is fine, webhook works via curlAnshu Ranjan
03/20/2023, 9:32 PMJerry Wang
03/21/2023, 8:12 AMCyrus Devnomad
03/21/2023, 1:24 PM{
"param1": [
"2"
],
"param2": [
"abc"
]
}
I have a bi-directional setting between my provider and my consumer.
I have intentionally changed the provider (ver-y, branch-y) API to not be compatible to the consumer (ver-x, branch-x) contract by offering only the parameter param1.
But when I publish the provider swagger.json file, the interaction consumer contract (ver-x, branch-x) vs provider (ver-y, branch-y) is shown as compatible and green. And when I execute can-i-deploy provider (ver-y, branch-y) to env1, the command passes and allows me to deploy the provider.
Shouldn't a provider API which misses some of the parameters the consumer expects, be considered as incompatible to that consumer? What could be the reason why my interaction is evaluated as compatible by Pactflow?Fábio Rodrigues
03/22/2023, 2:19 PM<tenantname>.<company>.com/.well-know/configuration
but keycloack expects a realms/<realmid>/.well-know/configuration
. Thus the formats of urls are different (although they end in the same endpoint).
We have a network address table that moves the request to the correct one (translates <tenantname>.<company>.com/.well-know/configuration
to the realms/<realmid>/.well-know/configuration
) . Is there any way to make this pass with bi-directional contract tests (Keycloak is an external component we don't control) and the external service don't has any initial access to know the realmid.jyothi B
03/30/2023, 1:36 PMjyothi B
03/30/2023, 1:37 PMFábio Rodrigues
03/31/2023, 12:54 PMSugi S
04/03/2023, 9:15 AMjyothi B
04/03/2023, 9:46 AMjyothi B
04/03/2023, 9:46 AMjyothi B
04/03/2023, 9:47 AMJeremy Chao
04/04/2023, 2:53 PMNerea
04/05/2023, 6:57 AMThomas
04/05/2023, 3:08 PM.json
as part of the path?
Example: /v1/user/925888/products.json
Thomas
04/06/2023, 1:50 PMResponse body is incompatible with the response body schema in the spec file: should be objectI think there is something missing in the error message? What
should be object
?Noor Hashem
04/11/2023, 7:47 PMNick Williams
04/13/2023, 5:08 PMoneOf/allOf
keywords and some circular references. The comparison is failing in several places due to "x should NOT have additional properties".
I have followed the guidance given here, but even after dereferencing and inlining the same errors still occur. I have eventually been able to get this working by further manually wrangling the spec, so could potentially write a script that would take care of this for me. However, this feels a bit hacky and is not ideal.
Are these more advanced OpenAPI spec features not supported? Is there any other guidance on what steps we can take without having to resort to intervening and amending the spec this way, or does anyone have any advice on how best to tackle this?
I am using pact-python for the consumer, and pact-php for the provider. Will comment on this thread with some excerpts of the OpenAPI spec.
Thanks in advance.Nigel Finley
04/14/2023, 1:44 PMCameron
04/16/2023, 10:13 PMHere is the URL for your shiny new toy (your credentials will be sent in a separate email):
) I see this message. I'm seeing this across browsers/devices/internet connectionsSugi S
04/17/2023, 3:36 PM