This message was deleted.
# help
s
This message was deleted.
o
Hi!
My intention is to call WM API before tests to check if there are any existing mappings and then process to result
Is it for manual or automated tests? For manual tests, indeed you might want to use a tool to ensure everything is configured correctly. For automated tests, you have two options: using an external service (like your current instance or WireMock Cloud) or creating WireMock instances right inside the tests
j
For automation. here is the very rough prep I did
o
Then it really depends. You can use the existing external server, or maybe just use the WireMock rules to configure everything within tests and keeping everything at one place.
j
well the tests are run against services that are also in pods running "next" to wiremock on the same server. So contacting the existing server felt like least work needed.
I forgot to add in initial description that these are regression/integration tests not unit/component tests.
o
Yes, then an external server might be better
WireMock Java library can easily interact with the remote server, using the same APIs. And there is a CLI client. So yes, it should be quite straigth forward to code your needs
j
ok thank you. I will try and see what I can do and if any problems arise I will pop here on Slack again
👍 1