mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-21 15:45:01 +00:00
app/vmalert/notifier: go fmt
This commit is contained in:
parent
8e29b4a716
commit
9ca781b8f0
1 changed files with 3 additions and 3 deletions
|
@ -9,13 +9,13 @@ func TestAlert_ExecTemplate(t *testing.T) {
|
||||||
u, _ := url.Parse("https://victoriametrics.com/path")
|
u, _ := url.Parse("https://victoriametrics.com/path")
|
||||||
InitTemplateFunc(u)
|
InitTemplateFunc(u)
|
||||||
testCases := []struct {
|
testCases := []struct {
|
||||||
name string
|
name string
|
||||||
alert *Alert
|
alert *Alert
|
||||||
annotations map[string]string
|
annotations map[string]string
|
||||||
expTpl map[string]string
|
expTpl map[string]string
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
name: "empty-alert",
|
name: "empty-alert",
|
||||||
alert: &Alert{},
|
alert: &Alert{},
|
||||||
annotations: map[string]string{},
|
annotations: map[string]string{},
|
||||||
expTpl: map[string]string{},
|
expTpl: map[string]string{},
|
||||||
|
@ -52,7 +52,7 @@ func TestAlert_ExecTemplate(t *testing.T) {
|
||||||
{
|
{
|
||||||
name: "expression-template",
|
name: "expression-template",
|
||||||
alert: &Alert{
|
alert: &Alert{
|
||||||
Expr: "vm_rows>0",
|
Expr: "vm_rows>0",
|
||||||
},
|
},
|
||||||
annotations: map[string]string{
|
annotations: map[string]string{
|
||||||
"exprEscapedQuery": "{{ $expr|queryEscape }}",
|
"exprEscapedQuery": "{{ $expr|queryEscape }}",
|
||||||
|
|
Loading…
Reference in a new issue