From dbe90a56385052153c083f6e3759c5ec091eed55 Mon Sep 17 00:00:00 2001 From: Simon Laing Date: Thu, 28 Oct 2021 16:47:52 +0100 Subject: [PATCH] #10: Add inputs and expected outputs for MyUser user retrieval --- TestScenarios/Read_Users/Database.MySql.sql | 4 ++++ TestScenarios/Read_Users/ExpectedOutput.MySql.json | 11 +++++++++++ ...ectedOutput.json => ExpectedOutput.SqlServer.json} | 0 3 files changed, 15 insertions(+) create mode 100644 TestScenarios/Read_Users/Database.MySql.sql create mode 100644 TestScenarios/Read_Users/ExpectedOutput.MySql.json rename TestScenarios/Read_Users/{ExpectedOutput.json => ExpectedOutput.SqlServer.json} (100%) diff --git a/TestScenarios/Read_Users/Database.MySql.sql b/TestScenarios/Read_Users/Database.MySql.sql new file mode 100644 index 0000000..e173081 --- /dev/null +++ b/TestScenarios/Read_Users/Database.MySql.sql @@ -0,0 +1,4 @@ +DROP USER If Exists MyUser@localhost; +DROP User If Exists MyDisabledUser@localhost; +CREATE USER MyUser@localhost IDENTIFIED BY '123_aBC'; +CREATE USER MyDisabledUser@localhost IDENTIFIED BY '123_aBC' ACCOUNT LOCK; diff --git a/TestScenarios/Read_Users/ExpectedOutput.MySql.json b/TestScenarios/Read_Users/ExpectedOutput.MySql.json new file mode 100644 index 0000000..2548e8d --- /dev/null +++ b/TestScenarios/Read_Users/ExpectedOutput.MySql.json @@ -0,0 +1,11 @@ +{ + "users": { + "MyUser@localhost": { + "Type": "DatabaseAuthority" + }, + "MyDisabledUser@localhost": { + "Type": "DatabaseAuthority", + "Enabled": false + } + } +} \ No newline at end of file diff --git a/TestScenarios/Read_Users/ExpectedOutput.json b/TestScenarios/Read_Users/ExpectedOutput.SqlServer.json similarity index 100% rename from TestScenarios/Read_Users/ExpectedOutput.json rename to TestScenarios/Read_Users/ExpectedOutput.SqlServer.json