Skip to content

Commit

Permalink
Fix pipeline build step and update integration test region
Browse files Browse the repository at this point in the history
  • Loading branch information
PlagueHO committed Aug 11, 2024
1 parent bff377c commit 8fe296f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Fixed pipeline build step by limiting Gitversion to 5.* version.
- Change default integration test region from `East US` to `West US 3` due to
quota limitations.

## [5.0.0] - 2024-06-07

Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/CosmosDB.integration.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if ([System.String]::IsNullOrEmpty($script:testBuildSystem))

$script:testResourceGroupName = ('cdbtestrgp-{0}-{1}-{2}' -f $script:testRandomName,$script:testBuildSystem,$script:testBuildBranch)
$script:testAccountName = ('cdbtest{0}' -f $script:testRandomName)
$script:testLocation = 'East US'
$script:testLocation = 'West US 3'
$script:testCorsAllowedOrigins = @('https://www.contoso.com', 'https://www.fabrikam.com')
$script:testOffer = 'testOffer'
$script:testDatabase = 'testDatabase'
Expand Down
2 changes: 1 addition & 1 deletion tests/TestHelper/AzureDeploy/AzureDeploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ targetScope = 'subscription'

param resourceGroupName string
param accountName string
param location string = 'East US'
param location string = 'West US 3'
param principalId string
@allowed([
'00000000-0000-0000-0000-000000000001'// Built-in role 'Azure Cosmos DB Built-in Data Reader'
Expand Down
2 changes: 1 addition & 1 deletion tests/TestHelper/AzureDeploy/CosmosDb.bicep
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
param accountName string
param location string = 'East US'
param location string = 'West US 3'
param principalId string
@allowed([
'00000000-0000-0000-0000-000000000001'// Built-in role 'Azure Cosmos DB Built-in Data Reader'
Expand Down
6 changes: 3 additions & 3 deletions tests/TestHelper/TestHelper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function Get-AzureEntraIdToken
The name of the resource group where the Azure Cosmos DB account will be created.
.PARAMETER Location
The Azure region where the Azure Cosmos DB account will be created. Defaults to 'East US'.
The Azure region where the Azure Cosmos DB account will be created. Defaults to 'West US 3'.
.EXAMPLE
New-AzureTestCosmosDbAccount -ObjectId '12345678-1234-1234-1234-123456789012' -AccountName 'testCosmosDb' -ResourceGroupName 'testResourceGroup'
Expand Down Expand Up @@ -180,7 +180,7 @@ function New-AzureTestCosmosDbAccount

[Parameter()]
[System.String]
$Location = 'East US'
$Location = 'West US 3'
)

try
Expand Down Expand Up @@ -272,7 +272,7 @@ function New-AzureTestCosmosDbResourceGroup

[Parameter()]
[System.String]
$Location = 'East US'
$Location = 'West US 3'
)

try
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/CosmosDB.accounts.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ InModuleScope $ProjectName {
$script:testResourceGroupName = 'testResourceGroupName'
$script:testLocation = 'North Central US'
$script:testLocationRead1 = 'South Central US'
$script:testLocationRead2 = 'East US'
$script:testLocationRead2 = 'West US 3'
$script:testIpRangeFilter = @('10.0.0.1/8', '10.0.0.2/8')
$script:testConsistencyLevel = 'Strong'
$script:testMaxIntervalInSeconds = 60
Expand Down

0 comments on commit 8fe296f

Please sign in to comment.