Skip to content

Commit f664169

Browse files
Change PostgreSQL locations in RDBMS flexible server tests from 'eastus' to 'centralindia' and from 'westus' to 'southindia'
1 parent 186bc0d commit f664169

10 files changed

+13936
-15931
lines changed

src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/recordings/test_flexible_server_ssdv2_mgmt.yaml

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

src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/recordings/test_flexible_server_ssdv2_restore_mgmt.yaml

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

src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/recordings/test_postgres_flexible_server_empty_rg_name.yaml

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

src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/recordings/test_postgres_flexible_server_georestore_mgmt.yaml

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

src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/recordings/test_postgres_flexible_server_mgmt.yaml

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

src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/recordings/test_postgres_flexible_server_mgmt_case_insensitive.yaml

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

src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/recordings/test_postgres_flexible_server_mgmt_create_validator.yaml

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

src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/recordings/test_postgres_flexible_server_proxy_resource.yaml

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

src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/recordings/test_postgres_flexible_server_restore_mgmt.yaml

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

src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/test_rdbms_flexible_commands.py

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def _get_resource_group(self, **kwargs):
7070

7171
class FlexibleServerMgmtScenarioTest(ScenarioTest):
7272

73-
postgres_location = 'eastus'
74-
postgres_backup_location = 'westus'
73+
postgres_location = 'centralindia'
74+
postgres_backup_location = 'southindia'
7575

7676
@AllowLargeResponse()
7777
@ResourceGroupPreparer(location=postgres_location)
@@ -945,6 +945,7 @@ def _test_flexible_server_revivedropped_mgmt(self, resource_group, vault_name, b
945945

946946
backup_identity = self.cmd('identity create -g {} --name {} --location {}'.format(resource_group, backup_identity_name, backup_location)).get_output_in_json()
947947
if (live_test):
948+
sleep(90)
948949
self.cmd('role assignment create --assignee-object-id {} --assignee-principal-type ServicePrincipal --role "Key Vault Crypto User" --scope {}'.format( backup_identity['principalId'], scope))
949950
self.cmd('role assignment create --assignee-object-id {} --assignee-principal-type ServicePrincipal --role "Key Vault Certificate User" --scope {}'.format( backup_identity['principalId'], scope))
950951

@@ -1019,7 +1020,7 @@ def main_tests(geo_redundant_backup):
10191020

10201021
class FlexibleServerProxyResourceMgmtScenarioTest(ScenarioTest):
10211022

1022-
postgres_location = 'eastus'
1023+
postgres_location = 'centralindia'
10231024

10241025
@AllowLargeResponse()
10251026
@ResourceGroupPreparer(location=postgres_location)
@@ -1123,7 +1124,7 @@ def _test_database_mgmt(self, database_engine, resource_group, server):
11231124

11241125
class FlexibleServerValidatorScenarioTest(ScenarioTest):
11251126

1126-
postgres_location = 'eastus'
1127+
postgres_location = 'centralindia'
11271128

11281129
@AllowLargeResponse()
11291130
@ResourceGroupPreparer(location=postgres_location)
@@ -1262,7 +1263,7 @@ def _test_mgmt_update_validator(self, database_engine, resource_group):
12621263

12631264
class FlexibleServerReplicationMgmtScenarioTest(ScenarioTest): # pylint: disable=too-few-public-methods
12641265

1265-
postgres_location = 'eastus'
1266+
postgres_location = 'centralindia'
12661267

12671268
@AllowLargeResponse()
12681269
@ResourceGroupPreparer(location=postgres_location)
@@ -1487,7 +1488,7 @@ def _test_flexible_server_replica_mgmt(self, database_engine, resource_group, vn
14871488

14881489
class FlexibleServerVnetMgmtScenarioTest(ScenarioTest):
14891490

1490-
postgres_location = 'eastus'
1491+
postgres_location = 'centralindia'
14911492

14921493
@AllowLargeResponse()
14931494
@ResourceGroupPreparer(location=postgres_location)
@@ -1880,20 +1881,20 @@ def _test_flexible_server_vnet_mgmt_validator(self, resource_group):
18801881
resource_group, location, vnet_name, vnet_prefix))
18811882

18821883
self.cmd('postgres flexible-server create -g {} -l {} --vnet {} --yes'.format(
1883-
resource_group, 'westus', vnet_name), # location of vnet and server are different
1884+
resource_group, 'southindia', vnet_name), # location of vnet and server are different
18841885
expect_failure=True)
18851886

