From 622a57fc26f5befe28915c14ba70dfc71a35f2ba Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Tue, 1 Dec 2020 09:01:42 +0000 Subject: [PATCH] Added missing canary test present in v3 tests - this test was present in the v3 test suite but not in the canary ones - given v3 == canary currently, these tests should essentially be the same - copied the test over --- test/regression/api/canary/admin/db_spec.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/regression/api/canary/admin/db_spec.js b/test/regression/api/canary/admin/db_spec.js index 689bf8cb8a..8a39de4112 100644 --- a/test/regression/api/canary/admin/db_spec.js +++ b/test/regression/api/canary/admin/db_spec.js @@ -106,6 +106,14 @@ describe('DB API', function () { }); }); + it('fails when triggering an export from unknown filename ', function () { + return request.get(localUtils.API.getApiQuery('db/?filename=this_file_is_not_here.json')) + .set('Origin', config.get('url')) + .set('Accept', 'application/json') + .expect('Content-Type', /json/) + .expect(404); + }); + it('import should fail without file', function () { return request.post(localUtils.API.getApiQuery('db/')) .set('Origin', config.get('url'))