Hello! How can I use pacts for mocking in consumer...
# pact-broker
а
Hello! How can I use pacts for mocking in consumer's component tests?
y
You can use a stub server https://docs.pact.io/getting_started/stubs stub-server is written in rust and supports up to and including v4 pacts stub-service is written in ruby and supports up to and including v2 pacts
а
Guys, can you help me figure out why requests aren’t going out from the container? This tool is specifically designed to use written pacts for service mocking.
Copy code
bash


docker pull pactfoundation/pact-stub-server
docker run -p 8080:8080 pactfoundation/pact-stub-server --broker-url <https://pact-test.mygig.tech/> --user pact-broker-writer:password
Error:
Copy code
vbnet


2024-11-15T04:29:08.327143Z  INFO main pact_verifier::pact_broker: Fetching path '/' from pact broker
2024-11-15T04:29:08.473382Z ERROR main pact_stub_server: There were errors loading the pact files.
2024-11-15T04:29:08.473439Z ERROR main pact_stub_server:   - IO Error - Failed to access pact broker path '/' - error sending request for url (<https://pact-test.mygig.tech/>): error trying to connect: invalid peer certificate: UnknownIssuer. URL: '<https://pact-test.mygig.tech/>'
Error: ExitCode(unix_exit_status(3))
y
а
I tried this, but it didn’t change anything for me.🤔