Skip to content

Commit

Permalink
fix: health probe validation condition
Browse files Browse the repository at this point in the history
  • Loading branch information
gareda committed Aug 6, 2024
1 parent b1815e6 commit f38d2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testing.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ run "plan" {
}

assert {
condition = { for probe in azurerm_application_gateway.main.probe : probe.name => probe }["probe-2"].host == null
condition = lookup({ for probe in azurerm_application_gateway.main.probe : probe.name => probe }["probe-2"], "host", null) == null
error_message = "The host of the first Health Probe is not as expected."
}

Expand Down

0 comments on commit f38d2ba

Please sign in to comment.