test: fix various routes tests

* system/disks routes is gone
* provision routes now return 405 instead of 409 when re-setup/re-activated
This commit is contained in:
Girish Ramakrishnan
2024-06-03 19:18:36 +02:00
parent db7e88e302
commit 3dcd0975f7
4 changed files with 9 additions and 21 deletions

View File

@@ -127,17 +127,6 @@ describe('System', function () {
});
});
describe('disks', function () {
it('succeeds', async function () {
const response = await superagent.get(`${serverUrl}/api/v1/system/disks`)
.query({ access_token: owner.token });
expect(response.statusCode).to.equal(200);
expect(response.body.disks).to.be.ok();
expect(Object.keys(response.body.disks).some(fs => response.body.disks[fs].mountpoint === '/')).to.be(true);
});
});
describe('disk usage', function () {
it('get succeeds with no cache', async function () {
safe.fs.unlinkSync(paths.DISK_USAGE_FILE);