Add Prometheus and Grafana monitoring instructions
This commit is contained in:
@@ -112,10 +112,22 @@ test('subscription expiry uses Russian day forms', () => {
|
||||
});
|
||||
|
||||
test('gateway receives router instructions while local client does not', () => {
|
||||
const gateway = instructionBlocks({ isGateway: true, host: '192.168.1.20', port: 8080 });
|
||||
const client = instructionBlocks({ isGateway: false, host: '127.0.0.1', port: 8082 });
|
||||
const gateway = instructionBlocks({
|
||||
isGateway: true,
|
||||
host: '192.168.1.20',
|
||||
port: 8080,
|
||||
controlHost: '192.168.1.20:3456',
|
||||
});
|
||||
const client = instructionBlocks({
|
||||
isGateway: false,
|
||||
host: '127.0.0.1',
|
||||
port: 8082,
|
||||
controlHost: '127.0.0.1:3456',
|
||||
});
|
||||
|
||||
assert.equal(gateway.at(-1).id, 'router');
|
||||
assert.equal(gateway.some((block) => block.id === 'router'), true);
|
||||
assert.equal(gateway.some((block) => block.id === 'prometheus'), true);
|
||||
assert.equal(client.some((block) => block.id === 'router'), false);
|
||||
assert.equal(client.some((block) => block.id === 'prometheus'), false);
|
||||
assert.match(client.find((block) => block.id === 'vscode').code, /127\.0\.0\.1:8082/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user