WireMock CLI import configuration
WireMock CLI import and record config file format
| Type | object |
|---|---|
| File match |
wiremock-import-config.yaml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/wiremock-cli-import-configuration/latest.json |
| Source | https://static.wiremock.io/schemas/wiremock-import-config.yaml-schema.json |
Validate with Lintel
npx @lintel/lintel check
Configures how stubs should be generated when importing or recording
Properties
1 nested properties
A set of rules for transforming stub templates. All matching rules will be applied to the template. If multiple rules define matchers with the same name, the last rule will win.
Definitions
A base64 encoded string used to describe binary data.
A base64 encoded string used to describe binary data.
The scheme (protocol) part of the request URL
The hostname part of the request URL
The HTTP port number of the request URL
The HTTP request method e.g. GET
The path and query to match exactly against. Only one of url, urlPattern, urlPath, urlPathPattern or urlPathTemplate may be specified.
The path to match exactly against. Only one of url, urlPattern, urlPath, urlPathPattern or urlPathTemplate may be specified.
The path regex to match against. Only one of url, urlPattern, urlPath, urlPathPattern or urlPathTemplate may be specified.
The path and query regex to match against. Only one of url, urlPattern, urlPath, urlPathPattern or urlPathTemplate may be specified.
A Level 1 URI Template as specified in https://datatracker.ietf.org/doc/html/rfc6570. Only one of url, urlPattern, urlPath, urlPathPattern or urlPathTemplate may be specified.
Path parameter patterns to match against in the
Query parameter patterns to match against in the
application/x-www-form-urlencoded form parameter patterns to match against in the
Header patterns to match against in the
Pre-emptive basic auth credentials to match against
2 nested properties
Cookie patterns to match against in the
Request body patterns to match against in the
Custom request matcher to match against
2 nested properties
The matcher's name specified in the implementation of the matcher.
Multipart patterns to match against headers and body.
The delay distribution. Valid property configuration is either median/sigma/type or lower/type/upper.
This stub mapping's unique identifier
Alias for the id
The stub mapping's name
18 nested properties
The scheme (protocol) part of the request URL
The hostname part of the request URL
The HTTP port number of the request URL
The HTTP request method e.g. GET
The path and query to match exactly against. Only one of url, urlPattern, urlPath, urlPathPattern or urlPathTemplate may be specified.
The path to match exactly against. Only one of url, urlPattern, urlPath, urlPathPattern or urlPathTemplate may be specified.
The path regex to match against. Only one of url, urlPattern, urlPath, urlPathPattern or urlPathTemplate may be specified.
The path and query regex to match against. Only one of url, urlPattern, urlPath, urlPathPattern or urlPathTemplate may be specified.
A Level 1 URI Template as specified in https://datatracker.ietf.org/doc/html/rfc6570. Only one of url, urlPattern, urlPath, urlPathPattern or urlPathTemplate may be specified.
Path parameter patterns to match against in the
Query parameter patterns to match against in the
application/x-www-form-urlencoded form parameter patterns to match against in the
Header patterns to match against in the
Pre-emptive basic auth credentials to match against
2 nested properties
Cookie patterns to match against in the
Request body patterns to match against in the
Custom request matcher to match against
2 nested properties
The matcher's name specified in the implementation of the matcher.
Multipart patterns to match against headers and body.
Indicates that the stub mapping should be persisted immediately on create/update/delete and survive resets to default.
This stub mapping's priority relative to others. 1 is highest.
The name of the scenario that this stub mapping is part of
The required state of the scenario in order for this stub to be matched.
The new state for the scenario to be updated to after this stub is served.
A map of the names of post serve action extensions to trigger and their parameters.
The list of serve event listeners
Arbitrary metadata to be used for e.g. tagging, documentation. Can also be used to find and remove stubs.
1 nested properties
The HTTP request method
The path and query to match exactly against
The full URL to match against
Header patterns to match against in the
Cookie patterns to match against in the
Body string to match against
Headers from the request to include in the generated stub mappings, mapped to parameter objects. The only parameter available is "caseInsensitive", which defaults to false
Criteria for extracting response bodies to a separate file instead of including it in the stub mapping
2 nested properties
Size threshold for extracting binary response bodies. Supports humanized size strings, e.g. "56 Mb". Default unit is bytes.
Size threshold for extracting binary response bodies. Supports humanized size strings, e.g. "56 Mb". Default unit is bytes.
Whether to save stub mappings to the file system or just return them
When true, duplicate requests will be added to a Scenario. When false, duplicates are discarded
Control the request body matcher used in generated stub mappings
List of names of stub mappings transformers to apply to generated stubs
Parameters to pass to stub mapping transformers
The scenario ID
The scenario name
The current state of this scenario
The status of the server
Longer message regarding the status of the server
The WireMock version
How long the server has been running
The current timestamp