@@ -49,9 +49,6 @@ var _ = g.Describe("[sig-network][Feature:Router][apigroup:route.openshift.io]",
4949 oc = exutil .NewCLI ("router-config-manager" )
5050
5151 g .BeforeEach (func () {
52- // the test has been skipped since July 2018 because it was flaking.
53- // TODO: Fix the test and re-enable it in https://issues.redhat.com/browse/NE-906.
54- g .Skip ("HAProxy dynamic config manager tests skipped in 4.x" )
5552 ns = oc .Namespace ()
5653
5754 routerImage , err := exutil .FindRouterImage (oc )
@@ -462,7 +459,7 @@ http {
462459 Name : "cert" ,
463460 VolumeSource : corev1.VolumeSource {
464461 Secret : & corev1.SecretVolumeSource {
465- SecretName : "service -cert" ,
462+ SecretName : "serving -cert" ,
466463 },
467464 },
468465 },
@@ -491,9 +488,6 @@ http {
491488
492489 g .Describe ("The HAProxy router" , func () {
493490 g .It ("should serve the correct routes when running with the haproxy config manager" , func () {
494- // the test has been skipped since July 2018 because it was flaking.
495- // TODO: Fix the test and re-enable it in https://issues.redhat.com/browse/NE-906.
496- g .Skip ("HAProxy dynamic config manager tests skipped in 4.x" )
497491 ns := oc .KubeFramework ().Namespace .Name
498492 execPod := exutil .CreateExecPodOrFail (oc .AdminKubeClient (), ns , "execpod" )
499493 defer func () {
@@ -532,7 +526,10 @@ http {
532526 for i := 0 ; i < 16 ; i ++ {
533527 name := fmt .Sprintf ("hapcm-stress-insecure-%d" , i )
534528 hostName := fmt .Sprintf ("stress.insecure-%d.hapcm.test" , i )
535- err := oc .AsAdmin ().Run ("expose" ).Args ("service" , "insecure-service" , "--name" , name , "--hostname" , hostName , "--labels" , "select=haproxy-cfgmgr" ).Execute ()
529+ err := oc .AsAdmin ().Run ("expose" ).Args ("service" , "insecure-service" , "--name" , name , "--hostname" , hostName ).Execute ()
530+ o .Expect (err ).NotTo (o .HaveOccurred ())
531+ // --labels on `oc expose` (above) does not override the ones coming from service's selector.
532+ err = oc .AsAdmin ().Run ("label" ).Args ("route" , name , "select=haproxy-cfgmgr" ).Execute ()
536533 o .Expect (err ).NotTo (o .HaveOccurred ())
537534
538535 err = waitForRouteToRespond (ns , execPod .Name , "http" , hostName , "/" , routerIP , 0 )
0 commit comments