20
20
21
21
Test .Summary = 'Exercise Background Fill'
22
22
Test .SkipUnless (Condition .HasCurlFeature ('http2' ), Condition .HasProxyVerifierVersion ('2.8.0' ))
23
- Test .SkipIf (Condition .CurlUds ())
24
23
Test .ContinueOnFail = True
25
24
26
25
@@ -55,7 +54,8 @@ def __setupTS(self, ts_names=['default']):
55
54
56
55
self .ts [name ].Disk .records_config .update (
57
56
{
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 } " ,
59
59
"proxy.config.http.background_fill_active_timeout" : "0" ,
60
60
"proxy.config.http.background_fill_completed_threshold" : "0.0" ,
61
61
"proxy.config.http.cache.required_headers" : 0 , # Force cache
@@ -113,7 +113,8 @@ def __testCase0(self):
113
113
timeout 2 {{curl}} --http1.1 -vs http://127.0.0.1:{ self .ts ['for_httpbin' ].Variables .port } /drip?duration=4;
114
114
sleep 4;
115
115
{{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 )
117
118
tr .Processes .Default .ReturnCode = 0
118
119
tr .Processes .Default .Streams .stderr = Testers .Any (
119
120
"gold/background_fill_0_stderr_H.gold" , "gold/background_fill_0_stderr_W.gold" )
@@ -131,7 +132,8 @@ def __testCase1(self):
131
132
timeout 3 {{curl}} --http1.1 -vsk https://127.0.0.1:{ self .ts ['for_httpbin' ].Variables .ssl_port } /drip?duration=4;
132
133
sleep 5;
133
134
{{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 )
135
137
tr .Processes .Default .ReturnCode = 0
136
138
tr .Processes .Default .Streams .stderr = Testers .Any (
137
139
"gold/background_fill_1_stderr_H.gold" , "gold/background_fill_1_stderr_W.gold" )
@@ -149,7 +151,8 @@ def __testCase2(self):
149
151
timeout 3 {{curl}} --http2 -vsk https://127.0.0.1:{ self .ts ['for_httpbin' ].Variables .ssl_port } /drip?duration=4;
150
152
sleep 5;
151
153
{{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 )
153
156
tr .Processes .Default .ReturnCode = 0
154
157
tr .Processes .Default .Streams .stderr = Testers .Any (
155
158
"gold/background_fill_2_stderr_H.gold" , "gold/background_fill_2_stderr_W.gold" )
@@ -173,9 +176,10 @@ def __testCase3(self):
173
176
174
177
def run (self ):
175
178
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 ()
179
183
180
184
181
185
BackgroundFillTest ().run ()
0 commit comments