Skip to content

Commit

Permalink
Added Zone Redundant Property To Database, Elastic Pool and Edition C…
Browse files Browse the repository at this point in the history
…apability (Azure#3800)

* Add zone redundant property for database, elastic pool and capability edition

* Added zone redundant property release notes

* Revert "Removing build tools outside of branches (Azure#3780)"

This reverts commit deceaf3.

* Revert "Revert "Removing build tools outside of branches (Azure#3780)""

This reverts commit 58265b9.

* Rerun tests to fix validation errors

* Remove null capability test
  • Loading branch information
emgu-ms authored and JasonYang-MSFT committed Nov 17, 2017
1 parent 713ef57 commit b095219
Show file tree
Hide file tree
Showing 5 changed files with 3,019 additions and 844 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<![CDATA[
New features:
- Added support for state and migration flag properties for SQL Vnet rules
- Added zone redundancy property for databases, elastic pools and capability editions
- Added support for Server DNS Aliases
]]>
</PackageReleaseNotes>
Expand Down
20 changes: 20 additions & 0 deletions src/SDKs/SqlManagement/Sql.Tests/DatabaseCrudScenarioTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,18 @@ private void TestUpdateDatabase<TUpdateModel>(
Assert.NotNull(db1);
SqlManagementTestUtilities.ValidateDatabase(dbInput, db1, dbName);

// Create zone redundant database
//
var dbInput2 = new Database()
{
Location = server.Location,
Edition = "Premium",
ZoneRedundant = true,
};
var db8 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, dbInput2);
Assert.NotNull(db8);
SqlManagementTestUtilities.ValidateDatabase(dbInput2, db8, dbName);

// Upgrade Edition + SLO Name
//
dynamic updateEditionAndSloInput = createModelFunc();
Expand Down Expand Up @@ -224,6 +236,14 @@ private void TestUpdateDatabase<TUpdateModel>(
updateTags.Tags = new Dictionary<string, string> { { "asdf", "zxcv" } };
var db7 = updateFunc(resourceGroup.Name, server.Name, dbName, updateTags);
SqlManagementTestUtilities.ValidateDatabase(updateTags, db7, dbName);

// Update Zone Redundancy
//
dynamic updateZoneRedundant = createModelFunc();
updateZoneRedundant.Edition = "Premium";
updateZoneRedundant.ZoneRedundant = true;
var db9 = updateFunc(resourceGroup.Name, server.Name, dbName, updateZoneRedundant);
SqlManagementTestUtilities.ValidateDatabase(updateZoneRedundant, db9, dbName);
}

[Fact]
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit b095219

Please sign in to comment.