@@ -280,26 +280,15 @@ var ConfigmapGzip = suite.ConformanceTest{
280280 Description : "The Ingress in the higress-conformance-infra namespace uses the configmap gzip." ,
281281 Manifests : []string {"tests/configmap-gzip.yaml" },
282282 Features : []suite.SupportedFeature {suite .HTTPConformanceFeature },
283- Parallel : false ,
284283 Test : func (t * testing.T , suite * suite.ConformanceTestSuite ) {
285- t .Log ("π ConfigmapGzip: Test started" )
286284 t .Run ("Configmap Gzip" , func (t * testing.T ) {
287- t .Log ("π ConfigmapGzip: Processing" , len (testCases ), "test cases" )
288- for i , testcase := range testCases {
289- t .Logf ("π ConfigmapGzip: Processing test case %d/%d: %s" , i + 1 , len (testCases ), testcase .httpAssert .Meta .TestCaseName )
290-
285+ for _ , testcase := range testCases {
291286 err := kubernetes .ApplyConfigmapDataWithYaml (t , suite .Client , "higress-system" , "higress-config" , "higress" , testcase .higressConfig )
292287 if err != nil {
293- t .Logf ("β ConfigmapGzip: Failed to apply config for test case %d: %v" , i + 1 , err )
294- t .Logf ("π ConfigmapGzip: Failed to apply configmap %s in namespace %s for data key %s" , "higress-config" , "higress-system" , "higress" )
295- t .FailNow ()
288+ t .Fatalf ("can't apply conifgmap %s in namespace %s for data key %s" , "higress-config" , "higress-system" , "higress" )
296289 }
297- t .Logf ("β
ConfigmapGzip: Config applied for test case %d" , i + 1 )
298-
299290 http .MakeRequestAndExpectEventuallyConsistentResponse (t , suite .RoundTripper , suite .TimeoutConfig , suite .GatewayAddress , testcase .httpAssert )
300- t .Logf ("β
ConfigmapGzip: HTTP assertion passed for test case %d" , i + 1 )
301291 }
302- t .Log ("π ConfigmapGzip: All test cases completed successfully" )
303292 })
304293 },
305294}
@@ -309,27 +298,16 @@ var ConfigMapGzipEnvoy = suite.ConformanceTest{
309298 Description : "The Envoy config should contain gzip config" ,
310299 Manifests : []string {"tests/configmap-gzip.yaml" },
311300 Features : []suite.SupportedFeature {suite .EnvoyConfigConformanceFeature },
312- Parallel : false ,
313301 Test : func (t * testing.T , suite * suite.ConformanceTestSuite ) {
314- t .Log ("π ConfigMapGzipEnvoy: Test started" )
315302 t .Run ("ConfigMap Gzip Envoy" , func (t * testing.T ) {
316- t .Log ("π ConfigMapGzipEnvoy: Processing" , len (testCases ), "test cases" )
317- for i , testcase := range testCases {
318- t .Logf ("π ConfigMapGzipEnvoy: Processing test case %d/%d" , i + 1 , len (testCases ))
319-
303+ for _ , testcase := range testCases {
320304 // apply config
321305 err := kubernetes .ApplyConfigmapDataWithYaml (t , suite .Client , "higress-system" , "higress-config" , "higress" , testcase .higressConfig )
322306 if err != nil {
323- t .Logf ("β ConfigMapGzipEnvoy: Failed to apply config for test case %d: %v" , i + 1 , err )
324- t .Logf ("π ConfigMapGzipEnvoy: Failed to apply configmap %s in namespace %s for data key %s" , "higress-config" , "higress-system" , "higress" )
325- t .FailNow ()
307+ t .Fatalf ("can't apply conifgmap %s in namespace %s for data key %s" , "higress-config" , "higress-system" , "higress" )
326308 }
327- t .Logf ("β
ConfigMapGzipEnvoy: Config applied for test case %d" , i + 1 )
328-
329309 envoy .AssertEnvoyConfig (t , suite .TimeoutConfig , testcase .envoyAssertion )
330- t .Logf ("β
ConfigMapGzipEnvoy: Envoy assertion passed for test case %d" , i + 1 )
331310 }
332- t .Log ("π ConfigMapGzipEnvoy: All test cases completed successfully" )
333311 })
334312 },
335- }
313+ }
0 commit comments