Skip to content

Query parameters aren't failing the verify method for a consumer #40

@lirantal

Description

@lirantal

Original discussion from gitter with @bethesque asking to track it here:

@lirantal the detailed logic for what matches and doesn't match can be found in the pact specification. The ruby impl is up to v2 https://github.com/pact-foundation/pact-specification/tree/version-2/testcases/request
I'm a bit suspicious about that params anomaly you mentioned earlier. Can you raise an issue in the pact-support repository please?

This is reproduced on:

  • Mac OS
  • Node.js v7.10
  • Pact JavaScript npm library 2.6.0

To reproduce:

  1. Setup an interaction where the query parameters are omitted from the request interaction
  2. Make an actual request with query parameters
  3. pact.verify() doesn't throw an error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions