Skip to content

Instantly share code, notes, and snippets.

@tvaughan77
Created October 27, 2016 21:18
Show Gist options
  • Save tvaughan77/b3806cbea26dd7a442d656f791e72c5b to your computer and use it in GitHub Desktop.
Save tvaughan77/b3806cbea26dd7a442d656f791e72c5b to your computer and use it in GitHub Desktop.
WireMock request not matching
17:17:10.025 [qtp1935719908-21 - /api/v1/users] ERROR WireMock - Request was not matched:
{
"url" : "/api/v1/users",
"absoluteUrl" : "http://localhost:8090/api/v1/users",
"method" : "GET",
"clientIp" : "127.0.0.1",
"headers" : {
"Authorization" : "BASIC dG9tOnNlY3JldA==",
"Connection" : "keep-alive",
"User-Agent" : "user-client",
"Host" : "localhost:8090",
"Accept-Encoding" : "gzip,deflate",
"Accept" : "application/json"
},
"cookies" : { },
"browserProxyRequest" : false,
"loggedDate" : 1477603030001,
"bodyAsBase64" : "",
"body" : "",
"loggedDateString" : "2016-10-27T21:17:10Z"
}
Closest match:
{
"url" : "/api/v1/users",
"method" : "GET",
"headers" : {
"Accept" : {
"equalTo" : "application/json"
}
},
"basicAuthCredentials" : {
"username" : "tom",
"password" : "secret"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment