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

Unstable key generation with multiple provider states #1717

Closed
rkrishnan2012 opened this issue Sep 13, 2023 · 2 comments
Closed

Unstable key generation with multiple provider states #1717

rkrishnan2012 opened this issue Sep 13, 2023 · 2 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@rkrishnan2012
Copy link

Hello,

I am using the Pact JVM + Pact protobuf plugin to generate a consumer contract, but upon re-running the same consumer test twice, there are two interactions created (same contents, just different key). I narrowed it down to only happening when I have a single provider state with multiple parameters passed in, like so:

"providerStates": [
        {
          "name": "a user profile exists",
          "params": {
            "email_address": "[email protected]",
            "family_name": "Test",
          }
        }
],

Is this a bug in the pact JVM or in the protobuf plugin? It seems eerily similar to this bug but seems like that's closed.

@rholshausen rholshausen added the bug Indicates an unexpected problem or unintended behavior label Sep 21, 2023
@rholshausen
Copy link
Contributor

That fix should be in the latest version of the protobuf plugin, check that you have updated it. I'll check Pact-JVM to see if there is an issue there.

@rkrishnan2012
Copy link
Author

Closing this for now until we can repro this locally. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
Status: Closed
Development

No branches or pull requests

2 participants