Add route to trigger backup cleaner

This commit is contained in:
Girish Ramakrishnan
2019-04-13 18:09:04 -07:00
parent 74211dd2c9
commit 58625c82a0
4 changed files with 16 additions and 6 deletions
+3 -3
View File
@@ -84,7 +84,7 @@ describe('Backups API', function () {
describe('create', function () {
it('fails due to mising token', function (done) {
superagent.post(SERVER_URL + '/api/v1/backups')
superagent.post(SERVER_URL + '/api/v1/backups/create')
.end(function (error, result) {
expect(result.statusCode).to.equal(401);
done();
@@ -92,7 +92,7 @@ describe('Backups API', function () {
});
it('fails due to wrong token', function (done) {
superagent.post(SERVER_URL + '/api/v1/backups')
superagent.post(SERVER_URL + '/api/v1/backups/create')
.query({ access_token: token.toUpperCase() })
.end(function (error, result) {
expect(result.statusCode).to.equal(401);
@@ -101,7 +101,7 @@ describe('Backups API', function () {
});
it('succeeds', function (done) {
superagent.post(SERVER_URL + '/api/v1/backups')
superagent.post(SERVER_URL + '/api/v1/backups/create')
.query({ access_token: token })
.end(function (error, result) {
expect(result.statusCode).to.equal(202);