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

Compatibility Suite: Random fail on 'Supports a regex generator' scenario #549

Closed
tienvx opened this issue Apr 12, 2024 · 1 comment
Closed

Comments

@tienvx
Copy link
Contributor

tienvx commented Apr 12, 2024

Feature: V3 era Generators

...


  Scenario: Supports a regex generator                                                     # compatibility-suite/pact-compatibility-suite/features/V3/generators.feature:31
    Given a request configured with the following generators:                              # PhpPactTest\CompatibilitySuite\Context\V3\RequestGeneratorsContext::aRequestConfiguredWithTheFollowingGenerators()
      | body             | generators                 |
      | file: basic.json | randomregex-generator.json |

Verifying a pact between c and p

  Interaction 1 (0s loading, 5ms verification)
    returns a response which
      has status code 200 (FAILED)
      has a matching body (OK)


Failures:

1) Verifying a pact between c and p - Interaction 1
    1.1) has status code 200
           expected 200 but was 500

There were 1 pact failures

    When the request is prepared for use                                                   # PhpPactTest\CompatibilitySuite\Context\V3\RequestGeneratorsContext::theRequestIsPreparedForUse()
    Then the body value for "$.one" will have been replaced with a "string from the regex" # PhpPactTest\CompatibilitySuite\Context\V3\BodyGeneratorsContext::theBodyValueForWillHaveBeenReplacedWithA()
      string does not contain a valid JSON object. (JsonPath\InvalidJsonException)

https://github.com/tienvx/pact-php/actions/runs/11158029525/job/31013436962

@tienvx
Copy link
Contributor Author

tienvx commented Oct 3, 2024

This issue is not resolved by the PR above

@tienvx tienvx reopened this Oct 3, 2024
@tienvx tienvx changed the title Compatibility Suite: Random fail on 'V3 era Generators' feature Compatibility Suite: Random fail on 'Supports a regex generator' scenario Oct 18, 2024
@tienvx tienvx closed this as completed Oct 21, 2024
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

No branches or pull requests

1 participant