Skip to content

Commit 32f622c

Browse files
Move tests to westcentralus (#4953)
1 parent ab61b87 commit 32f622c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

v2/test/postgresql_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ import (
2424
"github.com/Azure/azure-service-operator/v2/pkg/genruntime"
2525
)
2626

27+
const postgresqlTestRegion string = "westcentralus" // This region is chosen because it currently has capacity for PostgreSQL Flexible Servers
28+
2729
func Test_PostgreSQL_Combined(t *testing.T) {
2830
t.Parallel()
2931
tc := globalTestContext.ForTest(t)
3032
// Force this test to run in a region that is not capacity constrained.
31-
tc.AzureRegion = to.Ptr("australiaeast") // TODO: Uncomment this line when West US 2 is no longer constrained
33+
tc.AzureRegion = to.Ptr(postgresqlTestRegion)
3234
rg := tc.CreateTestResourceGroupAndWait()
3335

3436
adminUsername := "myadmin"
@@ -310,7 +312,7 @@ func PostgreSQL_User_CRUD(tc *testcommon.KubePerTestContext, server *postgresql.
310312
func Test_PostgreSQL_User(t *testing.T) {
311313
t.Parallel()
312314
tc := globalTestContext.ForTest(t)
313-
tc.AzureRegion = to.Ptr("australiaeast")
315+
tc.AzureRegion = to.Ptr(postgresqlTestRegion)
314316
rg := tc.CreateTestResourceGroupAndWait()
315317

316318
adminUsername := "myadmin"

0 commit comments

Comments
 (0)