mirror of
				https://git.haproxy.org/git/haproxy.git/
				synced 2025-10-31 08:30:59 +01:00 
			
		
		
		
	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.
		
			
				
	
	
		
			27 lines
		
	
	
		
			489 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			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,
 |