2020
2121Test .Summary = 'Exercise Background Fill'
2222Test .SkipUnless (Condition .HasCurlFeature ('http2' ), Condition .HasProxyVerifierVersion ('2.8.0' ))
23- Test .SkipIf (Condition .CurlUds ())
2423Test .ContinueOnFail = True
2524
2625
@@ -55,7 +54,8 @@ def __setupTS(self, ts_names=['default']):
5554
5655 self .ts [name ].Disk .records_config .update (
5756 {
58- "proxy.config.http.server_ports" : f"{ self .ts [name ].Variables .port } { self .ts [name ].Variables .ssl_port } :ssl" ,
57+ "proxy.config.http.server_ports" :
58+ f"{ self .ts [name ].Variables .port } { self .ts [name ].Variables .ssl_port } :ssl { self .ts [name ].Variables .uds_path } " ,
5959 "proxy.config.http.background_fill_active_timeout" : "0" ,
6060 "proxy.config.http.background_fill_completed_threshold" : "0.0" ,
6161 "proxy.config.http.cache.required_headers" : 0 , # Force cache
@@ -113,7 +113,8 @@ def __testCase0(self):
113113timeout 2 {{curl}} --http1.1 -vs http://127.0.0.1:{ self .ts ['for_httpbin' ].Variables .port } /drip?duration=4;
114114sleep 4;
115115{{curl}} --http1.1 -vs http://127.0.0.1:{ self .ts ['for_httpbin' ].Variables .port } /drip?duration=4
116- """ )
116+ """ ,
117+ uds_path = self .ts ['for_httpbin' ].Variables .uds_path )
117118 tr .Processes .Default .ReturnCode = 0
118119 tr .Processes .Default .Streams .stderr = Testers .Any (
119120 "gold/background_fill_0_stderr_H.gold" , "gold/background_fill_0_stderr_W.gold" )
@@ -131,7 +132,8 @@ def __testCase1(self):
131132timeout 3 {{curl}} --http1.1 -vsk https://127.0.0.1:{ self .ts ['for_httpbin' ].Variables .ssl_port } /drip?duration=4;
132133sleep 5;
133134{{curl}} --http1.1 -vsk https://127.0.0.1:{ self .ts ['for_httpbin' ].Variables .ssl_port } /drip?duration=4
134- """ )
135+ """ ,
136+ uds_path = self .ts ['for_httpbin' ].Variables .uds_path )
135137 tr .Processes .Default .ReturnCode = 0
136138 tr .Processes .Default .Streams .stderr = Testers .Any (
137139 "gold/background_fill_1_stderr_H.gold" , "gold/background_fill_1_stderr_W.gold" )
@@ -149,7 +151,8 @@ def __testCase2(self):
149151timeout 3 {{curl}} --http2 -vsk https://127.0.0.1:{ self .ts ['for_httpbin' ].Variables .ssl_port } /drip?duration=4;
150152sleep 5;
151153{{curl}} --http2 -vsk https://127.0.0.1:{ self .ts ['for_httpbin' ].Variables .ssl_port } /drip?duration=4
152- """ )
154+ """ ,
155+ uds_path = self .ts ['for_httpbin' ].Variables .uds_path )
153156 tr .Processes .Default .ReturnCode = 0
154157 tr .Processes .Default .Streams .stderr = Testers .Any (
155158 "gold/background_fill_2_stderr_H.gold" , "gold/background_fill_2_stderr_W.gold" )
@@ -173,9 +176,10 @@ def __testCase3(self):
173176
174177 def run (self ):
175178 self .__testCase0 ()
176- self .__testCase1 ()
177- self .__testCase2 ()
178- self .__testCase3 ()
179+ if not Condition .CurlUsingUnixDomainSocket ():
180+ self .__testCase1 ()
181+ self .__testCase2 ()
182+ self .__testCase3 ()
179183
180184
181185BackgroundFillTest ().run ()
0 commit comments