GitHub
04/12/2023, 9:21 AMnew PactVerifier(config)
.ServiceProvider("Test", _fixture.ServerUri)
.WithPactBrokerSource(new Uri(pactBrokerUri), opts =>
{
opts
.TokenAuthentication(apiToken)
.ConsumerVersionSelectors(new ConsumerVersionSelector { MainBranch = true, Latest = true })
.PublishResults(providerVersion, results =>
{
results
.ProviderBranch(branchName);
});
})
.WithProviderStateUrl(new Uri(_fixture.ServerUri, "/provider-states"))
.Verify();
This all works fine in 4.3.0, but as soon as i upgrade to 4.4.0 without changing any configuration I suddenly start getting these errors:
Request Failed - One or more of the setup state change handlers has failed
...
MismatchResult::Error("Invalid status code: 405", Some("793d03f1cf58ea18516c4e41492e368e905a5cd3"))
It seems as though the provider states HTTP method has changed or it is no longer being called as a post
pact-foundation/pact-netGitHub
04/30/2023, 8:10 AM