Skip to content
This repository was archived by the owner on Sep 12, 2022. It is now read-only.
This repository was archived by the owner on Sep 12, 2022. It is now read-only.

Sometimes no mock created when part of the url start with digits #80

Description

@Ptitpim

Issue
When I call the api with part of url starting with digits, sometimes I have no mock recorded

  • "/v1/business-rules/?client_id=2" => create a mock file
  • "/v1/business-rules/6/" => no mock file created
  • "/v1/business-rules/8/" => no mock file created
  • "/v1/business-rules/3/" => no mock file created
  • "/v1/business-rules/7/" => create a mock file
  • "/v1/business-rules/28/" => create a mock file
  • "/v1/business-rules/33/" => no mock file created
  • "/v1/business-rules/1/" => create a mock file
    ...

I've tried to launch same queries in different orders, the result is the same.

Context:
I have an api who works like this:
"/v1/business-rules/?client_id=3" => list of items
"/v1/business-rules/6/" => data for item with ID: 6
"/v1/business-rules/4/" => data for item with ID: 4
...

Code

prism.create({
  mode: "mockrecord",
  host: ".......",
  port: 443,
  mockFilenameGenerator: "humanReadable",
  mocksPath: "./server/mocks",
  delay: "auto",
  https: true,
  name: "business_rules",
  context: '/v1/business-rules/',
  ignoreParameters: true,
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions