-
Notifications
You must be signed in to change notification settings - Fork 19
/
matching.go
48 lines (40 loc) · 1.65 KB
/
matching.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package wiremock
// Types of params matching.
const (
ParamEqualTo ParamMatchingStrategy = "equalTo"
ParamMatches ParamMatchingStrategy = "matches"
ParamContains ParamMatchingStrategy = "contains"
ParamEqualToXml ParamMatchingStrategy = "equalToXml"
ParamEqualToJson ParamMatchingStrategy = "equalToJson"
ParamMatchesXPath ParamMatchingStrategy = "matchesXPath"
ParamMatchesJsonPath ParamMatchingStrategy = "matchesJsonPath"
ParamAbsent ParamMatchingStrategy = "absent"
ParamDoesNotMatch ParamMatchingStrategy = "doesNotMatch"
ParamDoesNotContains ParamMatchingStrategy = "doesNotContain"
ParamMatchesJsonSchema ParamMatchingStrategy = "matchesJsonSchema"
)
// Types of url matching.
const (
URLEqualToRule URLMatchingStrategy = "url"
URLPathEqualToRule URLMatchingStrategy = "urlPath"
URLPathMatchingRule URLMatchingStrategy = "urlPathPattern"
URLMatchingRule URLMatchingStrategy = "urlPattern"
URLPathTemplateRule URLMatchingStrategy = "urlPathTemplate"
)
// Type of less strict matching flags.
const (
IgnoreArrayOrder EqualFlag = "ignoreArrayOrder"
IgnoreExtraElements EqualFlag = "ignoreExtraElements"
)
const (
ParamHasExactly MultiValueMatchingStrategy = "hasExactly"
ParamIncludes MultiValueMatchingStrategy = "includes"
)
// EqualFlag is enum of less strict matching flag.
type EqualFlag string
// URLMatchingStrategy is enum url matching type.
type URLMatchingStrategy string
// ParamMatchingStrategy is enum params matching type.
type ParamMatchingStrategy string
// MultiValueMatchingStrategy is enum multi value matching type.
type MultiValueMatchingStrategy string