diff --git a/pkg/strategy/all_in_one_test.go b/pkg/strategy/all_in_one_test.go index 8e15ee0348..18e6e8cfa0 100644 --- a/pkg/strategy/all_in_one_test.go +++ b/pkg/strategy/all_in_one_test.go @@ -6,6 +6,8 @@ import ( "strings" "testing" + "github.com/jaegertracing/jaeger-operator/pkg/util" + "github.com/spf13/viper" "github.com/stretchr/testify/assert" "k8s.io/apimachinery/pkg/types" @@ -110,7 +112,7 @@ func assertDeploymentsAndServicesForAllInOne(t *testing.T, name string, s S, has ingresses := map[string]bool{} routes := map[string]bool{} if viper.GetString("platform") == v1.FlagPlatformOpenShift { - routes[fmt.Sprintf("%s", name)] = false + routes[fmt.Sprintf("%s", util.DNSName(name))] = false } else { ingresses[fmt.Sprintf("%s-query", name)] = false } diff --git a/pkg/strategy/production_test.go b/pkg/strategy/production_test.go index 28cffeb18c..4433521746 100644 --- a/pkg/strategy/production_test.go +++ b/pkg/strategy/production_test.go @@ -6,6 +6,8 @@ import ( "strings" "testing" + "github.com/jaegertracing/jaeger-operator/pkg/util" + "github.com/spf13/viper" "github.com/stretchr/testify/assert" corev1 "k8s.io/api/core/v1" @@ -151,7 +153,7 @@ func assertDeploymentsAndServicesForProduction(t *testing.T, name string, s S, h ingresses := map[string]bool{} routes := map[string]bool{} if viper.GetString("platform") == v1.FlagPlatformOpenShift { - routes[name] = false + routes[util.DNSName(name)] = false } else { ingresses[fmt.Sprintf("%s-query", name)] = false }