Hello, I'm trying to verify my provider but I have...
# pact-go
c
Hello, I'm trying to verify my provider but I have the error: 1) Failed to load pact - Could not load pacts from the pact broker 'https://mybroker.pactflow.io' err := verifier.VerifyProvider(t, provider.VerifyRequest{ ProviderBaseURL: "http://0.0.0.0:8080", Provider: "V3Provider", ProviderVersion: "1.0.0", BrokerURL: "https://mybroker.pactflow.io", BrokerUsername: "myemail@gmail.com", BrokerPassword: "mypassword", BrokerToken: "myToken", Tags: []string{"master", "prod"}, PublishVerificationResults: true, // PactFiles: []string{ // filepath.ToSlash("/workspaces/go/consumer/pacts/PactGoProductAPIConsumer-PactGoProductAPI.json"), // }, If I try locally with PactFiles it's working I can verify my provider but if I change to try with the Broker everytime I have this error Failed to load pact and I don't understand why, if someone can help me it will be nice.
m
So you only use
token
if you use PactFlow, username/password is for a different authentication scheme
I’d set the log level to
debug
and see what the logs say about why it can’t find any pacts
also, you should avoid the use of
Tags
as they are the old way to publish and select pact files - you should look at branches/environment/releases: https://docs.pact.io/blog/2021/07/04/why-we-are-getting-rid-of-tags
c
ok thanks it was due to the username/password. now it's working
👍 1
but why I my broker the verified status is still "never?
ok found the issue it was also because of the tags somewhere else in my code
👍 1