system: cpu route

This commit is contained in:
Girish Ramakrishnan
2023-12-04 00:23:25 +01:00
parent d45c433bc7
commit 8a20b603f5
5 changed files with 33 additions and 1 deletions

View File

@@ -21,6 +21,18 @@ describe('System', function () {
before(setup);
after(cleanup);
describe('cpus', function () {
it('succeeds', async function () {
const response = await superagent.get(`${serverUrl}/api/v1/system/cpus`)
.query({ access_token: owner.token });
expect(response.statusCode).to.equal(200);
expect(response.body.cpus).to.be.ok();
expect(response.body.cpus.every(c => typeof c.model === 'string')).to.be(true);
});
});
describe('logs', function () {
before(function () {
console.log(paths.BOX_LOG_FILE);