wiremock

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL