2022-01-07 00:37:49 -06:00
|
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
2023-01-02 00:23:55 -06:00
|
|
|
// Copyright (C) 2013 - 2023, The pgAdmin Development Team
|
2022-01-07 00:37:49 -06:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
import '../helper/enzyme.helper';
|
|
|
|
import { createMount } from '@material-ui/core/test-utils';
|
|
|
|
import MaintenanceSchema, {getVacuumSchema} from '../../../pgadmin/tools/maintenance/static/js/maintenance.ui';
|
2022-01-28 05:50:34 -06:00
|
|
|
import {getCreateView} from '../genericFunctions';
|
2022-01-07 00:37:49 -06:00
|
|
|
|
|
|
|
describe('MaintenanceSchema', ()=>{
|
|
|
|
let mount;
|
|
|
|
beforeAll(()=>{
|
|
|
|
mount = createMount();
|
|
|
|
});
|
|
|
|
|
|
|
|
afterAll(() => {
|
|
|
|
mount.cleanUp();
|
|
|
|
});
|
|
|
|
let backupSchemaObj = new MaintenanceSchema(
|
|
|
|
()=> getVacuumSchema(),
|
|
|
|
{
|
|
|
|
nodeInfo: {schema: {label: 'public'}, server: {version: 90400}}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
it('start maintenance', ()=>{
|
2022-01-28 05:50:34 -06:00
|
|
|
mount(getCreateView(backupSchemaObj));
|
2022-01-07 00:37:49 -06:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|