fix: TestRouteSpec test (#1402)

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
pull/1403/head
Anatolii Bazko 2022-06-13 12:10:03 +03:00 committed by GitHub
parent 8e0859aafc
commit 00809bd036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,6 @@ package deploy
import (
"context"
"os"
routev1 "github.com/openshift/api/route/v1"
"github.com/stretchr/testify/assert"
@ -81,7 +80,7 @@ func TestRouteSpec(t *testing.T) {
APIVersion: routev1.SchemeGroupVersion.String(),
},
Spec: routev1.RouteSpec{
Host: map[bool]string{false: "eclipse-che.route-domain", true: "devspaces.route-domain"}[os.Getenv("CHE_FLAVOR") == "devspaces"],
Host: map[bool]string{false: "eclipse-che.route-domain", true: "devspaces.route-domain"}[defaults.GetCheFlavor() == "devspaces"],
To: routev1.RouteTargetReference{
Kind: "Service",
Name: "che",