Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step 5 - The verification process failed #5

Open
PavelPanasiuk opened this issue Apr 1, 2022 · 9 comments
Open

Step 5 - The verification process failed #5

PavelPanasiuk opened this issue Apr 1, 2022 · 9 comments

Comments

@PavelPanasiuk
Copy link

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
Copy link

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
Copy link
Contributor

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
Copy link
Author

Thanks for the answer!

@culudamar
Copy link

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

@ImerM
Copy link

ImerM commented May 18, 2022

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
Copy link

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

@culudamar
Copy link

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
Copy link

thanks, It worked.

@mefellows
Copy link
Contributor

mefellows commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants