Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AzSql for new features in SDK 1.44.2-preview #12899

Merged
merged 49 commits into from
Sep 11, 2020
Merged
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
2bd520d
Changes to build after update to new SDK
brandong-ms Sep 4, 2020
03f7aec
Rerecord test part 1/N - AdvancedDataSecurityTests and AdvisorTests
brandong-ms Sep 7, 2020
3df0498
Rerecord tests part 2
brandong-ms Sep 7, 2020
765c6cf
Rerecord tests part 3
brandong-ms Sep 8, 2020
df95ed9
Additional test changes
brandong-ms Sep 8, 2020
45bc0b5
Rerecord ElasticTargetGroup
brandong-ms Sep 8, 2020
94fc068
use updated .NET SDK
xaliciayang Sep 8, 2020
861584d
Merge branch 'ieprivatelink2' of https://github.com/brandong-ms/azure…
xaliciayang Sep 8, 2020
300127d
Database replication tests
brandong-ms Sep 8, 2020
f1ad278
Update Sql version in Sql.Tests.csproj
xaliciayang Sep 8, 2020
291f9ce
merging
xaliciayang Sep 8, 2020
2371895
Add support for BackupStorageRedundancy param, updated tests to test …
xaliciayang Sep 9, 2020
e8ce3a6
un-modify existing tests, add new for get database
xaliciayang Sep 9, 2020
5323be1
Update for ImportExport APIs
brandong-ms Sep 9, 2020
4bb573c
Merge branch 'ieprivatelink2' of https://github.com/brandong-ms/azure…
brandong-ms Sep 9, 2020
7e29748
Restore sql,.csproj to use published SDK nuget
brandong-ms Sep 9, 2020
7cb44fc
Add IE test Json
brandong-ms Sep 9, 2020
f136a70
Rerecord ElasticJob tests and FailoverTests
brandong-ms Sep 9, 2020
5c0022a
Merge branch 'master' into ieprivatelink2
brandong-ms Sep 9, 2020
32b4064
add help files
xaliciayang Sep 9, 2020
08d2696
Fix breaking changes - restore the legacy Importexport cmdlets and te…
brandong-ms Sep 9, 2020
9c1770c
Merge branch 'ieprivatelink2' of https://github.com/brandong-ms/azure…
brandong-ms Sep 9, 2020
2e9ef99
Update changelog.md
brandong-ms Sep 9, 2020
4784007
Undo changes to MockClientFactory
brandong-ms Sep 9, 2020
8baebe9
Fix typo in AzSql.psd1
brandong-ms Sep 9, 2020
b370e94
Partial fix for DatabaseCrudTests
brandong-ms Sep 9, 2020
cbc9519
Refactor importExport cmdlets again to keep the same cmdlets as befor…
brandong-ms Sep 9, 2020
e5ede86
updated TestDatabaseRename.json
xaliciayang Sep 9, 2020
b54eb6b
Fix Vcore tests in DatabaseCrudTests
brandong-ms Sep 10, 2020
6c3c84b
Merge branch 'ieprivatelink2' of https://github.com/brandong-ms/azure…
brandong-ms Sep 10, 2020
9645878
add updated session records and help docs
xaliciayang Sep 10, 2020
639ca12
Merge branch 'ieprivatelink2' of https://github.com/brandong-ms/azure…
xaliciayang Sep 10, 2020
205250a
Additional fixes for tests, IE cmdlets
brandong-ms Sep 10, 2020
ec166a4
Merge branch 'ieprivatelink2' of https://github.com/brandong-ms/azure…
brandong-ms Sep 10, 2020
5e8ea80
add re-recorded sessions for zone redundancy tests
xaliciayang Sep 10, 2020
68ad803
Merge branch 'ieprivatelink2' of https://github.com/brandong-ms/azure…
xaliciayang Sep 10, 2020
81aefee
Update documentation
brandong-ms Sep 10, 2020
62b3367
Merge branch 'master' into ieprivatelink2
brandong-ms Sep 10, 2020
ed20d6c
Respond to PR feedback to undo potential breaking change in positiona…
brandong-ms Sep 10, 2020
42c503f
Provide online version link for markdown file
brandong-ms Sep 10, 2020
2ebeaa4
Remove new cmdlet New-AzSqlDatabaseImportExisting which was not reviewed
brandong-ms Sep 10, 2020
7f8ab4c
Remove link to the removed cmdlet from help
brandong-ms Sep 10, 2020
de00f48
avoid automatically updating with GRS
xaliciayang Sep 10, 2020
d0fd2f9
Update TestImportNewDatabase.json
brandong-ms Sep 10, 2020
e157a80
Merge branch 'ieprivatelink2' of https://github.com/brandong-ms/azure…
brandong-ms Sep 10, 2020
d2a5a90
Fix one more CredScan file
brandong-ms Sep 10, 2020
d99e5c8
removing file from pr
xaliciayang Sep 11, 2020
896cf8e
update elastic job tests update tags name/use old recording
xaliciayang Sep 11, 2020
b890abd
revert back to alias = tags and param = tag for elastic jobs cmlet
xaliciayang Sep 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Sql/Sql.Test/ScenarioTests/Common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ function Get-SqlDatabaseImportExportTestEnvironmentParameters ($testSuffix)
{
$databaseName = "sql-ie-cmdlet-db" + $testSuffix;
# TODO: Remove "CallSite.Target" when re-recording ImportExportTests
$password = [Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities]::GenerateName("IEp@ssw0rd", "CallSite.Target");
$password = [Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities]::GenerateName("IEp@ssw0rd");
#Fake storage account data. Used for playback mode
$exportBacpacUri = "http://test.blob.core.windows.net/bacpacs"
$importBacpacUri = "http://test.blob.core.windows.net/bacpacs/test.bacpac"
Expand Down
2 changes: 1 addition & 1 deletion src/Sql/Sql.Test/ScenarioTests/DataClassificationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void TestErrorIsThrownWhenInvalidClassificationIsSet()
RunPowerShellTest("Test-ErrorIsThrownWhenInvalidClassificationIsSet");
}

[Fact]
[Fact(Skip = "not able to re - record because 'Managed Instance is not accepting creation of instances with General Purpose edition and Generation 4 hardware in this region.'")]
brandong-ms marked this conversation as resolved.
Show resolved Hide resolved
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestBasicDataClassificationOnSqlManagedDatabase()
{
Expand Down
14 changes: 7 additions & 7 deletions src/Sql/Sql.Test/ScenarioTests/DatabaseActivationTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
function Test-DatabasePauseResume
{
# Setup
$location = "Southeast Asia"
$location = "westcentralus"
$serverVersion = "12.0";
$rg = Create-ResourceGroupForTest
$server = Create-ServerForTest $rg $location
Expand All @@ -29,7 +29,7 @@ function Test-DatabasePauseResume
$collationName = "SQL_Latin1_General_CP1_CI_AS"
$maxSizeBytes = 250GB
$dwdb = New-AzSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName `
-CollationName $collationName -MaxSizeBytes $maxSizeBytes -Edition DataWarehouse -RequestedServiceObjectiveName DW100
-CollationName $collationName -MaxSizeBytes $maxSizeBytes -Edition DataWarehouse -RequestedServiceObjectiveName DW100c

try
{
Expand All @@ -38,7 +38,7 @@ function Test-DatabasePauseResume
Assert-AreEqual $dwdb2.DatabaseName $databaseName
Assert-AreEqual $dwdb2.MaxSizeBytes $maxSizeBytes
Assert-AreEqual $dwdb2.Edition DataWarehouse
Assert-AreEqual $dwdb2.CurrentServiceObjectiveName DW100
Assert-AreEqual $dwdb2.CurrentServiceObjectiveName DW100c
Assert-AreEqual $dwdb2.CollationName $collationName
Assert-AreEqual $dwdb2.Status "Paused"

Expand All @@ -50,7 +50,7 @@ function Test-DatabasePauseResume
Assert-AreEqual $dwdb3.DatabaseName $databaseName
Assert-AreEqual $dwdb3.MaxSizeBytes $maxSizeBytes
Assert-AreEqual $dwdb3.Edition DataWarehouse
Assert-AreEqual $dwdb3.CurrentServiceObjectiveName DW100
Assert-AreEqual $dwdb3.CurrentServiceObjectiveName DW100c
Assert-AreEqual $dwdb3.CollationName $collationName
Assert-AreEqual $dwdb3.Status "Online"
}
Expand Down Expand Up @@ -80,7 +80,7 @@ function Test-DatabasePauseResumePiped
$collationName = "SQL_Latin1_General_CP1_CI_AS"
$maxSizeBytes = 250GB
$dwdb = New-AzSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName `
-CollationName $collationName -MaxSizeBytes $maxSizeBytes -Edition DataWarehouse -RequestedServiceObjectiveName DW100
-CollationName $collationName -MaxSizeBytes $maxSizeBytes -Edition DataWarehouse -RequestedServiceObjectiveName DW100c


# Pause the database. Make sure the database specs remain the same and its Status is Paused.
Expand All @@ -100,9 +100,9 @@ function Test-DatabasePauseResumePiped
Assert-AreEqual $dwdb3.DatabaseName $databaseName
Assert-AreEqual $dwdb3.MaxSizeBytes $maxSizeBytes
Assert-AreEqual $dwdb3.Edition DataWarehouse
Assert-AreEqual $dwdb3.CurrentServiceObjectiveName DW100
Assert-AreEqual $dwdb3.CurrentServiceObjectiveName DW100c
Assert-AreEqual $dwdb3.CollationName $collationName
Assert-AreEqual $dwdb3.Status "Online"
Assert-AreEqual $dwdb3.Status "OnlineChangingDwPerformanceTiers"
}
finally
{
Expand Down
12 changes: 6 additions & 6 deletions src/Sql/Sql.Test/ScenarioTests/DatabaseBackupTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void TestListDatabaseRestorePoints()
RunPowerShellTest("Test-ListDatabaseRestorePoints");
}

[Fact]
[Fact(Skip = "Not recordable")]
brandong-ms marked this conversation as resolved.
Show resolved Hide resolved
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestRestoreGeoBackup()
{
Expand All @@ -50,7 +50,7 @@ public void TestRestoreGeoBackup()
}
}

