mirror of https://github.com/statping/statping
test fix
parent
fb74d57329
commit
e5c585135f
|
@ -161,7 +161,7 @@ func TestApiNotifiersRoutes(t *testing.T) {
|
||||||
Method: "POST",
|
Method: "POST",
|
||||||
Body: `{
|
Body: `{
|
||||||
"method": "slack",
|
"method": "slack",
|
||||||
"host": "https://slack.api/example/12345",
|
"host": "https://hooks.slack.com/services/TTJ1B49DP/XBNU09O9M/9uI2123SUnYBuGcxLopZomz9H",
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"limits": 55
|
"limits": 55
|
||||||
}`,
|
}`,
|
||||||
|
@ -173,7 +173,7 @@ func TestApiNotifiersRoutes(t *testing.T) {
|
||||||
URL: "/api/notifier/slack",
|
URL: "/api/notifier/slack",
|
||||||
Method: "GET",
|
Method: "GET",
|
||||||
ExpectedStatus: 200,
|
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,
|
BeforeTest: SetTestENV,
|
||||||
SecureRoute: true,
|
SecureRoute: true,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue