From 9a8f8393918a1c3b6ac23f3ff1b514492f254a11 Mon Sep 17 00:00:00 2001 From: Lukas Krejci Date: Thu, 25 Apr 2024 16:19:45 +0200 Subject: [PATCH] Add test cases for host cluster urls Co-authored-by: Matous Jobanek --- pkg/utils/util_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/utils/util_test.go b/pkg/utils/util_test.go index 693f922..1254213 100644 --- a/pkg/utils/util_test.go +++ b/pkg/utils/util_test.go @@ -35,6 +35,16 @@ func TestGetToolchainClusterName(t *testing.T) { Ordinal int } for expectedClusterName, params := range map[string]Params{ + "host-sandbox.x7a5.a2.openshiftapps.com": { + ClusterType: "host", + ServerAPI: "https://api.sandbox.x7a5.a2.openshiftapps.com:6443", + Ordinal: 0, + }, + "member-sandbox-m2.ab8k.b3.openshiftapps.com": { + ClusterType: "member", + ServerAPI: "https://api.sandbox-m2.ab8k.b3.openshiftapps.com:6443", + Ordinal: 0, + }, "member-api-prefix-dropped": { ClusterType: "member", ServerAPI: "https://api.api-prefix-dropped",