Closed aformuli closed 4 months ago
You may need to explain your setup here, it's not clear why docker is involved and how it is configured to work with Pact.
Specifically, what is this doing:
$config = new MockServerConfig();
$config->setHost('host.docker.internal');
$config->setPort(8080);
I'm guessing maybe this is where your provider API is running? If so, that's not how Pact is intended to work. The mock server is that - a mock - and is setup by Pact automatically based on the $builder
definition. This could explain the 404
- your API is not the Pact mock server and doesn't know how to respond to the administration calls.
Thanks Matt,
That is what I was confused of. I changed the the mock server config and it works now.
Great, no worries :)
Hi, I am using symfony framework with Docker. I have added a contract test with below code but I get No route found for POST http://host.docker.internal:8080/interactions; (404 Not Found).
I don't get where the /interactions route is set or if I am missing config for this path.
Thanks