Add additional logs on server and additional info in list mock operation
This commit is contained in:
parent
bc3c3d1dc0
commit
332383ff15
6 changed files with 47 additions and 18 deletions
|
@ -107,7 +107,7 @@ class RemoteMockServer {
|
|||
CloseableHttpResponse response = client.execute(get)
|
||||
GPathResult xml = Util.extractXmlResponse(response)
|
||||
if (xml.name() == 'mocks') {
|
||||
return xml.mock.collect { new RegisteredMock(it.name.text(), it.path.text(), it.port.text() as int) }
|
||||
return xml.mock.collect { new RegisteredMock(it.name.text(), it.path.text(), it.port.text() as int, it.predicate.text(), it.response.text(), it.responseHeaders.text()) }
|
||||
}
|
||||
return []
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue