Skip to content

Commit 7abead0

Browse files
carjackson-msftudit3333
andauthored
[Cosmos DB] Powershell changes for 2023-03-15 stable API (#21990)
* added tests for listconnectionstrings; updated changelog * add changes for list connection strings response * re-record test * update changelog * Add location api changes * Added test recording for location api * re-record tests * re-record tests * Revert "add changes for list connection strings response" This reverts commit ff3ef0a. * update changelog, update and re-record account tests --------- Co-authored-by: Udit Singh <[email protected]>
1 parent 254a484 commit 7abead0

File tree

50 files changed

+77241
-37057
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+77241
-37057
lines changed

src/CosmosDB/CosmosDB.Test/ScenarioTests/AccountTests.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ function Test-CosmosDBLocations {
343343
Assert-NotNull $locationProperty.Properties.SupportsAvailabilityZone
344344
Assert-NotNull $locationProperty.Properties.IsResidencyRestricted
345345
Assert-NotNull $locationProperty.Properties.BackupStorageRedundancies
346+
Assert-NotNull $locationProperty.Properties.IsSubscriptionRegionAccessAllowedForRegular
347+
Assert-NotNull $locationProperty.Properties.IsSubscriptionRegionAccessAllowedForAz
348+
Assert-NotNull $locationProperty.Properties.Status
346349
}
347350

348351
$locationProperties = Get-AzCosmosDBLocation -Location $locationName
@@ -352,4 +355,7 @@ function Test-CosmosDBLocations {
352355
Assert-NotNull $locationProperties.Properties.SupportsAvailabilityZone
353356
Assert-NotNull $locationProperties.Properties.IsResidencyRestricted
354357
Assert-NotNull $locationProperties.Properties.BackupStorageRedundancies
358+
Assert-NotNull $locationProperty.Properties.IsSubscriptionRegionAccessAllowedForRegular
359+
Assert-NotNull $locationProperty.Properties.IsSubscriptionRegionAccessAllowedForAz
360+
Assert-NotNull $locationProperty.Properties.Status
355361
}

src/CosmosDB/CosmosDB.Test/ScenarioTests/RestoreTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ function Test-TableBackupInformationCmdLets {
649649

650650
function Test-UpdateCosmosDBAccountBackupPolicyToContinuous30DaysCmdLets {
651651
$rgName = "PSCosmosDBResourceGroup20"
652-
$location = "Central US"
652+
$location = "East US"
653653
$cosmosDBAccountName = "ps-cosmosdb-1220"
654654
$apiKind = "Sql"
655655
$consistencyLevel = "Session"
@@ -682,7 +682,7 @@ function Test-UpdateCosmosDBAccountBackupPolicyToContinuous30DaysCmdLets {
682682

683683
function Test-UpdateCosmosDBAccountBackupPolicyToContinuous7DaysCmdLets {
684684
$rgName = "PSCosmosDBResourceGroup50"
685-
$location = "Central US"
685+
$location = "East US"
686686
$cosmosDBAccountName = "ps-cosmosdb-1250"
687687
$apiKind = "Sql"
688688
$consistencyLevel = "Session"

src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.AccountTests/TestAccountRelatedCmdlets.json

Lines changed: 466 additions & 526 deletions
Large diffs are not rendered by default.

src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.AccountTests/TestAccountRelatedCmdletsUsingObject.json

Lines changed: 542 additions & 482 deletions
Large diffs are not rendered by default.

src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.AccountTests/TestAccountRelatedCmdletsUsingRid.json

Lines changed: 328 additions & 328 deletions
Large diffs are not rendered by default.

src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.AccountTests/TestAddRegionOperation.json

Lines changed: 169 additions & 169 deletions
Large diffs are not rendered by default.

src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.AccountTests/TestAnalyticalStorageSchemaTypeNewAccount.json

Lines changed: 334 additions & 442 deletions
Large diffs are not rendered by default.

src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.AccountTests/TestAnalyticalStorageSchemaTypeUpdateAccount.json

Lines changed: 336 additions & 504 deletions
Large diffs are not rendered by default.

src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.AccountTests/TestCosmosDBLocations.json

Lines changed: 22 additions & 22 deletions
Large diffs are not rendered by default.

src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.AccountTests/TestPrivateEndpoint.json

Lines changed: 57880 additions & 13339 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)