Fix a failing test due to hard coded `che`

Signed-off-by: David Festal <dfestal@redhat.com>
pull/126/head
David Festal 2019-11-07 21:56:36 +01:00
parent d121ea8155
commit 76d0a54416
1 changed files with 2 additions and 1 deletions

View File

@ -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" {