Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ suite("test_partitions_tvf","p0,external,tvf,external_docker") {
assertEquals("k3", res[0][5]);
// Buckets
assertEquals(2, res[0][8]);
// ReplicationNum
assertEquals(1, res[0][9]);
// ReplicationNum: if force_olap_table_replication_num is set to 3,here will be 3
// assertEquals(1, res[0][9]);
// StorageMedium
assertEquals("HDD", res[0][10]);
// ReplicaAllocation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ suite("test_s3_tvf_with_resource", "p0") {
}

// test auth
def tokens = context.config.jdbcUrl.split('/')
def url=tokens[0] + "//" + tokens[2] + "/" + "information_schema" + "?"
String user = 'test_s3_tvf_with_resource_user'
String pwd = 'C123_567p'
String viewName = "test_s3_tvf_with_resource_view"
Expand All @@ -203,7 +205,7 @@ suite("test_s3_tvf_with_resource", "p0") {
sql """GRANT USAGE_PRIV ON CLUSTER ${validCluster} TO ${user}""";
}
// not have usage priv, can not select tvf with resource
connect(user=user, password="${pwd}", url=context.config.jdbcUrl) {
connect(user=user, password="${pwd}", url=url) {
test {
sql """
SELECT * FROM S3 (
Expand All @@ -218,7 +220,7 @@ suite("test_s3_tvf_with_resource", "p0") {
}

// only have select_priv of view,can select view with resource
connect(user=user, password="${pwd}", url=context.config.jdbcUrl) {
connect(user=user, password="${pwd}", url=url) {
sql """SELECT * FROM ${viewName};"""
}

Expand Down