Skip to content

Commit

Permalink
tests region
Browse files Browse the repository at this point in the history
  • Loading branch information
t-lstauber committed Jul 11, 2024
1 parent 68083f7 commit cb89c11
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def test_azure_firewall_virtual_hub_with_public_ips(self, resource_group):
# self.cmd('network firewall show -g {rg} -n {af}')

@AllowLargeResponse(size_kb=10240)
@ResourceGroupPreparer(name_prefix='cli_test_azure_firewall_with_firewall_policy', location='SwitzerlandNorth')
@ResourceGroupPreparer(name_prefix='cli_test_azure_firewall_with_firewall_policy', location='westus2')
def test_azure_firewall_with_firewall_policy(self, resource_group, resource_group_location):
self.kwargs.update({
'af': 'af1',
Expand All @@ -341,7 +341,7 @@ def test_azure_firewall_with_firewall_policy(self, resource_group, resource_grou
])
# self.cmd('network firewall create -g {rg} -n {af} --count 1 --sku AZFW_Hub --vhub clitestvhub --firewall-policy {policy}')

self.kwargs.update({'location': 'SwitzerlandNorth'})
self.kwargs.update({'location': 'westus2'})

# test firewall policy with vnet firewall
self.cmd('network firewall create -g {rg} -n {af2} -l {location} --firewall-policy {policy}')
Expand All @@ -363,7 +363,7 @@ def test_azure_firewall_with_firewall_policy(self, resource_group, resource_grou
self.check('name', '{policy2}')
])

@ResourceGroupPreparer(name_prefix='test_azure_firewall_with_firewall_policy_premium', location='SwitzerlandNorth')
@ResourceGroupPreparer(name_prefix='test_azure_firewall_with_firewall_policy_premium', location='westus2')
def test_azure_firewall_with_firewall_policy_premium(self, resource_group, resource_group_location):
self.kwargs.update({
'policy2': 'myclipolicy2',
Expand All @@ -385,7 +385,7 @@ def test_azure_firewall_with_firewall_policy_premium(self, resource_group, resou
# self.cmd('network firewall policy update -g {rg} -n {policy2} --remove {id}',
# checks=[self.not_exists('identity')])

@ResourceGroupPreparer(name_prefix='cli_test_azure_firewall_policy_with_threat_intel_allowlist', location='SwitzerlandNorth')
@ResourceGroupPreparer(name_prefix='cli_test_azure_firewall_policy_with_threat_intel_allowlist', location='westus2')
def test_azure_firewall_policy_with_threat_intel_allowlist(self, resource_group, resource_group_location):
self.kwargs.update({
'collectiongroup': 'myclirulecollectiongroup',
Expand Down Expand Up @@ -697,7 +697,7 @@ def test_firewall_policy_with_dns_settings(self, resource_group):

self.cmd('network firewall policy delete --resource-group {rg} --name {policy} ')

@ResourceGroupPreparer(name_prefix='cli_test_azure_firewall_policy', location='SwitzerlandNorth')
@ResourceGroupPreparer(name_prefix='cli_test_azure_firewall_policy', location='westus2')
def test_azure_firewall_policy_rules_with_fqdns(self, resource_group, resource_group_location):
self.kwargs.update({
'collectiongroup': 'myclirulecollectiongroup',
Expand Down Expand Up @@ -774,7 +774,7 @@ def test_azure_firewall_policy_rules_with_fqdns(self, resource_group, resource_g
])

@AllowLargeResponse()
@ResourceGroupPreparer(name_prefix='cli_test_azure_firewall_policy', location='SwitzerlandNorth')
@ResourceGroupPreparer(name_prefix='cli_test_azure_firewall_policy', location='westus2')
def test_azure_firewall_policy_rules_with_ip_groups(self, resource_group, resource_group_location):
self.kwargs.update({
'collectiongroup': 'myclirulecollectiongroup',
Expand Down Expand Up @@ -908,7 +908,7 @@ def test_azure_firewall_policy_rules_with_ip_groups(self, resource_group, resour
self.cmd('network firewall policy delete -g {rg} --name {policy}')

@AllowLargeResponse()
@ResourceGroupPreparer(name_prefix='test_azure_firewall_policy_explicit_proxy', location='SwitzerlandNorth')
@ResourceGroupPreparer(name_prefix='test_azure_firewall_policy_explicit_proxy', location='westus2')
def test_azure_firewall_policy_explicit_proxy(self, resource_group):
self.kwargs.update({
'policy_name': 'testFirewallPolicy',
Expand Down Expand Up @@ -982,7 +982,7 @@ def test_azure_firewall_tier(self, resource_group):
checks=self.check('sku.tier', 'Premium'))

# BUG ISSUE: https://github.com/Azure/azure-cli-extensions/issues/4096
@ResourceGroupPreparer(name_prefix='test_azure_firewall_policy_update_premiumonlyproperty_issue', location='SwitzerlandNorth')
@ResourceGroupPreparer(name_prefix='test_azure_firewall_policy_update_premiumonlyproperty_issue', location='westus2')
def test_azure_firewall_policy_update_premiumonlyproperty_issue(self, resource_group):
self.kwargs.update({
'policy': 'testpolicy'
Expand Down Expand Up @@ -1095,7 +1095,7 @@ def test_azure_firewall_policy_with_snat(self, resource_group):
self.cmd("network firewall policy delete -n {policy} -g {rg}")

@AllowLargeResponse(size_kb=10240)
@ResourceGroupPreparer(name_prefix='cli_test_azure_firewall_policy_draft', location='SwitzerlandNorth')
@ResourceGroupPreparer(name_prefix='cli_test_azure_firewall_policy_draft', location='westus2')
def test_azure_policy_draft(self, resource_group, resource_group_location):
self.kwargs.update({
'policy': 'myclipolicy',
Expand All @@ -1110,7 +1110,7 @@ def test_azure_policy_draft(self, resource_group, resource_group_location):
self.check('name', '{policy}')
])

self.kwargs.update({'location': 'SwitzerlandNorth'})
self.kwargs.update({'location': 'westus2'})
self.cmd('network firewall policy draft create -g {rg} --name {policy}', checks=[
self.check('type', 'Microsoft.Network/FirewallPolicies/FirewallPolicyDrafts'),
self.check('name', '{policy}')
Expand Down Expand Up @@ -1203,7 +1203,7 @@ def test_azure_policy_draft(self, resource_group, resource_group_location):


@AllowLargeResponse(size_kb=10240)
@ResourceGroupPreparer(name_prefix='cli_test_azure_firewall_policy_draft', location='SwitzerlandNorth')
@ResourceGroupPreparer(name_prefix='cli_test_azure_firewall_policy_draft', location='westus2')
def test_azure_policy_rcg_draft(self, resource_group, resource_group_location):
self.kwargs.update({
'policy': 'myclipolicy',
Expand All @@ -1218,7 +1218,7 @@ def test_azure_policy_rcg_draft(self, resource_group, resource_group_location):
self.check('name', '{policy}')
])

self.kwargs.update({'location': 'SwitzerlandNorth'})
self.kwargs.update({'location': 'westus2'})
self.cmd('network firewall policy draft create -g {rg} --name {policy}', checks=[
self.check('type', 'Microsoft.Network/FirewallPolicies/FirewallPolicyDrafts'),
self.check('name', '{policy}')
Expand Down

0 comments on commit cb89c11

Please sign in to comment.