Skip to content

Commit

Permalink
Add test cases for host cluster urls
Browse files Browse the repository at this point in the history
Co-authored-by: Matous Jobanek <[email protected]>
  • Loading branch information
metlos and MatousJobanek authored Apr 25, 2024
1 parent fdc1345 commit 9a8f839
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/utils/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9a8f839

Please sign in to comment.