mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-29 05:42:14 +02:00
/needs-a-key
This commit is contained in:
@@ -299,7 +299,7 @@ namespace WireMock.Net.ConsoleApplication
|
|||||||
|
|
||||||
server
|
server
|
||||||
.Given(Request.Create()
|
.Given(Request.Create()
|
||||||
.WithPath("/does-need-a-key")
|
.WithPath("/needs-a-key")
|
||||||
.UsingGet()
|
.UsingGet()
|
||||||
.WithHeader("api-key", "*", MatchBehaviour.AcceptOnMatch)
|
.WithHeader("api-key", "*", MatchBehaviour.AcceptOnMatch)
|
||||||
.UsingAnyMethod())
|
.UsingAnyMethod())
|
||||||
@@ -309,7 +309,7 @@ namespace WireMock.Net.ConsoleApplication
|
|||||||
|
|
||||||
server
|
server
|
||||||
.Given(Request.Create()
|
.Given(Request.Create()
|
||||||
.WithPath("/doesnot-need-a-key")
|
.WithPath("/needs-a-key")
|
||||||
.UsingGet()
|
.UsingGet()
|
||||||
.WithHeader("api-key", "*", MatchBehaviour.RejectOnMatch)
|
.WithHeader("api-key", "*", MatchBehaviour.RejectOnMatch)
|
||||||
.UsingAnyMethod())
|
.UsingAnyMethod())
|
||||||
|
|||||||
Reference in New Issue
Block a user