mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
improved tests and documentation on generic rpki api connector
This commit is contained in:
@@ -33,9 +33,8 @@ persistStatus: false
|
||||
|
||||
rpki:
|
||||
vrpProvider: api
|
||||
api: https://rpki.gin.ntt.net/api/export.json
|
||||
url: https://rpki.gin.ntt.net/api/export.json
|
||||
preCacheROAs: true
|
||||
refreshVrpListMinutes: 15
|
||||
|
||||
notificationIntervalSeconds: 1800 # Repeat the same alert (which keeps being triggered) after x seconds
|
||||
alertOnlyOnce: false
|
||||
|
@@ -42,14 +42,14 @@ if (fs.existsSync(cacheFile)) {
|
||||
fs.unlinkSync(cacheFile);
|
||||
}
|
||||
|
||||
global.EXTERNAL_CONFIG_FILE = "tests/rpki_tests/config.rpki.test.default.yml";
|
||||
global.EXTERNAL_CONFIG_FILE = "tests/rpki_tests/config.rpki.test.api.yml";
|
||||
const worker = require("../../index");
|
||||
const pubSub = worker.pubSub;
|
||||
|
||||
|
||||
describe("RPKI monitoring api", function() {
|
||||
|
||||
it("default connector", function (done) {
|
||||
it("api connector", function (done) {
|
||||
|
||||
const expectedData = {
|
||||
|
||||
|
Reference in New Issue
Block a user