Split platform and app data folders and get rid of btrfs volumes

This commit is contained in:
Johannes Zellner
2017-03-29 15:51:53 +02:00
parent 785ae765a4
commit 602f8bcd04
11 changed files with 88 additions and 109 deletions

View File

@@ -130,7 +130,7 @@ describe('apptask', function () {
it('create volume', function (done) {
apptask._createVolume(APP, function (error) {
expect(fs.existsSync(paths.DATA_DIR + '/' + APP.id + '/data')).to.be(true);
expect(fs.existsSync(paths.APPS_DATA_DIR + '/' + APP.id + '/data')).to.be(true);
expect(error).to.be(null);
done();
});
@@ -138,7 +138,7 @@ describe('apptask', function () {
it('delete volume', function (done) {
apptask._deleteVolume(APP, function (error) {
expect(!fs.existsSync(paths.DATA_DIR + '/' + APP.id + '/data')).to.be(true);
expect(!fs.existsSync(paths.APPS_DATA_DIR + '/' + APP.id + '/data')).to.be(true);
expect(error).to.be(null);
done();
});
@@ -241,5 +241,3 @@ describe('apptask', function () {
});
});
});