Skip to content

Commit

Permalink
Remove console logs
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Aug 14, 2023
1 parent 1cd1f88 commit 3ed3faf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/jest_integration/jwt_auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ describe('start OpenSearch Dashboards server', () => {
}
);
const responseBody = (getConfigResponse.payload as Buffer).toString();
console.log("responseBody: " + responseBody);
config = JSON.parse(responseBody).config;
const jwtConfig = {
http_enabled: true,
Expand All @@ -145,19 +144,16 @@ describe('start OpenSearch Dashboards server', () => {
config.dynamic!.authc!.jwt_auth_domain = jwtConfig;
config.dynamic!.authc!.basic_internal_auth_domain.http_authenticator.challenge = false;
config.dynamic!.http!.anonymous_auth_enabled = false;
console.log("config: " + JSON.stringify(config, null, 2));
await wreck.put('https://localhost:9200/_plugins/_security/api/securityconfig/config', {
payload: config,
rejectUnauthorized: false,
headers: {
'Content-Type': 'application/json',
'Authorization': ADMIN_CREDENTIALS,
authorization: ADMIN_CREDENTIALS,
},
});
} catch (error) {
console.log('Got an error while updating security config!!', error.stack);
console.log(error);
console.log(error.message)
fail(error);
}
});
Expand Down

0 comments on commit 3ed3faf

Please sign in to comment.