1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

added monitorRPKI tests

This commit is contained in:
Massimo Candela
2020-04-28 15:35:26 +02:00
parent 8773df1447
commit 7fee9ee8c9
5 changed files with 124 additions and 9 deletions

View File

@@ -97,7 +97,7 @@ describe("Composition", function() {
it("loading monitors", function () {
expect(config.monitors.length).to.equal(6);
expect(config.monitors.length).to.equal(7);
expect(config.monitors[0]).to
.containSubset({
@@ -144,6 +144,18 @@ describe("Composition", function() {
}
});
expect(config.monitors[5]).to
.containSubset({
"channel": "rpki-monitor",
"name": "rpki-monitor",
"params": {
"thresholdMinPeers": 1,
"preCacheROAs": false,
"refreshVrpListMinutes": 15,
"checkUncovered": true
}
});
expect(config.monitors[config.monitors.length - 1]).to
.containSubset({
"channel": "software-update",
@@ -297,7 +309,7 @@ describe("Composition", function() {
]
});
expect(input.asns.map(i => i.asn.getValue())).to.eql([ 2914, 3333, 65000 ]);
expect(input.asns.map(i => i.asn.getValue())).to.eql([ 2914, 3333, 13335, 65000 ]);
});
});