Add Gateway device inventory panel
This commit is contained in:
@@ -20,11 +20,15 @@ test('control uses the dataplane socket protocol', async () => {
|
||||
assert.equal(status.gatewayBackendVersion, '0.1.0');
|
||||
assert.equal(status.singBoxVersion, '1.12.13');
|
||||
await client.apply();
|
||||
const devices = await client.observeDevices();
|
||||
assert.equal(devices.running, true);
|
||||
assert.equal(client.running, true);
|
||||
await client.restart();
|
||||
assert.equal((await client.stop()).running, false);
|
||||
assert.deepEqual(requests, [
|
||||
'GET /status /run/dataplane.sock',
|
||||
'POST /apply /run/dataplane.sock',
|
||||
'GET /devices /run/dataplane.sock',
|
||||
'POST /restart /run/dataplane.sock',
|
||||
'POST /stop /run/dataplane.sock',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user