diff --git a/regression-test/suites/manager/test_manager_interface_1.groovy b/regression-test/suites/manager/test_manager_interface_1.groovy index fbfe3f54389f9c..5621b4fcee96d0 100644 --- a/regression-test/suites/manager/test_manager_interface_1.groovy +++ b/regression-test/suites/manager/test_manager_interface_1.groovy @@ -325,18 +325,18 @@ DISTRIBUTED BY HASH(`k1`) BUCKETS 1""")) logger.info("result = ${result}" ) assertTrue(result.size() == 1) assertTrue(result[0][0] == "test_manager_tb_2") - def ddl_str = result[0][1] - def idx = ddl_str.indexOf("min_load_replica_num") - assertTrue( ddl_str.substring(idx,ddl_str.length()).startsWith("""min_load_replica_num" = "-1""")) - - sql """alter table test_manager_tb_2 set ("min_load_replica_num" = "1")""" - result = sql """ show create table test_manager_tb_2 """ - assertTrue(result[0][0] == "test_manager_tb_2") - ddl_str = result[0][1] - idx = ddl_str.indexOf("min_load_replica_num") - assertTrue( ddl_str.substring(idx,ddl_str.length()).startsWith("""min_load_replica_num" = "1""")) - - + if (!isCloudMode()) { + def ddl_str = result[0][1] + def idx = ddl_str.indexOf("min_load_replica_num") + assertTrue( ddl_str.substring(idx,ddl_str.length()).startsWith("""min_load_replica_num" = "-1""")) + + sql """alter table test_manager_tb_2 set ("min_load_replica_num" = "1")""" + result = sql """ show create table test_manager_tb_2 """ + assertTrue(result[0][0] == "test_manager_tb_2") + ddl_str = result[0][1] + idx = ddl_str.indexOf("min_load_replica_num") + assertTrue( ddl_str.substring(idx,ddl_str.length()).startsWith("""min_load_replica_num" = "1""")) + } sql """ DROP table test_manager_tb_2 FORCE""" sql """ drop database test_manager_tb_properties_case FORCE""" diff --git a/regression-test/suites/manager/test_manager_interface_2.groovy b/regression-test/suites/manager/test_manager_interface_2.groovy index 611f825c142306..bd47324de1508c 100644 --- a/regression-test/suites/manager/test_manager_interface_2.groovy +++ b/regression-test/suites/manager/test_manager_interface_2.groovy @@ -318,6 +318,9 @@ suite('test_manager_interface_2',"p0") { sql """ ALTER TABLE internal.__internal_schema.column_statistics SET ("replication_num" = "1") """ } + if (isCloudMode()) { + return + } test_system() diff --git a/regression-test/suites/manager/test_manager_interface_3.groovy b/regression-test/suites/manager/test_manager_interface_3.groovy index e94ae3dff6f460..52e5f5f99db55b 100644 --- a/regression-test/suites/manager/test_manager_interface_3.groovy +++ b/regression-test/suites/manager/test_manager_interface_3.groovy @@ -84,6 +84,14 @@ suite('test_manager_interface_3',"p0") { sql """CREATE USER '${user1}' IDENTIFIED BY '${pwd}' default role '${role1}' """ sql """CREATE USER '${user2}' IDENTIFIED BY '${pwd}' """ + //cloud-mode + if (isCloudMode()) { + def clusters = sql " SHOW CLUSTERS; " + assertTrue(!clusters.isEmpty()) + def validCluster = clusters[0][0] + sql """GRANT USAGE_PRIV ON CLUSTER ${validCluster} TO ${user1}"""; + sql """GRANT USAGE_PRIV ON CLUSTER ${validCluster} TO ${user2}"""; + } connect(user=user1, password="${pwd}", url=url) { test { @@ -399,6 +407,13 @@ suite('test_manager_interface_3',"p0") { sql """grant USAGE_PRIV on RESOURCE ${resource_name} TO ROLE '${role}' """ sql """CREATE USER '${user}' IDENTIFIED BY '${pwd}' default role '${role}' """ + //cloud-mode + if (isCloudMode()) { + def clusters = sql " SHOW CLUSTERS; " + assertTrue(!clusters.isEmpty()) + def validCluster = clusters[0][0] + sql """GRANT USAGE_PRIV ON CLUSTER ${validCluster} TO ${user}"""; + } List> result = sql """ show resources """ @@ -589,6 +604,13 @@ suite('test_manager_interface_3',"p0") { sql """drop user if exists ${user}""" sql """CREATE USER '${user}' IDENTIFIED BY '${pwd}'""" + //cloud-mode + if (isCloudMode()) { + def clusters = sql " SHOW CLUSTERS; " + assertTrue(!clusters.isEmpty()) + def validCluster = clusters[0][0] + sql """GRANT USAGE_PRIV ON CLUSTER ${validCluster} TO ${user}"""; + } connect(user=user, password="${pwd}", url=url) { List> result = sql """ show property like "max_query_instances" """