JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
I've got an endpoint that takes value via path param. This value can contain forward slash ie Some/Value.
I'm using pact-jvm in version 4.2.0.
I want to write consumer test against that endpoint. My client encodes this value to Some%2FValue.
I've got interaction defined with .path("/endpoint/Some%2FValue"). I've debugged execution and it fails to match request to expectation.
I'm using default MockHttpServer and when HttpExchange gets transformed to Request path gets decoded, ergo does not match expectation.
Same problem is visible on provider side. I've manually edited contract file to contain "/endpoint/Some%2FValue".
Unfortunately my endpoint gets called with "/endpoint/Some/Value".
I've seen couple old closed tickets here that say it should work. Documentation is pretty vague about it. Is it regression or am I doing something wrong?
Hey,
I've got an endpoint that takes value via path param. This value can contain forward slash ie Some/Value.
I'm using pact-jvm in version 4.2.0.
I want to write consumer test against that endpoint. My client encodes this value to Some%2FValue. I've got interaction defined with .path("/endpoint/Some%2FValue"). I've debugged execution and it fails to match request to expectation. I'm using default MockHttpServer and when HttpExchange gets transformed to Request path gets decoded, ergo does not match expectation.
Same problem is visible on provider side. I've manually edited contract file to contain "/endpoint/Some%2FValue". Unfortunately my endpoint gets called with "/endpoint/Some/Value".
I've seen couple old closed tickets here that say it should work. Documentation is pretty vague about it. Is it regression or am I doing something wrong?