From 134c48433fbfd5a706355fe61fe489e5132182f0 Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Fri, 6 Oct 2023 10:22:27 +0200 Subject: [PATCH] extend Metadata test case --- tests/functions/S3GetMetadata.cfc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/functions/S3GetMetadata.cfc b/tests/functions/S3GetMetadata.cfc index 2d4a64d..780df4f 100644 --- a/tests/functions/S3GetMetadata.cfc +++ b/tests/functions/S3GetMetadata.cfc @@ -47,11 +47,14 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="s3" { assertEquals(bucketName, meta.bucketName); assertEquals(objectName, meta.objectName); - - var meta=S3GetMetadata( - path:path, - accessKeyId:cred.ACCESS_KEY_ID, secretAccessKey:cred.SECRET_KEY, host:(isNull(cred.HOST)?nullvalue():cred.HOST)); - + try { + var meta=S3GetMetadata( + path:path, + accessKeyId:cred.ACCESS_KEY_ID, secretAccessKey:cred.SECRET_KEY, host:(isNull(cred.HOST)?nullvalue():cred.HOST)); + } + catch(e) { + throw path; + } assertEquals(bucketName, meta.bucketName); assertEquals(objectName, meta.objectName);