Skip to content

Commit

Permalink
Remove duplicate test
Browse files Browse the repository at this point in the history
Signed-off-by: Levko Kravets <[email protected]>
  • Loading branch information
kravets-levko committed Aug 18, 2023
1 parent 1fd0d6e commit 25bf802
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions tests/e2e/staging_ingestion.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
const { expect } = require('chai');
const config = require('./utils/config');
const logger = require('./utils/logger')(config.logger);
const { DBSQLClient } = require('../..');
const fs = require('fs');
const globalConfig = require('../../dist/globalConfig').default;

describe('Staging Test', () => {
it('put staging data and receive it', async () => {
Expand Down Expand Up @@ -32,32 +30,6 @@ describe('Staging Test', () => {
expect(result.toString() === 'Hello World!').to.be.true;
});

it('put staging data and receive it', async () => {
const client = new DBSQLClient();
await client.connect({
host: config.host,
path: config.path,
token: config.token,
});
let tempPath = 'tests/e2e/staging/data';
fs.writeFileSync(tempPath, (data = 'Hello World!'));

let session = await client.openSession({
initialCatalog: config.database[0],
initialSchema: config.database[1],
});
await session.executeStatement(
`PUT '${tempPath}' INTO '/Volumes/${config.database[0]}/${config.database[1]}/e2etests/file1.csv' OVERWRITE`,
{ stagingAllowedLocalPath: ['tests/e2e/staging'] },
);
await session.executeStatement(
`GET '/Volumes/${config.database[0]}/${config.database[1]}/e2etests/file1.csv' TO 'tests/e2e/staging/file'`,
{ stagingAllowedLocalPath: ['tests/e2e/staging'] },
);
let result = fs.readFileSync('tests/e2e/staging/file');
expect(result.toString() === 'Hello World!').to.be.true;
});

it('put staging data and remove it', async () => {
const client = new DBSQLClient();
await client.connect({
Expand Down

0 comments on commit 25bf802

Please sign in to comment.