diff --git a/tests/testing.tftest.hcl b/tests/testing.tftest.hcl index 38628ba..a8575ed 100644 --- a/tests/testing.tftest.hcl +++ b/tests/testing.tftest.hcl @@ -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." }