Hey guys, quick question We're testing 2 services...
# pactflow
f
Hey guys, quick question We're testing 2 services using bi-directional contratc tests. One of them is keycloak and another one is a external service (in that it is outside of the service cluster). Due to that some address that the external service access need to be 'translated' to internal ones. case in point, the external service has no definition of realmid that Keycloak uses in all endpoints. The external service uses
<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.
y
Hey., there is no current capability built into PactFlow. You could transform your OAS prior to uploading to PactFlow, or your pact file. The OAS would probably be easier (and safer) to parse/transform with existing tooling You could additionally annotate your document to state that these have been rewritten from x source