From 091d93afa8313d76f5e6f2c5998155d2cdaf4e57 Mon Sep 17 00:00:00 2001 From: Leonardo Henrique Romanini Date: Mon, 11 Nov 2024 11:41:52 -0300 Subject: [PATCH] Attempt without additional index --- .../integration/monitoring_alerts/monitoring_alerts_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/integration/monitoring_alerts/monitoring_alerts_test.go b/test/integration/monitoring_alerts/monitoring_alerts_test.go index 737d9aa..8b9df7f 100644 --- a/test/integration/monitoring_alerts/monitoring_alerts_test.go +++ b/test/integration/monitoring_alerts/monitoring_alerts_test.go @@ -38,10 +38,9 @@ func TestMonitoringAlertKeyVersion(t *testing.T) { "test2": false, } - index := 0 - for _, monitor_all_keys_in_the_project := range TfInputs { + for key, monitor_all_keys_in_the_project := range TfInputs { - statePath := fmt.Sprintf("%s/custom_backend_%d.tfstate", path, index) + statePath := fmt.Sprintf("%s/custom_backend_%d.tfstate", path, key) vars := map[string]interface{}{ "monitor_all_keys_in_the_project": monitor_all_keys_in_the_project, @@ -118,6 +117,5 @@ func TestMonitoringAlertKeyVersion(t *testing.T) { }) kmsAlertT.Test() - index++ } }