Skip to content

Commit

Permalink
Attempt without additional index
Browse files Browse the repository at this point in the history
  • Loading branch information
romanini-ciandt committed Nov 11, 2024
1 parent 95469f2 commit 091d93a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/integration/monitoring_alerts/monitoring_alerts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -118,6 +117,5 @@ func TestMonitoringAlertKeyVersion(t *testing.T) {
})
kmsAlertT.Test()

index++
}
}

0 comments on commit 091d93a

Please sign in to comment.