archives: add eventlog

This commit is contained in:
Girish Ramakrishnan
2024-12-10 11:01:10 +01:00
parent 490840b71d
commit f973536f7f
9 changed files with 34 additions and 13 deletions
+2 -2
View File
@@ -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);
+2
View File
@@ -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() {