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

@@ -747,7 +747,7 @@ describe('App installation', function () {
});
it('installation - volume created', function (done) {
expect(fs.existsSync(paths.DATA_DIR + '/' + APP_ID));
expect(fs.existsSync(paths.APPS_DATA_DIR + '/' + APP_ID));
done();
});
@@ -784,9 +784,9 @@ describe('App installation', function () {
// support newer docker versions
if (data.Volumes) {
expect(data.Volumes['/app/data']).to.eql(paths.DATA_DIR + '/' + APP_ID + '/data');
expect(data.Volumes['/app/data']).to.eql(paths.APPS_DATA_DIR + '/' + APP_ID + '/data');
} else {
expect(data.Mounts.filter(function (mount) { return mount.Destination === '/app/data'; })[0].Source).to.eql(paths.DATA_DIR + '/' + APP_ID + '/data');
expect(data.Mounts.filter(function (mount) { return mount.Destination === '/app/data'; })[0].Source).to.eql(paths.APPS_DATA_DIR + '/' + APP_ID + '/data');
}
done();
@@ -1140,7 +1140,7 @@ describe('App installation', function () {
});
it('uninstalled - volume destroyed', function (done) {
expect(!fs.existsSync(paths.DATA_DIR + '/' + APP_ID));
expect(!fs.existsSync(paths.APPS_DATA_DIR + '/' + APP_ID));
done();
});