From f1032a7a5af00e76494d1eccf4844566c6f2d4b7 Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Wed, 8 Nov 2023 20:32:01 +0100 Subject: [PATCH] improve test case --- tests/general/BigBucket.cfc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/general/BigBucket.cfc b/tests/general/BigBucket.cfc index cb6f60e..053a0cc 100644 --- a/tests/general/BigBucket.cfc +++ b/tests/general/BigBucket.cfc @@ -47,6 +47,22 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="s3" { assertTrue( executionTime<2000 ); assertEquals(10000, records); // 10000] but received [861 }); + + + it(title="checking with S3Exists", skip=Util::isAWSNotSupported(), body = function( currentSpec ) { + var cred=Util::getAWSCredentials() + + var executionTime=getTickCount(); + S3Exists( + bucketName:bucketName, + accessKeyId:cred.ACCESS_KEY_ID, secretAccessKey:cred.SECRET_KEY, host:(isNull(cred.HOST)?nullvalue():cred.HOST)); + var executionTime=getTickCount()-executionTime; + + + assertTrue( executionTime<500 ); + assertEquals(10000, executionTime); + }); + }); }