Remove backup download code

This commit is contained in:
Johannes Zellner
2017-04-22 22:17:29 +02:00
parent 8c011ea9b0
commit a7d7935451
8 changed files with 2 additions and 198 deletions

View File

@@ -213,22 +213,6 @@ describe('Storage', function () {
});
});
it('cannot get backup download stream from deleted backup', function (done) {
filesystem.getDownloadStream(gBackupConfig, gBackupId_1, function (error) {
expect(error).to.be.an('object');
expect(error.reason).to.equal(BackupsError.NOT_FOUND);
done();
});
});
it('can get backup download stream', function (done) {
filesystem.getDownloadStream(gBackupConfig, gBackupId_2, function (error, result) {
expect(error).to.be(null);
expect(result).to.be.a(stream.Readable);
done();
});
});
it('can remove backup copy', function (done) {
filesystem.removeBackup(gBackupConfig, gBackupId_2, [], done);
});
@@ -349,22 +333,6 @@ describe('Storage', function () {
});
});
it('cannot get backup download stream from deleted backup', function (done) {
s3.getDownloadStream(gBackupConfig, gBackupId_1, function (error) {
expect(error).to.be.an('object');
expect(error.reason).to.equal(BackupsError.NOT_FOUND);
done();
});
});
it('can get backup download stream', function (done) {
s3.getDownloadStream(gBackupConfig, gBackupId_2, function (error, result) {
expect(error).to.be(null);
expect(result).to.be.a(stream.Readable);
done();
});
});
it('can remove backup copy', function (done) {
s3.removeBackup(gBackupConfig, gBackupId_2, [], done);
});