mirror of
https://github.com/zevenet/zproxy.git
synced 2025-10-26 11:19:19 +00:00
tests: add CTL stats call to stress_sess_ip_reload
This should help for debugging some of the oddities in this test. Signed-off-by: Nicolás A. Ortega Froysa <nicolas.ortega@zevenet.com>
This commit is contained in:
parent
a4bb1c8410
commit
2b17ba5b83
@ -19,5 +19,10 @@ DESCRIPTION="Wait for some requests to be sent"
|
||||
CMD=wait
|
||||
TIMEOUT=2
|
||||
#########################
|
||||
DESCRIPTION="Check stats for sessions"
|
||||
CMD=ctl
|
||||
METHOD="GET"
|
||||
URL=/listener/0
|
||||
#########################
|
||||
DESCRIPTION="Kill the wrk process"
|
||||
CMD=killwrk
|
||||
|
||||
@ -0,0 +1,68 @@
|
||||
{
|
||||
"3xx-code-hits": #######,
|
||||
"4xx-code-hits": #######,
|
||||
"5xx-code-hits": #######,
|
||||
"address": "0.0.0.0",
|
||||
"connections": #######,
|
||||
"https": false,
|
||||
"id": 0,
|
||||
"name": "env",
|
||||
"pending-connections": #######,
|
||||
"port": 80,
|
||||
"services": [
|
||||
{
|
||||
"backends": [
|
||||
{
|
||||
"2xx-code-hits": #######,
|
||||
"3xx-code-hits": #######,
|
||||
"4xx-code-hits": #######,
|
||||
"5xx-code-hits": #######,
|
||||
"address": "10.2.1.1",
|
||||
"connect-time": "#######",
|
||||
"connections": #######,
|
||||
"connections-limit": 0,
|
||||
"https": false,
|
||||
"id": "10.2.1.1-80",
|
||||
"pending-connections": #######,
|
||||
"port": 80,
|
||||
"priority": 1,
|
||||
"response-time": "#######",
|
||||
"status": "active",
|
||||
"type": 0,
|
||||
"nfmark": 0,
|
||||
"weight": 5
|
||||
},
|
||||
{
|
||||
"2xx-code-hits": #######,
|
||||
"3xx-code-hits": #######,
|
||||
"4xx-code-hits": #######,
|
||||
"5xx-code-hits": #######,
|
||||
"address": "10.2.1.2",
|
||||
"connect-time": "#######",
|
||||
"connections": #######,
|
||||
"connections-limit": 0,
|
||||
"https": false,
|
||||
"id": "10.2.1.2-80",
|
||||
"pending-connections": #######,
|
||||
"port": 80,
|
||||
"priority": 1,
|
||||
"response-time": "#######",
|
||||
"status": "active",
|
||||
"type": 0,
|
||||
"nfmark": 0,
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"name": "virtualhost",
|
||||
"priority": 1,
|
||||
"sessions": [
|
||||
{
|
||||
"id": "10.1.1.1",
|
||||
"backend-id": "10.2.1.1-80",
|
||||
"last-seen": #######
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"waf-hits": 0
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
ip netns exec proxy-ns /usr/bin/curl -X GET --connect-timeout 2 -s -k --show-error -w 'HTTP_VERSION: %{http_version}\n' -D test_5_ctl/response_headers.out.tmp -o test_5_ctl/body.out.tmp --unix-socket /tmp/zproxy_ctl.sock http://localhost/listener/0 >test_5_ctl/extended.out.tmp 2>test_5_ctl/error.out.tmp
|
||||
@ -0,0 +1 @@
|
||||
HTTP_VERSION: 1.1
|
||||
@ -0,0 +1,8 @@
|
||||
HTTP/1.1 200 OK
|
||||
Content-Type: application/json
|
||||
Content-Length: #######
|
||||
Expires: now
|
||||
Pragma: no-cache
|
||||
Server: zproxy/VERSION
|
||||
Cache-control: no-cache,no-store
|
||||
|
||||
Loading…
Reference in New Issue
Block a user