Skip to content

Commit

Permalink
Removed Logging
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <[email protected]>
  • Loading branch information
nhtruong committed Jan 30, 2024
1 parent 17b8436 commit 79d952c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/integration/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@
function strongPasswordRequired() {
// OpenSearch 2.12.X and later require strong passwords
const version = process.env.OPENSEARCH_VERSION;
console.log('OPENSEARCH_VERSION', version);
if (!version || version === 'latest') return true;
const [major, minor, _] = version.split('.').map((v) => parseInt(v, 10));
if (major > 2) return true;
return major === 2 && minor >= 12;
}

function createSecuredClient() {
console.log(strongPasswordRequired() ? 'myStrongPassword123!' : 'admin');
const { Client } = require('../../');
return new Client({
ssl: {
Expand Down

0 comments on commit 79d952c

Please sign in to comment.