Alerting: Fix HCL export for alerts with non-zero "for" field. (#76739)
* Alerting: Fix HCL export for alerts with non-zero "for" field. Fixes #76734 * fix tests --------- Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
This commit is contained in:
co-authored by
Yuri Tseretyan
parent
8985f79aab
commit
a0476741f2
@@ -605,7 +605,7 @@ func TestProvisioningApi(t *testing.T) {
|
||||
|
||||
no_data_state = "Alerting"
|
||||
exec_err_state = "Error"
|
||||
for = 0
|
||||
for = "0s"
|
||||
annotations = {
|
||||
test = "annotation"
|
||||
}
|
||||
@@ -632,7 +632,7 @@ func TestProvisioningApi(t *testing.T) {
|
||||
|
||||
no_data_state = "OK"
|
||||
exec_err_state = "OK"
|
||||
for = 0
|
||||
for = "0s"
|
||||
is_paused = false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user