From 76d0a5441649b5263dcab596e2bf7ca807bfb8da Mon Sep 17 00:00:00 2001 From: David Festal Date: Thu, 7 Nov 2019 21:56:36 +0100 Subject: [PATCH] Fix a failing test due to hard coded `che` Signed-off-by: David Festal --- pkg/controller/che/che_controller_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controller/che/che_controller_test.go b/pkg/controller/che/che_controller_test.go index 4ed20489d..8a8891dfd 100644 --- a/pkg/controller/che/che_controller_test.go +++ b/pkg/controller/che/che_controller_test.go @@ -12,6 +12,7 @@ package che import ( + "github.com/eclipse/che-operator/pkg/deploy" "context" "time" @@ -176,7 +177,7 @@ func TestCheController(t *testing.T) { if cm.Data["CHE_INFRA_OPENSHIFT_TLS__ENABLED"] != "true" { t.Errorf("ConfigMap wasn't updated. Extecting true, got: %s", cm.Data["CHE_INFRA_OPENSHIFT_TLS__ENABLED"]) } - if err := cl.Get(context.TODO(), types.NamespacedName{Name: "che", Namespace: cheCR.Namespace}, route); err != nil { + if err := cl.Get(context.TODO(), types.NamespacedName{Name: deploy.DefaultCheFlavor, Namespace: cheCR.Namespace}, route); err != nil { t.Errorf("Route %s not found: %s", cm.Name, err) } if route.Spec.TLS.Termination != "edge" {