mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-17 23:14:23 +01:00
194 lines
3.6 KiB
Plaintext
194 lines
3.6 KiB
Plaintext
[
|
|
{
|
|
Guid: 41372914-1838-4c67-916b-b9aacdd096ce,
|
|
UpdatedAt: 2023-01-14 15:16:17,
|
|
Request: {
|
|
Path: {
|
|
Matchers: [
|
|
{
|
|
Name: WildcardMatcher,
|
|
Pattern: /foo,
|
|
IgnoreCase: false
|
|
}
|
|
]
|
|
},
|
|
Methods: [
|
|
GET
|
|
],
|
|
Params: [
|
|
{
|
|
Name: test,
|
|
Matchers: [
|
|
{
|
|
Name: ExactMatcher,
|
|
Pattern: abc,
|
|
IgnoreCase: false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
Response: {
|
|
BodyDestination: SameAsSource,
|
|
Body: { msg: "Hello world!"}
|
|
}
|
|
},
|
|
{
|
|
Guid: 98fae52e-76df-47d9-876f-2ee32e931001,
|
|
UpdatedAt: 2023-01-14 15:16:17,
|
|
Request: {
|
|
Path: {
|
|
Matchers: [
|
|
{
|
|
Name: WildcardMatcher,
|
|
Pattern: /users/post1,
|
|
IgnoreCase: false
|
|
}
|
|
]
|
|
},
|
|
Methods: [
|
|
POST
|
|
],
|
|
Body: {
|
|
Matcher: {
|
|
Name: JsonMatcher,
|
|
Pattern: {
|
|
Request: Hello?
|
|
},
|
|
IgnoreCase: false,
|
|
Regex: false
|
|
}
|
|
}
|
|
},
|
|
Response: {}
|
|
},
|
|
{
|
|
Guid: 98fae52e-76df-47d9-876f-2ee32e931002,
|
|
UpdatedAt: 2023-01-14 15:16:17,
|
|
Request: {
|
|
Path: {
|
|
Matchers: [
|
|
{
|
|
Name: WildcardMatcher,
|
|
Pattern: /users/post2,
|
|
IgnoreCase: false
|
|
}
|
|
]
|
|
},
|
|
Methods: [
|
|
POST
|
|
],
|
|
Body: {
|
|
Matcher: {
|
|
Name: JsonMatcher,
|
|
Pattern: {
|
|
city: Amsterdam,
|
|
country: The Netherlands
|
|
},
|
|
IgnoreCase: false,
|
|
Regex: false
|
|
}
|
|
}
|
|
},
|
|
Response: {}
|
|
},
|
|
{
|
|
Guid: 98fae52e-76df-47d9-876f-2ee32e931003,
|
|
UpdatedAt: 2023-01-14 15:16:17,
|
|
Request: {
|
|
Path: {
|
|
Matchers: [
|
|
{
|
|
Name: WildcardMatcher,
|
|
Pattern: /form-urlencoded,
|
|
IgnoreCase: false
|
|
}
|
|
]
|
|
},
|
|
Methods: [
|
|
POST
|
|
],
|
|
Headers: [
|
|
{
|
|
Name: Content-Type,
|
|
Matchers: [
|
|
{
|
|
Name: WildcardMatcher,
|
|
Pattern: application/x-www-form-urlencoded,
|
|
IgnoreCase: true
|
|
}
|
|
],
|
|
IgnoreCase: true
|
|
}
|
|
],
|
|
Body: {
|
|
Matcher: {
|
|
Name: FormUrlEncodedMatcher,
|
|
Patterns: [
|
|
name=John Doe,
|
|
email=johndoe@example.com
|
|
],
|
|
IgnoreCase: false,
|
|
MatchOperator: Or
|
|
}
|
|
}
|
|
},
|
|
Response: {}
|
|
},
|
|
{
|
|
Guid: 98fae52e-76df-47d9-876f-2ee32e931004,
|
|
UpdatedAt: 2023-01-14 15:16:17,
|
|
Request: {
|
|
Path: {
|
|
Matchers: [
|
|
{
|
|
Name: WildcardMatcher,
|
|
Pattern: /regex,
|
|
IgnoreCase: false
|
|
}
|
|
]
|
|
},
|
|
Methods: [
|
|
GET
|
|
],
|
|
Params: [
|
|
{
|
|
Name: foo,
|
|
Matchers: [
|
|
{
|
|
Name: RegexMatcher,
|
|
Pattern: .*,
|
|
IgnoreCase: false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
Response: {}
|
|
},
|
|
{
|
|
Guid: 98fae52e-76df-47d9-876f-2ee32e931005,
|
|
UpdatedAt: 2023-01-14 15:16:17,
|
|
Scenario: To do list,
|
|
SetStateTo: TodoList State Started,
|
|
TimesInSameState: 2,
|
|
Request: {
|
|
Path: {
|
|
Matchers: [
|
|
{
|
|
Name: WildcardMatcher,
|
|
Pattern: /todo/items,
|
|
IgnoreCase: false
|
|
}
|
|
]
|
|
},
|
|
Methods: [
|
|
GET
|
|
]
|
|
},
|
|
Response: {
|
|
BodyDestination: SameAsSource,
|
|
Body: Buy milk
|
|
}
|
|
}
|
|
] |