mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
report slack uppercase name error
This commit is contained in:
@@ -60,7 +60,7 @@ reports:
|
||||
# - joe@example.org
|
||||
# - noc@example.org
|
||||
#
|
||||
# - file: ReportSlack
|
||||
# - file: reportSlack
|
||||
# channels:
|
||||
# - hijack
|
||||
# - newprefix
|
||||
@@ -69,7 +69,6 @@ reports:
|
||||
# hookUrl: _YOUR_SLACK_WEBHOOK_URL_
|
||||
|
||||
|
||||
|
||||
checkStaleNotificationsSeconds: 60
|
||||
notificationIntervalSeconds: 1800 # Repeat the same alert (which keeps being triggered) after x seconds
|
||||
clearNotificationQueueAfterSeconds: 1900 # Stop with the alert for an event which didn't happen again in x seconds
|
||||
|
@@ -183,6 +183,8 @@ export default class ConnectorTest extends Connector{
|
||||
}
|
||||
];
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
this.timer = setInterval(() => {
|
||||
|
@@ -32,7 +32,7 @@
|
||||
|
||||
import Report from "./report";
|
||||
|
||||
export default class ReportEmail extends Report {
|
||||
export default class ReportFile extends Report {
|
||||
|
||||
constructor(channels, params, env) {
|
||||
super(channels, params, env);
|
||||
|
@@ -33,7 +33,7 @@
|
||||
import Report from "./report";
|
||||
import axios from "axios";
|
||||
|
||||
export default class ReportEmail extends Report {
|
||||
export default class ReportSlack extends Report {
|
||||
|
||||
constructor(channels, params, env) {
|
||||
super(channels, params, env);
|
||||
|
@@ -212,12 +212,11 @@ describe("Tests", function() {
|
||||
.read(file, 1)
|
||||
.then((line) => {
|
||||
const lineMessage = line.split(" ").slice(3, 5).join(" ").trim();
|
||||
|
||||
expect(lineMessage).to
|
||||
.equal(message);
|
||||
expect(lineMessage).to.equal(message);
|
||||
done();
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user