Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit d8081e2

Browse files
author
Chris Wiechmann
committed
Added new Logstash integration tests to validate handling of sslSubject
#104
1 parent 06cf6f3 commit d8081e2

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

logstash/test/http/test-opentrafficlog.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,59 @@
703703
}
704704
}
705705
]
706+
},
707+
{
708+
"description": "Transaction-Element Leg-0 having an SSL-Subject set.",
709+
"input": [
710+
"{\"timestamp\":1619688909827,\"correlationId\":\"cd7d8a6097b7669f3d48c5b6\",\"processInfo\":{\"hostname\":\"api-front-11\",\"domainId\":\"8591ad8b-c13d-492a-83cd-c3f937bb91bd\",\"groupId\":\"group-3\",\"groupName\":\"Front\",\"serviceId\":\"instance-3\",\"serviceName\":\"api-front-11.prd.schenkerag.de.axway.cloud\",\"version\":\"7.7.20201130\"},\"transactionElement\":{\"leg\":0,\"duration\":26,\"serviceName\":\"MapService\",\"operation\":null,\"finalStatus\":null,\"protocolInfo\":{\"http\":{\"uri\":\"/mapservice/v1/data/v3/1/1/1.pbf\",\"status\":200,\"statusText\":\"OK\",\"method\":\"OPTIONS\",\"vhost\":null,\"wafStatus\":0,\"bytesSent\":617,\"bytesReceived\":723,\"remoteName\":\"localhost\",\"remoteAddr\":\"127.0.0.1\",\"localAddr\":\"127.0.0.1\",\"remotePort\":\"8065\",\"localPort\":\"55640\",\"sslSubject\":\"/CN=Change this for production\",\"authSubjectId\":null},\"recvHeader\":\"HTTP\/1.1 200 OK\r\nDate: Thu, 29 Apr 2021 09:35:09 GMT\r\nContent-Type: application\/x-protobuf\r\n\r\n\",\"sentHeader\":\"OPTIONS \/mapservice\/v1\/data\/v3\/1\/1\/1.pbf HTTP\/1.1\r\nHost: localhost:8065\r\nX-CorrelationID: Id-cd7d8a6097b7669f3d48c5b6 1\r\n\r\n\",\"recvPayload\":\"file:\/\/\/Cloud\/shared\/Openlogs\/2021-04-29\/11.35\/cd7d8a6097b7669f3d48c5b6-1-received\",\"sentPayload\":null}}}"
711+
],
712+
"expected": [
713+
{
714+
"@timestamp": "2021-03-17T11:10:26.799Z",
715+
"correlationId": "cd7d8a6097b7669f3d48c5b6",
716+
"processInfo": {
717+
"gatewayName": "API-Gateway 3",
718+
"gatewayRegion": "US",
719+
"groupId": "group-3",
720+
"groupName": "Front",
721+
"hostname": "api-front-11",
722+
"serviceId": "instance-3",
723+
"version": "7.7.20201130"
724+
},
725+
"transactionElements": {
726+
"leg0": {
727+
"duration": 26,
728+
"finalStatus": null,
729+
"leg": 0,
730+
"operation": null,
731+
"serviceName": "MapService",
732+
"protocolInfo": {
733+
"http": {
734+
"uri": "/mapservice/v1/data/v3/1/1/1.pbf",
735+
"status": 200,
736+
"statusText": "OK",
737+
"method": "OPTIONS",
738+
"vhost": null,
739+
"wafStatus": 0,
740+
"bytesSent": 617,
741+
"bytesReceived": 723,
742+
"remoteName": "localhost",
743+
"remoteAddr": "127.0.0.1",
744+
"localAddr": "127.0.0.1",
745+
"remotePort": "8065",
746+
"localPort": "55640",
747+
"sslSubject": "/CN=Change this for production",
748+
"authSubjectId": null
749+
},
750+
"recvHeader": "HTTP\/1.1 200 OK\r\nDate: Thu, 29 Apr 2021 09:35:09 GMT\r\nContent-Type: application\/x-protobuf\r\n\r\n",
751+
"recvPayload": "file:\/\/\/Cloud\/shared\/Openlogs\/2021-04-29\/11.35\/cd7d8a6097b7669f3d48c5b6-1-received",
752+
"sentHeader": "OPTIONS \/mapservice\/v1\/data\/v3\/1\/1\/1.pbf HTTP\/1.1\r\nHost: localhost:8065\r\nX-CorrelationID: Id-cd7d8a6097b7669f3d48c5b6 1\r\n\r\n",
753+
"sentPayload": null
754+
}
755+
}
756+
}
757+
}
758+
]
706759
}
707760
]
708761
}

0 commit comments

Comments
 (0)