Skip to content

Commit 8a915ec

Browse files
committed
fix DCM tests
Some fixes to the DCM e2e test. * fix secret name used on the secure endpoint pod * manually update Route resources created via oc expose service, since it seems to be ignoring --labels command-line option. Jira: https://issues.redhat.com/browse/NE-906
1 parent 2108639 commit 8a915ec

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

test/extended/router/config_manager.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)