Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rwwiv committed Oct 18, 2024
1 parent 6157d70 commit 38aa324
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -693,9 +693,9 @@ func TestAccRecordingRule(t *testing.T) {
resource.TestCheckResourceAttr("grafana_rule_group.my_rule_group", "name", name),
resource.TestCheckResourceAttr("grafana_rule_group.my_rule_group", "rule.#", "1"),
resource.TestCheckResourceAttr("grafana_rule_group.my_rule_group", "rule.0.name", "My Random Walk Alert"),
resource.TestCheckResourceAttr("grafana_rule_group.my_rule_group", "rule.0.data.0.model", "{\"hide\":false,\"refId\":\"A\"}"),
resource.TestCheckResourceAttr("grafana_rule_group.my_rule_group", "rule.0.data.0.record.metric", metric),
resource.TestCheckResourceAttr("grafana_rule_group.my_rule_group", "rule.0.data.0.record.from", "A"),
resource.TestCheckResourceAttr("grafana_rule_group.my_rule_group", "rule.0.data.0.model", "{\"refId\":\"A\"}"),
resource.TestCheckResourceAttr("grafana_rule_group.my_rule_group", "rule.0.record.metric", metric),
resource.TestCheckResourceAttr("grafana_rule_group.my_rule_group", "rule.0.record.from", "A"),
),
},
},
Expand Down

0 comments on commit 38aa324

Please sign in to comment.