Skip to content

wiremock

Whether to enable WireMock.

Type: boolean

Default:

false

Example:

true

Declared by:

Which package of WireMock to use.

Type: package

Default:

pkgs.wiremock

Declared by:

Whether to disable print banner logo.

Type: boolean

Default:

false

Declared by:

The mappings to mock. See the JSON examples on https://wiremock.org/docs/stubbing/ for more information.

Type: JSON value

Default:

[ ]

Example:

[
{
request = {
method = "GET";
url = "/body";
};
response = {
body = "Literal text to put in the body";
headers = {
Content-Type = "text/plain";
};
status = 200;
};
}
{
request = {
method = "GET";
url = "/json";
};
response = {
jsonBody = {
someField = "someValue";
};
status = 200;
};
}
]

Declared by:

The port number for the HTTP server to listen on.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

8080

Declared by:

Path to the WireMock root directory containing mappings and files. Cannot be set together with mappings. See https://wiremock.org/docs/standalone/java-jar/#command-line-options for more information.

Type: null or absolute path

Default:

null

Declared by:

Whether to log verbosely to stdout.

Type: boolean

Default:

false

Declared by: