archives: add eventlog
This commit is contained in:
@@ -12,7 +12,7 @@ const archives = require('../../archives.js'),
|
||||
superagent = require('superagent');
|
||||
|
||||
describe('Archives API', function () {
|
||||
const { setup, cleanup, serverUrl, owner } = common;
|
||||
const { setup, cleanup, serverUrl, owner, auditSource } = common;
|
||||
|
||||
const appBackup = {
|
||||
id: null,
|
||||
@@ -35,7 +35,7 @@ describe('Archives API', function () {
|
||||
before(async function () {
|
||||
await setup();
|
||||
appBackup.id = await backups.add(appBackup);
|
||||
archiveId = await archives.add(appBackup.id, { appConfig });
|
||||
archiveId = await archives.add(appBackup.id, { appConfig }, auditSource);
|
||||
});
|
||||
after(cleanup);
|
||||
|
||||
|
||||
@@ -56,6 +56,8 @@ exports = module.exports = {
|
||||
mailFqdn: 'my.test.example.com',
|
||||
|
||||
serverUrl: `http://localhost:${constants.PORT}`,
|
||||
|
||||
auditSource: { ip: '5.6.7.8' }
|
||||
};
|
||||
|
||||
async function setupServer() {
|
||||
|
||||
Reference in New Issue
Block a user