From 7d7d91e105c60793373b9a2b255397669ba177a9 Mon Sep 17 00:00:00 2001 From: williamlardier Date: Mon, 15 Apr 2024 14:54:06 +0200 Subject: [PATCH] s --- config.json | 2 +- tests/functional/aws-node-sdk/test/quota/tooling.js | 7 ++++++- tests/functional/config.json | 4 ++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index 3a44b36aed..fe0aaa2ad9 100644 --- a/config.json +++ b/config.json @@ -60,7 +60,7 @@ }, "clusters": 1, "log": { - "logLevel": "info", + "logLevel": "trace", "dumpLevel": "error" }, "healthChecks": { diff --git a/tests/functional/aws-node-sdk/test/quota/tooling.js b/tests/functional/aws-node-sdk/test/quota/tooling.js index afd4ec432c..cb6b186373 100644 --- a/tests/functional/aws-node-sdk/test/quota/tooling.js +++ b/tests/functional/aws-node-sdk/test/quota/tooling.js @@ -1,6 +1,7 @@ const fetch = require('node-fetch'); const AWS = require('aws-sdk'); const xml2js = require('xml2js'); +const memCredentials = require('../../lib/json/mem_credentials.json'); const sendRequest = async (method, host, path, body = '') => new Promise(async (resolve, reject) => { @@ -18,7 +19,11 @@ const sendRequest = async (method, host, path, body = '') => request.region = 'us-east-1'; const signer = new AWS.Signers.V4(request, service); - signer.addAuthorization(AWS.config.credentials, new Date()); + const _memCredentials = memCredentials.default; + const accessKeyId = AWS.config.credentials?.accessKeyId || _memCredentials.accessKey; + const secretAccessKey = AWS.config.credentials?.secretAccessKey || _memCredentials.secretKey; + const credentials = new AWS.Credentials(accessKeyId, secretAccessKey); + signer.addAuthorization(credentials, new Date()); const url = `http://${host}${path}`; const options = { diff --git a/tests/functional/config.json b/tests/functional/config.json index 24e61986f5..78c7aebfd1 100644 --- a/tests/functional/config.json +++ b/tests/functional/config.json @@ -6,5 +6,9 @@ "localCache": { "host": "127.0.0.1", "port": 6379 + }, + "log": { + "logLevel": "trace", + "dumpLevel": "error" } }