From 5998eebdca066082e573c926da3fea2fa8d46cdd Mon Sep 17 00:00:00 2001 From: Quan HL Date: Thu, 2 May 2024 15:48:20 +0700 Subject: [PATCH] wip --- test/aws.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/aws.js b/test/aws.js index f4671a1..04676f7 100644 --- a/test/aws.js +++ b/test/aws.js @@ -21,12 +21,12 @@ test('AWS - create and cache auth token', async(t) => { try { let obj = await getAwsAuthToken(process.env.AWS_ACCESS_KEY_ID, process.env.AWS_SECRET_ACCESS_KEY, process.env.AWS_REGION); //console.log({obj}, 'received auth token from AWS'); - t.ok(obj.securityToken && !obj.servedFromCache, 'successfullY generated auth token from AWS'); + t.ok(obj.sessionToken && !obj.servedFromCache, 'successfullY generated auth token from AWS'); await sleep(250); obj = await getAwsAuthToken(process.env.AWS_ACCESS_KEY_ID, process.env.AWS_SECRET_ACCESS_KEY, process.env.AWS_REGION); //console.log({obj}, 'received auth token from AWS - second request'); - t.ok(obj.securityToken && obj.servedFromCache, 'successfully received access token from cache'); + t.ok(obj.sessionToken && obj.servedFromCache, 'successfully received access token from cache'); await client.flushall(); t.end();