18861887
# delegated to different service
18871888
subnet = self.cmd('network vnet subnet create -g {} -n {} --vnet-name {} --address-prefixes {} --delegations {} --default-outbound false'.format(
18881889
resource_group, subnet_name, vnet_name, subnet_prefix, "Microsoft.DBforMySQL/flexibleServers")).get_output_in_json()
18891890

18901891
self.cmd('postgres flexible-server create -g {} -l {} --subnet {} --yes'.format(
1891-
resource_group, 'eastus', subnet["id"]), # Delegated to different service
1892+
resource_group, 'centralindia', subnet["id"]), # Delegated to different service
18921893
expect_failure=True)
18931894

18941895

18951896
class FlexibleServerPrivateDnsZoneScenarioTest(ScenarioTest):
1896-
postgres_location = 'eastus'
1897+
postgres_location = 'centralindia'
18971898

18981899
@AllowLargeResponse()
18991900
@ResourceGroupPreparer(location=postgres_location, parameter_name='server_resource_group')
@@ -2085,7 +2086,7 @@ def _test_flexible_server_new_private_dns_zone(self, database_engine, server_res
20852086

20862087

20872088
class FlexibleServerPublicAccessMgmtScenarioTest(ScenarioTest):
2088-
postgres_location = 'eastus'
2089+
postgres_location = 'centralindia'
20892090

20902091
@AllowLargeResponse()
20912092
@ResourceGroupPreparer(location=postgres_location)
@@ -2157,7 +2158,7 @@ def _test_flexible_server_public_access_mgmt(self, database_engine, resource_gro
21572158

21582159

21592160
class FlexibleServerUpgradeMgmtScenarioTest(ScenarioTest):
2160-
postgres_location = 'eastus'
2161+
postgres_location = 'centralindia'
21612162

21622163
@AllowLargeResponse()
21632164
@ResourceGroupPreparer(location=postgres_location)
@@ -2229,7 +2230,7 @@ def _test_backups_mgmt(self, database_engine, resource_group, server):
22292230
attempts += 1
22302231
if len(backups) > 0:
22312232
break
2232-
os.environ.get(ENV_LIVE_TEST, False) and sleep(60)
2233+
os.environ.get(ENV_LIVE_TEST, False) and sleep(120)
22332234

22342235
backups_length = len(backups)
22352236
self.assertTrue(backups_length > 0)
@@ -2262,7 +2263,7 @@ def _test_backups_mgmt(self, database_engine, resource_group, server):
22622263

22632264

22642265
class FlexibleServerIdentityMicrosoftEntraAdminMgmtScenarioTest(ScenarioTest):
2265-
postgres_location = 'eastus'
2266+
postgres_location = 'centralindia'
22662267

22672268
@AllowLargeResponse()
22682269
@ResourceGroupPreparer(location=postgres_location)
@@ -2434,7 +2435,7 @@ def _test_identity_microsoft_entra_admin_mgmt(self, database_engine, resource_gr
24342435

24352436

24362437
class FlexibleServerAdvancedThreatProtectionSettingMgmtScenarioTest(ScenarioTest):
2437-
postgres_location = 'eastus'
2438+
postgres_location = 'centralindia'
24382439

24392440
@AllowLargeResponse()
24402441
@ResourceGroupPreparer(location=postgres_location)
@@ -2483,7 +2484,7 @@ def _test_advanced_threat_protection_setting_mgmt(self, database_engine, resourc
24832484

24842485

24852486
class FlexibleServerLogsMgmtScenarioTest(ScenarioTest):
2486-
postgres_location = 'eastus'
2487+
postgres_location = 'centralindia'
24872488

24882489
@AllowLargeResponse()
24892490
@ResourceGroupPreparer(location=postgres_location)
@@ -2542,7 +2543,7 @@ def _test_server_logs_mgmt(self, database_engine, resource_group):
25422543

25432544
class FlexibleServerPrivateEndpointsMgmtScenarioTest(ScenarioTest):
25442545

2545-
postgres_location = 'eastus'
2546+
postgres_location = 'centralindia'
25462547

25472548
@AllowLargeResponse()
25482549
@ResourceGroupPreparer(location=postgres_location)

0 commit comments

Comments
 (0)