Make tests run again
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user