WireMock.Net-docker icon indicating copy to clipboard operation
WireMock.Net-docker copied to clipboard

How do I consume it?

Open scarbon opened this issue 4 years ago • 3 comments

How do I consume it on an Integration test? on Every option there is generally a Start() for the server, but since is already app, how do you configure mappings?

scarbon avatar Feb 04 '21 16:02 scarbon

This docker image starts without any mappings.

In this case you should post the mappings to the admin url.

This is explained here:

  • https://app.swaggerhub.com/apis/StefHeyenrath/WireMock/1.0.13.0
  • https://github.com/WireMock-Net/WireMock.Net/wiki/Admin-API-Reference#__adminmappings
  • https://app.swaggerhub.com/apis/StefHeyenrath/WireMock/1.0.13.0

StefH avatar Feb 04 '21 20:02 StefH

Passing Mappings on production server via Post request is not feasible. Is there a way to pass static mappings file? I seriously need this.

sumit1112 avatar Feb 15 '21 18:02 sumit1112

Hello @sumit1112, this can be done by copying the mapping files in a __admin\mappings folder. See this link: https://github.com/WireMock-Net/WireMock.Net/wiki/Mapping

StefH avatar Feb 16 '21 06:02 StefH