Skip to content

Commit

Permalink
Performance Improvement of create login in BBF
Browse files Browse the repository at this point in the history
Signed-off-by: ANJU BHARTI <[email protected]>
  • Loading branch information
ANJU BHARTI committed Dec 20, 2024
1 parent f8026c7 commit 4ae0999
Show file tree
Hide file tree
Showing 14 changed files with 1,174 additions and 8 deletions.
1 change: 0 additions & 1 deletion test/JDBC/expected/test_windows_login-vu-prepare.out
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
-- psql
-- TODO: BABEL-5349
do
$$ begin
if not exists (select * from pg_catalog.pg_roles where rolname = 'rds_ad')
Expand Down
91 changes: 91 additions & 0 deletions test/JDBC/expected/test_windows_login_before-16_6-vu-cleanup.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
-- tsql
DROP LOGIN PassWordUser;
GO

-- test for drop login with upn format
DROP LOGIN [aduser@AD];
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: Cannot drop the login 'aduser@ad', because it does not exist or you do not have permission.)~~


DROP LOGIN [ad\adUSer];
GO

DROP LOGIN [ad\aduserDB];
GO

DROP LOGIN [ad\Aduserlanguage];
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: Cannot drop the login 'aduserlanguage@AD', because it does not exist or you do not have permission.)~~


DROP LOGIN [ad\Aduserdblanguage];
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: Cannot drop the login 'aduserdblanguage@AD', because it does not exist or you do not have permission.)~~


DROP LOGIN [ad\AduserdbEnglish];
GO

DROP LOGIN [ad\Aduseroption];
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: Cannot drop the login 'aduseroption@AD', because it does not exist or you do not have permission.)~~


DROP LOGIN [babel\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: Cannot drop the login 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@BABEL', because it does not exist or you do not have permission.)~~


DROP LOGIN [ba.bel\username];
GO

-- test for non-existent login
DROP LOGIN [babel\non_existent_login]
GO
~~ERROR (Code: 33557097)~~

~~ERROR (Message: Cannot drop the login 'non_existent_login@BABEL', because it does not exist or you do not have permission.)~~


-- drop login with different casing
DROP LOGIN UserPassword;
GO

DROP LOGIN [BabeL\DupLicate];
GO

DROP LOGIN [Babel\DuplicateDefaultDB];
GO

-- test drop logins for logins with different language names
-- Arabic
DROP LOGIN [babel\كلب];
GO

-- Mongolian
DROP LOGIN [babel\өглөө];
GO

-- Greek
DROP LOGIN [babel\ελπίδα];
GO

-- Chinese
DROP LOGIN [babel\爱];
GO

DROP DATABASE ad_db;
GO


Loading

0 comments on commit 4ae0999

Please sign in to comment.