From f38d2ba9e576fbaf353329b1b978636632777353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garrido=20S=C3=A1nchez?= Date: Tue, 6 Aug 2024 16:41:31 +0000 Subject: [PATCH] fix: health probe validation condition --- tests/testing.tftest.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." }