Skip to content

Commit

Permalink
Amending test values
Browse files Browse the repository at this point in the history
  • Loading branch information
CB Hoffman committed Dec 13, 2023
1 parent 64a69a3 commit 00f56d1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions alert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func TestClient_CreateAlertRuleWithNotifications(t *testing.T) {

func TestClient_CreateAlertRuleWithWebhookNotifications(t *testing.T) {
setup()
out := `{"alertRuleId": 1, "ruleName": "test", "notifications":{"webhook":[{"integrationId": "1", "integrationName": "foo", "integrationType":"bar"},{"integrationId": "2", "integrationName": "foo2", "integrationType":"bar2"}]}}`
out := `{"alertRuleId": 1, "ruleName": "test", "notifications":{"webhook":[{"integrationId": "1", "integrationName": "Teams Channel", "integrationType":"WEBHOOK"},{"integrationId": "2", "integrationName": "Teams Channel", "integrationType":"WEBHOOK"}]}}`
mux.HandleFunc("/alert-rules/new.json", func(w http.ResponseWriter, r *http.Request) {
assert.Equal(t, "POST", r.Method)
w.WriteHeader(http.StatusCreated)
Expand All @@ -163,13 +163,13 @@ func TestClient_CreateAlertRuleWithWebhookNotifications(t *testing.T) {
Webhook: &[]NotificationWebhook{
{
IntegrationID: String("1"),
IntegrationName: String("foo"),
IntegrationType: String("bar"),
IntegrationName: String("Teams Channel"),
IntegrationType: String("WEBHOOK"),
},
{
IntegrationID: String("2"),
IntegrationName: String("foo2"),
IntegrationType: String("bar2"),
IntegrationName: String("Teams Channel"),
IntegrationType: String("WEBHOOK"),
},
},
},
Expand All @@ -185,13 +185,13 @@ func TestClient_CreateAlertRuleWithWebhookNotifications(t *testing.T) {
Webhook: &[]NotificationWebhook{
{
IntegrationID: String("1"),
IntegrationName: String("foo"),
IntegrationType: String("bar"),
IntegrationName: String("Teams Channel"),
IntegrationType: String("WEBHOOK"),
},
{
IntegrationID: String("2"),
IntegrationName: String("foo2"),
IntegrationType: String("bar2"),
IntegrationName: String("Teams Channel"),
IntegrationType: String("WEBHOOK"),
},
},
},
Expand Down

0 comments on commit 00f56d1

Please sign in to comment.