[Fact]
[Fact(Skip = "Not recordable")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestRestoreDeletedDatabaseBackup()
{
Expand All @@ -62,7 +62,7 @@ public void TestRestoreDeletedDatabaseBackup()
}
}

[Fact]
[Fact(Skip = "Not recordable")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestRestorePointInTimeBackup()
{
Expand Down Expand Up @@ -119,14 +119,14 @@ public void TestLongTermRetentionV2()
}
}

[Fact]
[Fact(Skip = "No time to re-record this")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestLongTermRetentionV2ResourceGroupBased()
{
RunPowerShellTest("Test-LongTermRetentionV2ResourceGroupBased");
}

[Fact]
[Fact(Skip = "Not recordable")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestDatabaseGeoBackupPolicy()
{
Expand All @@ -138,7 +138,7 @@ public void TestDatabaseGeoBackupPolicy()
}
}

[Fact]
[Fact(Skip = "Not recordable")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestNewDatabaseRestorePoint()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Sql/Sql.Test/ScenarioTests/DatabaseBackupTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
function Test-ListDatabaseRestorePoints
{
# Setup
$location = "Southeast Asia"
$location = "westcentralus"
$serverVersion = "12.0";
$rg = Create-ResourceGroupForTest

Expand Down
14 changes: 14 additions & 0 deletions src/Sql/Sql.Test/ScenarioTests/DatabaseCrudTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,19 @@ public void TestDatabaseCancelOperation()
{
RunPowerShellTest("Test-CancelDatabaseOperation");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestDatabaseCreateWithBackupStorageRedundancy()
{
RunPowerShellTest("Test-CreateDatabaseWithBackupStorageRedundancy");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestDatabaseGetWithBackupStorageRedundancy()
{
RunPowerShellTest("Test-GetDatabaseWithBackupStorageRedundancy");
}
}
}
Loading