mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-23 01:25:42 -05:00
Initial WIP code for user management (#1838)
* Initial user management code * WIP * Fix whitespace * WIP user objects * WIP user objects * Cleanup ported code * WIP * WIP * Update the User contracts * Additional cleanups * Remove warning silencing which isn't intended for this PR * Fix some warnings as error in CI
This commit is contained in:
@@ -23,6 +23,28 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.Security
|
||||
return string.Format(@"{0}\{1}", Environment.UserDomainName, Environment.UserName);
|
||||
}
|
||||
|
||||
internal static LoginInfo GetTestLoginInfo()
|
||||
{
|
||||
return new LoginInfo()
|
||||
{
|
||||
LoginName = "TestLoginName_" + new Random().NextInt64(10000000,90000000).ToString(),
|
||||
LoginType= LoginType.Sql,
|
||||
CertificateName = "Test Cert",
|
||||
AsymmetricKeyName = "Asymmetric Test Cert",
|
||||
WindowsGrantAccess = true,
|
||||
MustChange = false,
|
||||
IsDisabled = false,
|
||||
IsLockedOut = false,
|
||||
EnforcePolicy = false,
|
||||
EnforceExpiration = false,
|
||||
WindowsAuthSupported = false,
|
||||
Password = "!#!@#@#@dflksdjfksdlfjlksdFEEfjklsed9393",
|
||||
OldPassword = "{{OLD_TEST_PASSWORD_PLACEHOLDER}}",
|
||||
DefaultLanguage = "us_english",
|
||||
DefaultDatabase = "master"
|
||||
};
|
||||
}
|
||||
|
||||
internal static CredentialInfo GetTestCredentialInfo()
|
||||
{
|
||||
return new CredentialInfo()
|
||||
|
||||
Reference in New Issue
Block a user