Step 5 - The verification process failed
PavelPanasiuk opened this issue · comments
Glad it's not just me - I've wasted an hour or two trying to resolve this, pretty disappointing this workshop just doesn't work!
hi folks, this is a point in time workshop that pinned to an alpha version of the Pact .NET library.
The officially supported workshops are here: https://docs.pact.io/implementation_guides/workshops#pact-workshops---from-0-to-pact-in-2-hours
The latest version of Pact .NET is currently the 4.x.x (beta) line: https://github.com/pact-foundation/pact-net. You can download from Nuget directly. I'd use the examples in the pact net repository until this workshop can be updated to reflect the latest API which is approaching a major (stable) release.
Thanks for the answer!
Hi all I'm having the same error, when will v3 be ready?
You can upgrade to 4.0.0-beta.3 version of PactNet and make changes to ProductTest.cs in the Provider solution like so, also make sure to remove pactnet.Native since it is no longer used.
using PactNet.Verifier;
...
pactVerifier
.ServiceProvider("ProductService", new Uri(_pactServiceUri))
.WithFileSource(pactFile)
.WithProviderStateUrl(new Uri($"{_pactServiceUri}/provider-states"))
.Verify();
Which pactnet version i can use to get through all the steps mentioned in this workshop. I am struck at step 5.
You can upgrade to 4.0.0-beta.3 version of PactNet and make changes to ProductTest.cs in the Provider solution like so, also make sure to remove pactnet.Native since it is no longer used.
using PactNet.Verifier; ... pactVerifier .ServiceProvider("ProductService", new Uri(_pactServiceUri)) .WithFileSource(pactFile) .WithProviderStateUrl(new Uri($"{_pactServiceUri}/provider-states")) .Verify();
I cannot see PactNet v4.0.0-beta.3. The only version I see is 4.0.0-beta (already selected). Pack package source is already added to Visual Studio and I chose Package Source: All.
thanks, It worked.