Skip to content

Commit

Permalink
Merge pull request #80 from cloudflare/typo
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
prymitive authored Nov 26, 2021
2 parents 2aeebeb + 7ffea15 commit 41d2178
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion internal/checks/alerts_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func checkMetricLabels(name, text string, metricLabels []string, excludeLabels b
}
}
if found == excludeLabels {
msg := fmt.Sprintf("template is using %q label but the query doesn't preseve it", v[1])
msg := fmt.Sprintf("template is using %q label but the query removes it", v[1])
msgs = append(msgs, msg)

}
Expand Down
14 changes: 7 additions & 7 deletions internal/checks/alerts_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func TestTemplateCheck(t *testing.T) {
Fragment: `summary: {{ $labels.job }}`,
Lines: []int{4},
Reporter: "alerts/template",
Text: `template is using "job" label but the query doesn't preseve it`,
Text: `template is using "job" label but the query removes it`,
Severity: checks.Bug,
},
},
Expand All @@ -249,7 +249,7 @@ func TestTemplateCheck(t *testing.T) {
Fragment: `summary: {{ .Labels.job }}`,
Lines: []int{4},
Reporter: "alerts/template",
Text: `template is using "job" label but the query doesn't preseve it`,
Text: `template is using "job" label but the query removes it`,
Severity: checks.Bug,
},
},
Expand All @@ -263,7 +263,7 @@ func TestTemplateCheck(t *testing.T) {
Fragment: `summary: {{ $labels.job }}`,
Lines: []int{4},
Reporter: "alerts/template",
Text: `template is using "job" label but the query doesn't preseve it`,
Text: `template is using "job" label but the query removes it`,
Severity: checks.Bug,
},
},
Expand All @@ -277,7 +277,7 @@ func TestTemplateCheck(t *testing.T) {
Fragment: `summary: {{ .Labels.job }}`,
Lines: []int{4},
Reporter: "alerts/template",
Text: `template is using "job" label but the query doesn't preseve it`,
Text: `template is using "job" label but the query removes it`,
Severity: checks.Bug,
},
},
Expand All @@ -291,7 +291,7 @@ func TestTemplateCheck(t *testing.T) {
Fragment: `summary: {{ .Labels.job }}`,
Lines: []int{4},
Reporter: "alerts/template",
Text: `template is using "job" label but the query doesn't preseve it`,
Text: `template is using "job" label but the query removes it`,
Severity: checks.Bug,
},
},
Expand All @@ -305,7 +305,7 @@ func TestTemplateCheck(t *testing.T) {
Fragment: `summary: {{ .Labels.job }}`,
Lines: []int{4},
Reporter: "alerts/template",
Text: `template is using "job" label but the query doesn't preseve it`,
Text: `template is using "job" label but the query removes it`,
Severity: checks.Bug,
},
},
Expand All @@ -325,7 +325,7 @@ func TestTemplateCheck(t *testing.T) {
Fragment: `help: {{ $labels.ixtance }}`,
Lines: []int{6},
Reporter: "alerts/template",
Text: `template is using "ixtance" label but the query doesn't preseve it`,
Text: `template is using "ixtance" label but the query removes it`,
Severity: checks.Bug,
},
},
Expand Down

0 comments on commit 41d2178

Please sign in to comment.