Skip to content

Commit

Permalink
Move tds_fdw extension creation in securityadmin to prepare testfile
Browse files Browse the repository at this point in the history
Signed-off-by: ANJU BHARTI <[email protected]>
  • Loading branch information
ANJU BHARTI committed Jan 13, 2025
1 parent 690cd99 commit 36db61c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 4 additions & 0 deletions test/JDBC/expected/securityadmin_role-vu-prepare.out
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,7 @@ go

use master
go

-- psql
CREATE EXTENSION IF NOT EXISTS tds_fdw;
GO
4 changes: 0 additions & 4 deletions test/JDBC/expected/securityadmin_role-vu-verify.out
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -615,7 +612,6 @@ GO
-- sp_helpsrvrolemember
INSERT INTO sadm_sp_helpsrvrolemember_tbl (ServerRole, MemberName, MemberSID) EXEC sp_helpsrvrolemember 'securityadmin'
GO
~~ROW COUNT: 1~~


SELECT ServerRole, MemberName, (CASE WHEN MemberSID IS NULL THEN 0 ELSE 1 END) FROM sadm_sp_helpsrvrolemember_tbl where MemberName like '%securityadmin%'
Expand Down
6 changes: 5 additions & 1 deletion test/JDBC/input/securityadmin_role-vu-prepare.mix
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,8 @@ create user no_securityadmin_user1 for login no_securityadmin_login1
go

use master
go
go

-- psql
CREATE EXTENSION IF NOT EXISTS tds_fdw;
GO
3 changes: 0 additions & 3 deletions test/JDBC/input/securityadmin_role-vu-verify.mix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36db61c

Please sign in to comment.