From dd3a7438101f929138fbedbdc9b0b4c6b55dc652 Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Wed, 4 Oct 2023 13:43:09 +0200 Subject: [PATCH] check if there is an issue with indirect use of credentials --- tests/functions/ACL.cfc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/functions/ACL.cfc b/tests/functions/ACL.cfc index bbbe81b..44c445a 100644 --- a/tests/functions/ACL.cfc +++ b/tests/functions/ACL.cfc @@ -158,14 +158,12 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="s3" { // set path var dir="s3://#arguments.bucketName#"; if(!isEmpty(arguments.objectName)) dir&="/"&arguments.objectName; - debug(dir); - start=getTickCount(); - - Util::deleteIfExists(cred,arguments.bucketName,arguments.objectName); - - assertFalse(S3Exists(arguments.bucketName,arguments.objectName)); - directoryCreate(dir); + Util::deleteIfExists(cred,arguments.bucketName,arguments.objectName); + assertFalse(S3Exists( + bucketName:bucketName, objectName:objectName?:nullValue(), + accessKeyId:cred.ACCESS_KEY_ID, secretAccessKey:cred.SECRET_KEY, host:(isNull(cred.HOST)?nullvalue():cred.HOST))); + directoryCreate(dir); // check inital data if(useS3Function) {