From c67f1e51edfefc2d1b03769ffa290ec4bf50f2f5 Mon Sep 17 00:00:00 2001 From: ANJU BHARTI Date: Mon, 13 Jan 2025 14:59:49 +0000 Subject: [PATCH] Move tds_fdw extension creation in securityadmin to prepare testfile Signed-off-by: ANJU BHARTI --- test/JDBC/expected/securityadmin_role-vu-prepare.out | 4 ++++ test/JDBC/expected/securityadmin_role-vu-verify.out | 3 --- test/JDBC/input/securityadmin_role-vu-prepare.mix | 6 +++++- test/JDBC/input/securityadmin_role-vu-verify.mix | 3 --- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/test/JDBC/expected/securityadmin_role-vu-prepare.out b/test/JDBC/expected/securityadmin_role-vu-prepare.out index 925c01678f6..87e8a679bfc 100644 --- a/test/JDBC/expected/securityadmin_role-vu-prepare.out +++ b/test/JDBC/expected/securityadmin_role-vu-prepare.out @@ -93,3 +93,7 @@ go use master go + +-- psql +CREATE EXTENSION IF NOT EXISTS tds_fdw; +GO diff --git a/test/JDBC/expected/securityadmin_role-vu-verify.out b/test/JDBC/expected/securityadmin_role-vu-verify.out index 97c6c10cc14..1f85cc198ad 100644 --- a/test/JDBC/expected/securityadmin_role-vu-verify.out +++ b/test/JDBC/expected/securityadmin_role-vu-verify.out @@ -411,9 +411,6 @@ int -- terminate-tsql-conn user=securityadmin_login1 password=123 -- psql -CREATE EXTENSION IF NOT EXISTS tds_fdw; -GO - -- securityadmin should not have membership in database guest role SELECT roleid::regrole, member::regrole FROM pg_auth_members WHERE member = 'securityadmin'::regrole; go diff --git a/test/JDBC/input/securityadmin_role-vu-prepare.mix b/test/JDBC/input/securityadmin_role-vu-prepare.mix index 01b88bc0abc..a32966e1790 100644 --- a/test/JDBC/input/securityadmin_role-vu-prepare.mix +++ b/test/JDBC/input/securityadmin_role-vu-prepare.mix @@ -92,4 +92,8 @@ create user no_securityadmin_user1 for login no_securityadmin_login1 go use master -go \ No newline at end of file +go + +-- psql +CREATE EXTENSION IF NOT EXISTS tds_fdw; +GO \ No newline at end of file diff --git a/test/JDBC/input/securityadmin_role-vu-verify.mix b/test/JDBC/input/securityadmin_role-vu-verify.mix index 60c56562b8c..1a0995a44a2 100644 --- a/test/JDBC/input/securityadmin_role-vu-verify.mix +++ b/test/JDBC/input/securityadmin_role-vu-verify.mix @@ -243,9 +243,6 @@ go -- terminate-tsql-conn user=securityadmin_login1 password=123 -- psql -CREATE EXTENSION IF NOT EXISTS tds_fdw; -GO - -- securityadmin should not have membership in database guest role SELECT roleid::regrole, member::regrole FROM pg_auth_members WHERE member = 'securityadmin'::regrole; go