pull/792/head
hunterlong 2020-08-20 01:52:16 -07:00
parent fb74d57329
commit e5c585135f
1 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ func TestApiNotifiersRoutes(t *testing.T) {
Method: "POST",
Body: `{
"method": "slack",
"host": "https://slack.api/example/12345",
"host": "https://hooks.slack.com/services/TTJ1B49DP/XBNU09O9M/9uI2123SUnYBuGcxLopZomz9H",
"enabled": true,
"limits": 55
}`,
@ -173,7 +173,7 @@ func TestApiNotifiersRoutes(t *testing.T) {
URL: "/api/notifier/slack",
Method: "GET",
ExpectedStatus: 200,
ExpectedContains: []string{`"method":"slack"`, `"host":"https://slack.api/example/12345"`},
ExpectedContains: []string{`"method":"slack"`, `"host":"https://hooks.slack.com/services/TTJ1B49DP/XBNU09O9M/9uI2123SUnYBuGcxLopZomz9H"`},
BeforeTest: SetTestENV,
SecureRoute: true,
},