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

Resolving stub yaml path fails if multiple yaml paths are provided #50

Closed
dukeofharen opened this issue Dec 15, 2020 · 0 comments · Fixed by #51
Closed

Resolving stub yaml path fails if multiple yaml paths are provided #50

dukeofharen opened this issue Dec 15, 2020 · 0 comments · Fixed by #51

Comments

@dukeofharen
Copy link
Owner

Let's say you have the following stub

- id: stub1
  conditions:
    method: GET
    url:
      path: /img1
  response:
    file: 1.jpg
    headers:
      Content-Type: image/jpeg

This stub is located in folder /var/stubs/1. There is also a folder /var/stubs/2 that you want to read with HttPlaceholder.

When you start the application like this: httplaceholder --inputFile /var/stubs/1%%/var/stubs/2 and you go to http://httplaceholder-host:5000/img1, the image will not be resolved because the provided inputFile parameter is not a valid path. This should be the case for HttPlaceholder to find the file 1.jpg (which is located besides the stub file).

In short, what needs to happen, every path specified in inputFile should be checked iterated to find the specified file.

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

Successfully merging a pull request may close this issue.

1 participant