Skip to content
This repository has been 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

Open
Ptitpim opened this issue Jun 15, 2020 · 0 comments
Open

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

Ptitpim opened this issue Jun 15, 2020 · 0 comments

Comments

@Ptitpim
Copy link

Ptitpim commented Jun 15, 2020

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,
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant