UNPKG

wiremock-captain

Version:

A better way to use the WireMock simulator to test your HTTP APIs

48 lines (47 loc) 2.33 kB
"use strict"; // Copyright (c) WarnerMedia Direct, LLC. All rights reserved. Licensed under the MIT license. // See the LICENSE file for license information. Object.defineProperty(exports, "__esModule", { value: true }); exports.ResponseTransformer = exports.WireMockFault = exports.MatchingAttributes = exports.EndpointFeature = exports.DelayType = exports.BodyType = void 0; var BodyType; (function (BodyType) { BodyType["Default"] = "jsonBody"; BodyType["Body"] = "body"; BodyType["Base64Body"] = "base64Body"; })(BodyType || (exports.BodyType = BodyType = {})); var DelayType; (function (DelayType) { DelayType["CHUNKED_DRIBBLE"] = "CHUNKED_DRIBBLE"; DelayType["FIXED"] = "FIXED"; DelayType["LOG_NORMAL"] = "LOG_NORMAL"; DelayType["UNIFORM"] = "UNIFORM"; })(DelayType || (exports.DelayType = DelayType = {})); var EndpointFeature; (function (EndpointFeature) { EndpointFeature["Default"] = "url"; EndpointFeature["UrlPath"] = "urlPath"; EndpointFeature["UrlPathPattern"] = "urlPathPattern"; EndpointFeature["UrlPattern"] = "urlPattern"; })(EndpointFeature || (exports.EndpointFeature = EndpointFeature = {})); var MatchingAttributes; (function (MatchingAttributes) { MatchingAttributes["BinaryEqualTo"] = "binaryEqualTo"; MatchingAttributes["Contains"] = "contains"; MatchingAttributes["DoesNotMatch"] = "doesNotMatch"; MatchingAttributes["EqualTo"] = "equalTo"; MatchingAttributes["EqualToJson"] = "equalToJson"; MatchingAttributes["EqualToXml"] = "equalToXml"; MatchingAttributes["Matches"] = "matches"; MatchingAttributes["MatchesJsonPath"] = "matchesJsonPath"; })(MatchingAttributes || (exports.MatchingAttributes = MatchingAttributes = {})); var WireMockFault; (function (WireMockFault) { WireMockFault["CONNECTION_RESET_BY_PEER"] = "CONNECTION_RESET_BY_PEER"; WireMockFault["EMPTY_RESPONSE"] = "EMPTY_RESPONSE"; WireMockFault["MALFORMED_RESPONSE_CHUNK"] = "MALFORMED_RESPONSE_CHUNK"; WireMockFault["RANDOM_DATA_THEN_CLOSE"] = "RANDOM_DATA_THEN_CLOSE"; })(WireMockFault || (exports.WireMockFault = WireMockFault = {})); var ResponseTransformer; (function (ResponseTransformer) { ResponseTransformer["RESPONSE_TEMPLATE"] = "response-template"; })(ResponseTransformer || (exports.ResponseTransformer = ResponseTransformer = {}));