Documentation ¶
Overview ¶
Package wiremock provides a mechanism for importing wiremock Json API Mappings into mockery/httpmock. The implementation, at this time, is incomplete. It handles file, string, and json based response bodies. It does not handle any templating. It can handle request matching conditions that include "EqualsTo", "Contains", "Matches" and "DoesNotMatch" for Headers and Query Parameters. It also supports all types of url matching.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WireMockEndpoint ¶
func WireMockEndpoint(dataDirName, fileName string)
WireMockEndpoint takes the name of the base dir the files are expected in and the filename of a wiremock .json mapping file.
func WireMockEndpoints ¶
func WireMockEndpoints(dirName string)
WireMockEndpoints takes the dirName and looks for .json files in a subdirectory named "mappings" any files named in the mappings are looked for in the __files subdirectory of the base dir name.
Types ¶
This section is empty.