From f1bac80a19a1fdfff6f8c357c3cb00261b435ced Mon Sep 17 00:00:00 2001 From: 924060929 <924060929@qq.com> Date: Thu, 22 Feb 2024 22:55:54 +0800 Subject: [PATCH] fix test case --- .../suites/account_p0/test_nereids_row_policy.groovy | 2 +- .../suites/nereids_p0/authorization/view_authorization.groovy | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/regression-test/suites/account_p0/test_nereids_row_policy.groovy b/regression-test/suites/account_p0/test_nereids_row_policy.groovy index 473f8e415975aa..1a81f6ddd18671 100644 --- a/regression-test/suites/account_p0/test_nereids_row_policy.groovy +++ b/regression-test/suites/account_p0/test_nereids_row_policy.groovy @@ -38,7 +38,7 @@ suite("test_nereids_row_policy") { test { sql "SELECT * FROM ${viewName}" - exception "SELECT command denied to user '${user}'" + exception "SELECT command denied to user" } } assertEquals(size, result1.size()) diff --git a/regression-test/suites/nereids_p0/authorization/view_authorization.groovy b/regression-test/suites/nereids_p0/authorization/view_authorization.groovy index 19a9838bf5bd38..672cd680ec8d4a 100644 --- a/regression-test/suites/nereids_p0/authorization/view_authorization.groovy +++ b/regression-test/suites/nereids_p0/authorization/view_authorization.groovy @@ -57,7 +57,7 @@ suite("view_authorization") { // no privilege to base table test { sql "select * from ${db}.${baseTable}" - exception "SELECT command denied to user '${user1}'" + exception "SELECT command denied to user" } // has privilege to view1 @@ -69,7 +69,7 @@ suite("view_authorization") { // no privilege to view2 test { sql "select * from ${db}.${view2}" - exception "SELECT command denied to user '${user1}'" + exception "SELECT command denied to user" } // nested view