mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Use stable identifier of a group when export to HCL (#90196)
* change the rule-group to be hashed when exporting to HCL Signed-off-by: Aviv Guiser <avivguiser@gmail.com> --------- Signed-off-by: Aviv Guiser <avivguiser@gmail.com>
This commit is contained in:
@@ -760,7 +760,7 @@ func TestProvisioningApi(t *testing.T) {
|
||||
insertRule(t, sut, rule1)
|
||||
insertRule(t, sut, createTestAlertRule("rule2", 1))
|
||||
|
||||
expectedResponse := `resource "grafana_rule_group" "rule_group_0000" {
|
||||
expectedResponse := `resource "grafana_rule_group" "rule_group_cc0954af8a53fa18" {
|
||||
org_id = 1
|
||||
name = "my-cool-group"
|
||||
folder_uid = "folder-uid"
|
||||
|
||||
Reference in New Issue
Block a user