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 'V3 era Generators applied to HTTP parts' feature #641

Open
tienvx opened this issue Sep 24, 2024 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@tienvx
Copy link
Contributor

tienvx commented Sep 24, 2024

Feature: V3 era Generators applied to HTTP parts

  Scenario: Supports using a generator with the request path             # compatibility-suite/pact-compatibility-suite/features/V3/http_generators.feature:3
    Given a request configured with the following generators:            # PhpPactTest\CompatibilitySuite\Context\V3\RequestGeneratorsContext::aRequestConfiguredWithTheFollowingGenerators()
      | generators                                                                 |
      | JSON: { "path": { "type": "ProviderState", "expression": "/path/${id}" } } |
    And the generator test mode is set as "Provider"                     # PhpPactTest\CompatibilitySuite\Context\V3\RequestGeneratorsContext::theGeneratorTestModeIsSetAs()

Verifying a pact between c and p

  Interaction 1 (0s loading, 1s 113ms verification)
      Request Failed - One or more of the setup state change handlers has failed


Failures:

1) Verifying a pact between c and p - Interaction 1 - One or more of the setup state change handlers has failed


There were 1 pact failures

    When the request is prepared for use with a "providerState" context: # PhpPactTest\CompatibilitySuite\Context\V3\RequestGeneratorsContext::theRequestIsPreparedForUseWithAProviderStateContext()
      | { "id": 1000 } |
    Then the request "path" will be set as "/path/1000"                  # PhpPactTest\CompatibilitySuite\Context\V3\RequestGeneratorsContext::theRequestWillBeSetAs()
      Warning: file_get_contents(compatibility-suite/tests/Constant/../../public/generators/path.txt): Failed to open stream: No such file or directory in compatibility-suite/tests/Service/GeneratorServer.php line 42

@tienvx tienvx added the bug Indicates an unexpected problem or unintended behavior label Sep 24, 2024
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
None yet
Development

No branches or pull requests

1 participant