diff --git a/test/integration/monitoring_alerts/monitoring_alerts_test.go b/test/integration/monitoring_alerts/monitoring_alerts_test.go index 2a9a45c..737d9aa 100644 --- a/test/integration/monitoring_alerts/monitoring_alerts_test.go +++ b/test/integration/monitoring_alerts/monitoring_alerts_test.go @@ -33,10 +33,13 @@ func TestMonitoringAlertKeyVersion(t *testing.T) { emailAddresses := []string{"email@example.com", "email2@example.com"} - for index, monitor_all_keys_in_the_project := range []bool{ - true, - false, - } { + TfInputs := map[string]bool{ + "test1": true, + "test2": false, + } + + index := 0 + for _, monitor_all_keys_in_the_project := range TfInputs { statePath := fmt.Sprintf("%s/custom_backend_%d.tfstate", path, index) @@ -114,5 +117,7 @@ func TestMonitoringAlertKeyVersion(t *testing.T) { }) kmsAlertT.Test() + + index++ } }