1
0
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:
Massimo Candela
2021-03-04 18:39:03 +01:00
parent 9311915f10
commit 70ee4513a5
5 changed files with 102 additions and 69 deletions

View File

@@ -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

View File

@@ -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 = {