Skip to content

Commit

Permalink
Merge pull request #1173 from ksamoray/allocation_wait
Browse files Browse the repository at this point in the history
Wait for subnet realization in ip_allocation test
  • Loading branch information
ksamoray authored Apr 7, 2024
2 parents 752aa5b + af269b1 commit 2396119
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nsxt/resource_nsxt_policy_ip_address_allocation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ resource "nsxt_policy_ip_address_allocation" "test" {
display_name = "%s"
description = "%s"
pool_path = nsxt_policy_ip_pool.test.path
depends_on = [nsxt_policy_ip_pool_static_subnet.test]
depends_on = [data.nsxt_policy_realization_info.subnet_realization]
tag {
scope = "scope1"
Expand Down Expand Up @@ -340,5 +340,8 @@ resource "nsxt_policy_ip_pool_static_subnet" "test" {
start = "12.12.12.10"
end = "12.12.12.20"
}
}
data "nsxt_policy_realization_info" "subnet_realization" {
path = nsxt_policy_ip_pool_static_subnet.test.path
}`, context, accTestPolicyIPAddressAllocationPoolName, context, accTestPolicyIPAddressAllocationSubnetName)
}

0 comments on commit 2396119

Please sign in to comment.