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

Mappings not applied when running on Windows #38

Open
jmabuc opened this issue Feb 28, 2024 · 0 comments · May be fixed by #44
Open

Mappings not applied when running on Windows #38

jmabuc opened this issue Feb 28, 2024 · 0 comments · May be fixed by #44
Labels
bug Something isn't working

Comments

@jmabuc
Copy link

jmabuc commented Feb 28, 2024

Proposal

When running the quickstart example on Windows, mappings are not applied and the test fails with a 404 error. The test succeeds when runnig the same example on Windows with WSL. The example should run on Windows as well.
By looking at the code at https://github.com/wiremock/wiremock-testcontainers-go/blob/main/tc-wiremock.go#L97:
ContainerFilePath: filepath.Join("/home/wiremock/mappings", id+".json"),
The path is built by calling filepath.Join. This seems to fail in Windows.

It works fine if the line is changed in the following way:
ContainerFilePath: "/home/wiremock/mappings/" + id + ".json",

This is the same approach used in line https://github.com/wiremock/wiremock-testcontainers-go/blob/main/tc-wiremock.go#L110

Reproduction steps

Run the quickstart example on Windows.

References

No response

@jmabuc jmabuc added the bug Something isn't working label Feb 28, 2024
@dennismouwen-eye dennismouwen-eye linked a pull request Nov 6, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant