system: dmi information

This commit is contained in:
Girish Ramakrishnan
2023-12-04 00:31:18 +01:00
parent 8a20b603f5
commit 72083f59cd
5 changed files with 43 additions and 3 deletions

View File

@@ -33,6 +33,19 @@ describe('System', function () {
});
});
describe('dmi', function () {
it('succeeds', async function () {
const response = await superagent.get(`${serverUrl}/api/v1/system/dmi`)
.query({ access_token: owner.token });
expect(response.statusCode).to.equal(200);
expect(response.body.dmi).to.be.ok();
expect(response.body.dmi.sysVendor).to.be.a('string');
expect(response.body.dmi.productName).to.be.a('string');
});
});
describe('logs', function () {
before(function () {
console.log(paths.BOX_LOG_FILE);