mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Sai/db properties options tab (#2121)
* Sending values to ADS, including the arrays, need refactor and tests * adjusting dd options as per ssms * sending back the updated options properties to smo * saving changes * pulling correct database name changes * Refactoring * saving is working fine * Added genral tab section options for the option tab * modifying userAccess and pageVerify props types * fix for database name being master for always for existing database * Managed Instance save error fixed * added new assertions to the test case * server engine edition conditions handling from ADS side * Adding unsupported options approach to the properties, so that these nullable options can be excluded from UI * modifying the props name * modified empty string to null * Test case update
This commit is contained in:
committed by
GitHub
parent
c2d53a3215
commit
11f632aaa9
@@ -293,6 +293,13 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.ObjectManagement
|
||||
Assert.That(((DatabaseInfo)databaseViewInfo.ObjectInfo).LastDatabaseBackup, Is.EqualTo(testDatabase.LastDatabaseBackup), $"Should have no database last backup date");
|
||||
Assert.That(((DatabaseInfo)databaseViewInfo.ObjectInfo).LastDatabaseLogBackup, Is.EqualTo(testDatabase.LastDatabaseLogBackup), $"Should have no database backup log date");
|
||||
Assert.That(((DatabaseInfo)databaseViewInfo.ObjectInfo).SizeInMb, Is.GreaterThan(0), $"Should have default database size when created");
|
||||
Assert.That(((DatabaseInfo)databaseViewInfo.ObjectInfo).AutoCreateIncrementalStatistics, Is.True, $"AutoCreateIncrementalStatistics match with testdata");
|
||||
Assert.That(((DatabaseInfo)databaseViewInfo.ObjectInfo).AutoCreateStatistics, Is.True, $"AutoCreateStatistics should match with testdata");
|
||||
Assert.That(((DatabaseInfo)databaseViewInfo.ObjectInfo).AutoShrink, Is.False, $"AutoShrink should match with testdata");
|
||||
Assert.That(((DatabaseInfo)databaseViewInfo.ObjectInfo).AutoUpdateStatistics, Is.True, $"AutoUpdateStatistics should match with testdata");
|
||||
Assert.That(((DatabaseInfo)databaseViewInfo.ObjectInfo).AutoUpdateStatisticsAsynchronously, Is.False, $"AutoUpdateStatisticsAsynchronously should match with testdata");
|
||||
Assert.That(((DatabaseInfo)databaseViewInfo.ObjectInfo).PageVerify, Is.EqualTo(testDatabase.PageVerify), $"PageVerify should match with testdata");
|
||||
Assert.That(((DatabaseInfo)databaseViewInfo.ObjectInfo).RestrictAccess, Is.EqualTo(testDatabase.RestrictAccess), $"RestrictAccess should match with testdata");
|
||||
|
||||
// cleanup
|
||||
await ObjectManagementTestUtils.DropObject(connectionResult.ConnectionInfo.OwnerUri, objUrn, throwIfNotExist: true);
|
||||
|
||||
@@ -72,7 +72,14 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.ObjectManagement
|
||||
ContainmentType = "None",
|
||||
RecoveryModel = "Full",
|
||||
LastDatabaseBackup = "None",
|
||||
LastDatabaseLogBackup = "None"
|
||||
LastDatabaseLogBackup = "None",
|
||||
PageVerify = "CHECKSUM",
|
||||
RestrictAccess = "MULTI_USER",
|
||||
AutoCreateIncrementalStatistics = true,
|
||||
AutoCreateStatistics = true,
|
||||
AutoShrink = false,
|
||||
AutoUpdateStatistics = true,
|
||||
AutoUpdateStatisticsAsynchronously = false
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user