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

root_dir broken for wiremock standalone server #100

Closed
simonjgould opened this issue Nov 14, 2023 · 0 comments · Fixed by #101
Closed

root_dir broken for wiremock standalone server #100

simonjgould opened this issue Nov 14, 2023 · 0 comments · Fixed by #101
Labels

Comments

@simonjgould
Copy link
Contributor

simonjgould commented Nov 14, 2023

Proposal

this should set the root dir for the server

Reproduction steps

self.wiremock_server = WireMockServer(root_dir=os.path.abspath("tests/resources"))

put file in tests/resources/__files

ref file in response mapping using body_file_name

error file not found and it defaults to root of current drive

References

the issue is on line 64 of server.py

        cmd.append("--root-dir=")

should be

        cmd.append("--root-dir")

looks like a cut and paste issue ;-)

I have fixed it locally and it works as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant