diff --git a/tests/e2e/test_rosacli_cluster_post.go b/tests/e2e/test_rosacli_cluster_post.go index eb7a74c591..a258990c15 100644 --- a/tests/e2e/test_rosacli_cluster_post.go +++ b/tests/e2e/test_rosacli_cluster_post.go @@ -325,7 +325,11 @@ var _ = Describe("Healthy check", By("Check compute machine type") jsonData, err := clusterService.GetJSONClusterDescription(clusterID) Expect(err).To(BeNil()) - Expect(jsonData.DigString("nodes", "compute_machine_type", "id")).To(Equal(profile.ClusterConfig.InstanceType)) + if profile.ClusterConfig.InstanceType == "" { + Expect(jsonData.DigString("nodes", "compute_machine_type", "id")).To(Equal(constants.DefaultInstanceType)) + } else { + Expect(jsonData.DigString("nodes", "compute_machine_type", "id")).To(Equal(profile.ClusterConfig.InstanceType)) + } }) }) diff --git a/tests/utils/common/constants/cluster.go b/tests/utils/common/constants/cluster.go index 9f24c74611..1c939e6b53 100644 --- a/tests/utils/common/constants/cluster.go +++ b/tests/utils/common/constants/cluster.go @@ -51,3 +51,8 @@ var ( VersionRawPattern = regexp.MustCompile(`[0-9]+\.[0-9]+\.[0-9]+-?[0-9a-z\.-]*`) VersionFlexyPattern = regexp.MustCompile(`[zy]{1}-[1-3]{1}`) ) + +// instance type +const ( + DefaultInstanceType = "m5.xlarge" +)