haproxy/reg-tests/stats/sample-stats-file
Amaury Denoyelle e3c976bb81 REGTESTS: stats: add test stats-file counters preload
Define a simple regtest to check stats-file loading on startup. A sample
stats-file is written with some invalid values which should be silently
ignored.
2024-05-02 16:44:28 +02:00

27 lines
489 B
Plaintext

#fe guid,stot,
// valid line
guid-fe,1024,
// invalid non numerical value must be silently ignored
guid-fe,abc,
// listener counters not allocated if no option socket-stats
guid-feS-0,1024
guid-fe2S-0,1024
// unknown GUID must be silently ignored
guid-unknown,1024,
// invalid GUID side must be silently ignored
guid-be,1024
// unknown section line must be silently ignored
#inval guid,other,
guid-foo,0,0,
// valid lines
#be guid,unknown,stot,
guid-be,512,1024,
guid-srv,512,1024,