Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Sep 16, 2024
1 parent e59728b commit 7b58684
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ suite('test_auto_start_in_cloud', 'multi_cluster, docker') {

def getClusterFragementStatus = { def fe ->
def (feHost, feHttpPort) = fe.getHttpAddress()
// curl -X GET -u root: '128.1.1.1:8030/rest/v2/manager/cluster/cluster_info/cloud_cluster_status'
def url = 'http://' + feHost + ':' + feHttpPort + '/rest/v2/manager/cluster/cluster_info/cloud_cluster_status'
// curl -X GET -u root: '128.1.1.1:8030/rest/v2/manager/cluster/cluster_info/compute_group_status'
def url = 'http://' + feHost + ':' + feHttpPort + '/rest/v2/manager/cluster/cluster_info/compute_group_status'
def result = Http.GET(url, true)
result
}
Expand Down Expand Up @@ -130,7 +130,7 @@ suite('test_auto_start_in_cloud', 'multi_cluster, docker') {
tag = getCloudBeTagByName(clusterName)
logger.info("tag = {}", tag)
jsonObject = jsonSlurper.parseText(tag)
String cluster_status = jsonObject.cloud_cluster_status
String cluster_status = jsonObject.compute_group_status
cluster_status == "SUSPENDED"
}

Expand Down Expand Up @@ -158,7 +158,7 @@ suite('test_auto_start_in_cloud', 'multi_cluster, docker') {
tag = getCloudBeTagByName(clusterName)
logger.info("tag = {}", tag)
jsonObject = jsonSlurper.parseText(tag)
String cluster_status = jsonObject.cloud_cluster_status
String cluster_status = jsonObject.compute_group_status
cluster_status == "TO_RESUME"
}
sleep(5 * 1000)
Expand All @@ -172,7 +172,7 @@ suite('test_auto_start_in_cloud', 'multi_cluster, docker') {
tag = getCloudBeTagByName(clusterName)
logger.info("tag check = {}", tag)
jsonObject = jsonSlurper.parseText(tag)
String cluster_status = jsonObject.cloud_cluster_status
String cluster_status = jsonObject.compute_group_status
assertEquals("NORMAL", cluster_status)

// add 1 nodes, check it status NORMAL
Expand All @@ -189,7 +189,7 @@ suite('test_auto_start_in_cloud', 'multi_cluster, docker') {
return
}
jsonObject = jsonSlurper.parseText(tag)
cluster_status = jsonObject.cloud_cluster_status
cluster_status = jsonObject.compute_group_status
assertEquals("NORMAL", cluster_status)
}
}
Expand Down

0 comments on commit 7b58684

Please sign in to comment.