Skip to content

Commit

Permalink
extend Metadata test case
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Oct 6, 2023
1 parent 4d3f6f1 commit 134c484
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/functions/S3GetMetadata.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 134c484

Please sign in to comment.