DiUS / pact-workshop-dotnet-core-v3

Apache License 2.0
24 stars 23 forks source link

Step 5 - The verification process failed #5

Open PavelPanasiuk opened 2 years ago

PavelPanasiuk commented 2 years ago

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.

DarrylGwinnett commented 2 years ago

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!

mefellows commented 2 years ago

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.

PavelPanasiuk commented 2 years ago

Thanks for the answer!

culudamar commented 2 years ago

Hi all I'm having the same error, when will v3 be ready?

ImerM commented 2 years ago

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();
amit-chaudhary-coupa commented 2 years ago

Which pactnet version i can use to get through all the steps mentioned in this workshop. I am struck at step 5.

culudamar commented 2 years ago

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.

amit-chaudhary-coupa commented 2 years ago

thanks, It worked.

mefellows commented 1 year ago

This is an unofficial workshop and not the place for that question. Best to check at https://github.com/pact-foundation/pact-net/ or ask in our community workspace: slack.pact.io in the #pact-net channel

On Mon, May 9, 2022 at 10:28 PM culudamar @.***> wrote:

Hi all I'm having the same error, when will v3 be ready?

— Reply to this email directly, view it on GitHub https://github.com/DiUS/pact-workshop-dotnet-core-v3/issues/5#issuecomment-1121035848, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAANFDBT2DRH44HHCWTPZSDVJEAHNANCNFSM5SJZ24KA . You are receiving this because you commented.Message ID: @.***>

-- Matt Fellows www.onegeek.com.au calendly.com/mfellows