From 7edb03a0dd5f3120f372ec7711275c53abba2238 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 19 Sep 2024 17:36:23 +0200 Subject: [PATCH] schema test revert --- .../__tests__/schema-tests.spec.js | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/integration-tests/__tests__/schema-tests.spec.js b/integration-tests/__tests__/schema-tests.spec.js index 8aa4b962..cb823d09 100644 --- a/integration-tests/__tests__/schema-tests.spec.js +++ b/integration-tests/__tests__/schema-tests.spec.js @@ -1,7 +1,7 @@ const stableStringify = require('json-stable-stringify'); const _ = require('lodash'); const fp = require('lodash/fp'); -const { testWrapper, extractConnection } = require('../tools'); +const { testWrapper } = require('../tools'); const engines = require('../engines'); const { runCommandOnDriver } = require('dbgate-tools'); @@ -54,25 +54,6 @@ describe('Schema tests', () => { expect(structure2).toBeNull(); }) ); - - test.each(engines.filter(x => x.supportSchemas).map(engine => [engine.label, engine]))( - 'Table inside schema - %s', - testWrapper(async (conn, driver, engine) => { - await baseStructure(conn, driver); - await runCommandOnDriver(conn, driver, dmp => dmp.createSchema('myschema')); - - const schemaConnDef = { - ...extractConnection(engine), - database: `${conn._database_name}::myschema`, - }; - - const schemaConn = await driver.connect(schemaConnDef); - await driver.query(schemaConn, `create table myschema.myt1 (id int not null primary key)`); - const structure1 = await driver.analyseFull(schemaConn); - expect(structure1.tables.length).toEqual(1); - expect(structure1.tables[0].tableName).toEqual('myt1'); - }) - ); }); describe('Base analyser test', () => {