DiUS / pact-workshop-dotnet-core-v3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Step 5 - The verification process failed

PavelPanasiuk opened this issue · comments

First 4 steps always passed but I have a problem with 5 step. I Had this error
image
And I spent a lot of time to resolve it but without any results. It is my first experience with pact. If you need more information please text me I will give it.

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?

commented

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.