Skip to content

Commit

Permalink
update the dependencies in tc
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-yechenwei committed Jan 17, 2025
1 parent 9b5b641 commit 626a971
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,14 @@ provider "azurerm" {
%[1]s
resource "azurerm_public_ip" "egress" {
name = "acctestpublicip-%[2]d-e"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
allocation_method = "Static"
sku = "Standard"
}
resource "azurerm_palo_alto_next_generation_firewall_virtual_hub_local_rulestack" "test" {
name = "acctest-ngfwvh-%[2]d"
resource_group_name = azurerm_resource_group.test.name
Expand Down Expand Up @@ -273,6 +281,14 @@ provider "azurerm" {
%[1]s
resource "azurerm_public_ip" "egress" {
name = "acctestpublicip-%[2]d-e"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
allocation_method = "Static"
sku = "Standard"
}
resource "azurerm_palo_alto_next_generation_firewall_virtual_hub_local_rulestack" "test" {
name = "acctest-ngfwvh-%[2]d"
resource_group_name = azurerm_resource_group.test.name
Expand Down Expand Up @@ -322,14 +338,6 @@ resource "azurerm_public_ip" "test" {
sku = "Standard"
}
resource "azurerm_public_ip" "egress" {
name = "acctestpublicip-%[1]d-e"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
allocation_method = "Static"
sku = "Standard"
}
resource "azurerm_virtual_wan" "test" {
name = "acctestvwan-%[1]d"
resource_group_name = azurerm_resource_group.test.name
Expand Down Expand Up @@ -374,8 +382,8 @@ resource "azurerm_palo_alto_local_rulestack_rule" "test" {
resource "azurerm_palo_alto_virtual_network_appliance" "test" {
name = "testAcc-panva-%[1]d"
virtual_hub_id = azurerm_virtual_hub.test.id
}
depends_on = [azurerm_palo_alto_local_rulestack_rule.test]
}
`, data.RandomInteger, data.Locations.Primary)
}
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ provider "azurerm" {
%[1]s
resource "azurerm_public_ip" "egress" {
name = "acctestpublicip-%[2]d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
allocation_method = "Static"
sku = "Standard"
}
resource "azurerm_palo_alto_next_generation_firewall_virtual_hub_panorama" "test" {
name = "acctest-ngfwvh-%[2]d"
resource_group_name = azurerm_resource_group.test.name
Expand Down Expand Up @@ -227,14 +235,6 @@ resource "azurerm_public_ip" "test" {
sku = "Standard"
}
resource "azurerm_public_ip" "egress" {
name = "acctestpublicip-%[1]d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
allocation_method = "Static"
sku = "Standard"
}
resource "azurerm_virtual_wan" "test" {
name = "acctestvwan-%[1]d"
resource_group_name = azurerm_resource_group.test.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ resource "azurerm_palo_alto_next_generation_firewall_virtual_network_local_rules
untrusted_subnet_id = azurerm_subnet.test2.id
}
}
depends_on = [azurerm_palo_alto_local_rulestack_rule.test]
}
`, r.template(data), data.RandomInteger)
}
Expand All @@ -171,6 +173,8 @@ resource "azurerm_palo_alto_next_generation_firewall_virtual_network_local_rules
untrusted_subnet_id = azurerm_subnet.test2.id
}
}
depends_on = [azurerm_palo_alto_local_rulestack_rule.test]
}
`, r.template(data), data.RandomInteger)
}
Expand Down Expand Up @@ -227,6 +231,14 @@ provider "azurerm" {
%[1]s
resource "azurerm_public_ip" "egress" {
name = "acctestpublicip-%[2]d-e"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
allocation_method = "Static"
sku = "Standard"
}
resource "azurerm_palo_alto_next_generation_firewall_virtual_network_local_rulestack" "test" {
name = "acctest-ngfwvn-%[2]d"
resource_group_name = azurerm_resource_group.test.name
Expand Down Expand Up @@ -275,6 +287,8 @@ resource "azurerm_palo_alto_next_generation_firewall_virtual_network_local_rules
port = 18082
}
}
depends_on = [azurerm_palo_alto_local_rulestack_rule.test]
}
`, r.template(data), data.RandomInteger)
}
Expand All @@ -287,6 +301,14 @@ provider "azurerm" {
%[1]s
resource "azurerm_public_ip" "egress" {
name = "acctestpublicip-%[2]d-e"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
allocation_method = "Static"
sku = "Standard"
}
resource "azurerm_palo_alto_next_generation_firewall_virtual_network_local_rulestack" "test" {
name = "acctest-ngfwvn-%[2]d"
resource_group_name = azurerm_resource_group.test.name
Expand Down Expand Up @@ -322,6 +344,8 @@ resource "azurerm_palo_alto_next_generation_firewall_virtual_network_local_rules
port = 18082
}
}
depends_on = [azurerm_palo_alto_local_rulestack_rule.test]
}
`, r.template(data), data.RandomInteger)
}
Expand All @@ -341,14 +365,6 @@ resource "azurerm_public_ip" "test" {
sku = "Standard"
}
resource "azurerm_public_ip" "egress" {
name = "acctestpublicip-%[1]d-e"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
allocation_method = "Static"
sku = "Standard"
}
resource "azurerm_network_security_group" "test" {
name = "acceptanceTestSecurityGroup1"
location = azurerm_resource_group.test.location
Expand Down Expand Up @@ -416,6 +432,8 @@ resource "azurerm_palo_alto_local_rulestack" "test" {
name = "testAcc-palrs-%[1]d"
resource_group_name = azurerm_resource_group.test.name
location = "%[2]s"
depends_on = [azurerm_subnet_network_security_group_association.test1, azurerm_subnet_network_security_group_association.test2]
}
resource "azurerm_palo_alto_local_rulestack_rule" "test" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ resource "azurerm_palo_alto_next_generation_firewall_virtual_network_panorama" "
untrusted_subnet_id = azurerm_subnet.test2.id
}
}
depends_on = [azurerm_subnet_network_security_group_association.test1, azurerm_subnet_network_security_group_association.test2]
}
`, r.template(data), data.RandomInteger, os.Getenv("ARM_PALO_ALTO_PANORAMA_CONFIG"))
}
Expand All @@ -159,6 +161,8 @@ resource "azurerm_palo_alto_next_generation_firewall_virtual_network_panorama" "
untrusted_subnet_id = azurerm_subnet.test2.id
}
}
depends_on = [azurerm_subnet_network_security_group_association.test1, azurerm_subnet_network_security_group_association.test2]
}
`, r.template(data), data.RandomInteger, os.Getenv("ARM_PALO_ALTO_PANORAMA_CONFIG"))
}
Expand All @@ -171,6 +175,14 @@ provider "azurerm" {
%[1]s
resource "azurerm_public_ip" "egress" {
name = "acctestpublicip-%[2]d-e"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
allocation_method = "Static"
sku = "Standard"
}
resource "azurerm_palo_alto_next_generation_firewall_virtual_network_panorama" "test" {
name = "acctest-ngfwvn-%[2]d"
resource_group_name = azurerm_resource_group.test.name
Expand Down Expand Up @@ -220,6 +232,8 @@ resource "azurerm_palo_alto_next_generation_firewall_virtual_network_panorama" "
port = 18082
}
}
depends_on = [azurerm_subnet_network_security_group_association.test1, azurerm_subnet_network_security_group_association.test2]
}
`, r.template(data), data.RandomInteger, data.Locations.Primary, os.Getenv("ARM_PALO_ALTO_PANORAMA_CONFIG"))
}
Expand All @@ -239,14 +253,6 @@ resource "azurerm_public_ip" "test" {
sku = "Standard"
}
resource "azurerm_public_ip" "egress" {
name = "acctestpublicip-%[1]d-e"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
allocation_method = "Static"
sku = "Standard"
}
resource "azurerm_network_security_group" "test" {
name = "acceptanceTestSecurityGroup1"
location = azurerm_resource_group.test.location
Expand Down

0 comments on commit 626a971

Please sign in to comment.