2022-01-07 12:07:49 +05:30
|
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
|
//
|
2026-01-05 13:33:45 +05:30
|
|
|
// Copyright (C) 2013 - 2026, The pgAdmin Development Team
|
2022-01-07 12:07:49 +05:30
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
|
//
|
|
|
|
|
//////////////////////////////////////////////////////////////
|
|
|
|
|
|
2023-10-23 17:43:17 +05:30
|
|
|
|
2022-01-07 12:07:49 +05:30
|
|
|
import MaintenanceSchema, {getVacuumSchema} from '../../../pgadmin/tools/maintenance/static/js/maintenance.ui';
|
2022-01-28 17:20:34 +05:30
|
|
|
import {getCreateView} from '../genericFunctions';
|
2022-01-07 12:07:49 +05:30
|
|
|
|
|
|
|
|
describe('MaintenanceSchema', ()=>{
|
|
|
|
|
|
2023-10-23 17:43:17 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-07 12:07:49 +05:30
|
|
|
let backupSchemaObj = new MaintenanceSchema(
|
|
|
|
|
()=> getVacuumSchema(),
|
|
|
|
|
{
|
|
|
|
|
nodeInfo: {schema: {label: 'public'}, server: {version: 90400}}
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
2023-10-23 17:43:17 +05:30
|
|
|
it('start maintenance', async ()=>{
|
|
|
|
|
await getCreateView(backupSchemaObj);
|
2022-01-07 12:07:49 +05:30
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|