Skip to content

Commit 90a0bbf

Browse files
Fiona-Watersopenshift-ci[bot]
authored andcommitted
updating machinepool test skip
1 parent b5f8b04 commit 90a0bbf

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

test/e2e/instascale_machinepool_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ func TestInstascaleMachinePool(t *testing.T) {
2929
test := With(t)
3030
test.T().Parallel()
3131

32-
if !IsOsd() {
33-
test.T().Skip("Skipping test as not running on an OSD cluster")
32+
clusterType := GetClusterType(test)
33+
if clusterType != OsdCluster {
34+
test.T().Skipf("Skipping test as not running on an OSD cluster, resolved cluster type: %s", clusterType)
3435
}
3536

3637
namespace := test.NewTestNamespace()

test/support/environment.go

-8
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,6 @@ func GetClusterType(t Test) ClusterType {
9696
}
9797
}
9898

99-
func IsOsd() bool {
100-
osdClusterId, found := GetOsdClusterId()
101-
if found && osdClusterId != "" {
102-
return true
103-
}
104-
return false
105-
}
106-
10799
func lookupEnvOrDefault(key, value string) string {
108100
if v, ok := os.LookupEnv(key); ok {
109101
return v

0 commit comments

Comments
 (0)