mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Integration test with Wiremock on Gitlab CI #451
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @t0mmili on GitHub (Sep 22, 2022).
Hi, I was recently refactoring integration tests, which are currently running as a single docker-compose in the following way:
Everything is running just fine. But this solution is far from optimal in Gitlab CI, hence refactoring.
In Gitlab CI pipeline it looks like this so far:
Terraform part is ok, but then it comes to integration tests and I get this error:
Wiremock settings:
I'm was trying to separate this error and it looks like it comes from Wiremock test server.
I also setup WireMockConsoleLogger, but all information I've got are above...
So my question is, how can I pull more details regarding this error? Or is it maybe obvious what is wrong and I just don't see it?
@StefH commented on GitHub (Sep 22, 2022):
You can call the /requests endpoint from the wiremock Docker to get more details.
https://github.com/WireMock-Net/WireMock.Net/wiki/Admin-API-Reference#__adminrequests
Btw normally when WireMock docker throws an exception, this will be logged in the console log?
Are you sure that WireMock throws exception?
@t0mmili commented on GitHub (Sep 26, 2022):
Thanks, it turned out it wasn't issue with WireMock, but rather with Localstack. I have extended WireMock server configure service method with some additional logging and got my answer. I was missing AWS_REGION env variable in pipeline configuration :) Which was obviously set in previous setup, before I switched to Gitlab CI, but during the migration I was copying example code from Localstack docs and they only had AWS_DEFAULT_REGION. Case closed!