Skip to content

Commit

Permalink
feat(oracle): added test for connection descriptor.
Browse files Browse the repository at this point in the history
Co-authored-by: Hasan Jamil
  • Loading branch information
hjamil-24 committed Sep 30, 2022
1 parent 95cb979 commit 418e568
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/integration/dialects/oracle/connection-manager.test.js
@@ -0,0 +1,15 @@
'use strict';

const config = require('../../../config/config.js').oracle;
const Support = require('../../../support');
const dialect = Support.getTestDialect();

if (dialect === 'oracle') {
describe('[Oracle Specific] Connection Manager', () => {
it('connect string authentication using connection Descriptor', async () => {
const connDesc = `(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=${config.host})(PORT=${config.port}))(CONNECT_DATA=(SERVICE_NAME=${config.database})))`;
const sequelize = await Support.getSequelizeInstance(config.database, config.username, config.password, { dialectOptions: { connectString: connDesc } });
await sequelize.authenticate().should.be.ok;
});
});
}

0 comments on commit 418e568

Please sign in to comment.