Make tests run again

This commit is contained in:
Girish Ramakrishnan
2023-03-09 19:54:04 +01:00
parent 3aa040bf01
commit 8e0d1b61af
6 changed files with 12 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ describe('Volumes API', function () {
it('cannot create volume with bad name', async function () {
const response = await superagent.post(`${serverUrl}/api/v1/volumes`)
.query({ access_token: owner.token })
.send({ name: 'music#/ ', hostPath: '/media/cloudron-test-music', mountType: 'filesystem', mountOptions: {} })
.send({ name: 'music#/ ', mountType: 'filesystem', mountOptions: { hostPath: '/media/cloudron-test-music' } })
.ok(() => true);
expect(response.statusCode).to.equal(400);
});
@@ -27,7 +27,7 @@ describe('Volumes API', function () {
it('cannot create volume with bad path', async function () {
const response = await superagent.post(`${serverUrl}/api/v1/volumes`)
.query({ access_token: owner.token })
.send({ name: 'music', hostPath: '/tmp/music', mountType: 'filesystem', mountOptions: {} })
.send({ name: 'music', mountType: 'filesystem', mountOptions: { hostPath: '/tmp/music' } })
.ok(() => true);
expect(response.statusCode).to.equal(400);
});
@@ -35,7 +35,7 @@ describe('Volumes API', function () {
it('can create volume', async function () {
const response = await superagent.post(`${serverUrl}/api/v1/volumes`)
.query({ access_token: owner.token })
.send({ name: 'music', hostPath: '/media/cloudron-test-music', mountType: 'filesystem', mountOptions: {} })
.send({ name: 'music', mountType: 'filesystem', mountOptions: { hostPath: '/media/cloudron-test-music' } })
.ok(() => true);
expect(response.status).to.equal(201);