/** * Copyright 2022 Gravwell, Inc. All rights reserved. * * Contact: [legal@gravwell.io](mailto:legal@gravwell.io) * * This software may be modified and distributed under the terms of the MIT * license. See the LICENSE file for details. */ import { TEST_BASE_API_CONTEXT } from '~/tests/config'; import { integrationTest } from '~/tests/test-types'; import { makeBackup } from './backup'; import { makeRestore } from './restore'; xdescribe('backup()', () => { let backup: ReturnType; beforeAll(async () => { backup = makeBackup(await TEST_BASE_API_CONTEXT()); }); let restore: ReturnType; beforeAll(async () => { restore = makeRestore(await TEST_BASE_API_CONTEXT()); }); it( 'Backup then restore', integrationTest(async () => { const f = await backup(); await restore(f); }), ); });