but it’s complaining about a host so not sure abou...
# pact-php
m
but it’s complaining about a host so not sure about that
s
How can I check my pack broker on my local I have access to http://localhost:1234/ but the response for person is:
Copy code
{
  "message": "No interaction found for GET /person",
  "interaction_diffs": [
    {
      "description": "A get request to /person/{id}",
      "provider_state": "list of person",
      "headers": {
        "Accept": {
          "EXPECTED": "application/json",
          "ACTUAL": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
        }
      }
    }
  ]
}
m
I think you’re misunderstanding how it works
for local pact tests, there is no broker. 1. Write and execute consumer test (produces pact file) 2. Publish pact file to broker 3. Verify pact tests with provider (pulls pacts from broker)
🙌 1
you’re doing step (1) here
the error in the screen shot means you’re not sending any requests to the mock server
🙌 1
s
it is not possible to Publish Pact file to local broker?
m
it is, but localhost:1234 is not a pact broker (it looks like the pact mock service)
s
could you refer the documentation to follow the steps
m
howtolearn
s
Here are a number of useful hands-on labs that teach all of the key concepts: https://docs.pactflow.io/docs/workshops and https://docs.pact.io/implementation_guides/workshops
m
I’d honestly start with the tutorials on PactFlow if you’re not familiar. The JS in browser killercoda should get you across the concepts quickly
Did you get my DM about your account reset btw?
s
Yes, I got it and I succeeded to logged in
Thanks..
🙌 1