Hi, I'm trying to implement a test flow for birect...
# pactflow
v
Hi, I'm trying to implement a test flow for birectional testing and I'm following the dotnet project example: https://github.com/pactflow/example-bi-directional-provider-dotnet I've created my own api using .net web api template for minimal webapi option. I'm not able to run verify_swagger step in there. I'm getting error: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen retries = retries.increment( File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='host.docker.internal', port=9000): Max retries exceeded with url: /swagger/v1/swagger.json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe8c34912d0>: Failed to establish a new connection: [Errno 111] Connection refused')) I'm new to docker, do I need to replace url http://host.docker.internal:9000/swagger/v1/swagger.json with my localhost url? I tried that as well, and I'm still getting same error error. Any idea what can be done here? requests.exceptions.ConnectionError: HTTPSConnectionPool(host='localhost', port=7039): Max retries exceeded with url: /swagger/v1/swagger.json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f47ec6bf460>: Failed to establish a new connection: [Errno 111] Connection refused')) When I tried to run publish EXIT_CODE=0 make publish_provider_contract step, I'm getting error PactBlogsApi/swagger.json \ --provider "blogs-provider" \ --provider-app-version f4c421b-main+f4c421b.SNAPSHOT.USSCOL28H27D3 \ --branch main \ --content-type application/yaml \ --verification-exit-code=0 \ --verification-results report.txt \ --verification-results-content-type text/plain\ --verifier schemathesis docker: Error response from daemon: the working directory 'C:/repos/pact-research-api/pactblogsapi' is invalid, it needs to be an absolute path. See 'docker run --help'. make: * [Makefile57 publish_provider_contract] Error 125 Can you suggest what can be done here?
Can someone help with this?