Skip to content

Commit

Permalink
♻️ improve test coverage (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
abahmed authored Feb 7, 2024
1 parent c821d39 commit eb481d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions alertmanager/webhook/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ func TestSendEventError(t *testing.T) {
"value": "test",
},
},
"basicAuth": map[string]string{
"username": "test",
"password": "test",
},
}
c := NewWebhook(configMap, &config.App{ClusterName: "dev"})
assert.NotNil(c)
Expand Down
1 change: 1 addition & 0 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func TestConfigFromFile(t *testing.T) {
MaxRecentLogLines: 20,
Namespaces: []string{"default", "!kwatch"},
Reasons: []string{"default", "!kwatch"},
IgnorePodNames: []string{"my-fancy-pod-[.*"},
App: App{
ProxyURL: "https://localhost",
ClusterName: "development",
Expand Down

0 comments on commit eb481d7

Please sign in to comment.