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:
@@ -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 ]);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user