Skip to content

Commit

Permalink
Fix S3 unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
belugabehr committed Apr 28, 2023
1 parent 51c3897 commit c351026
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,15 +443,15 @@ public void parseArn_objectLambda_colon() {
@Test
public void parseArn_objectLambda_noName_slash() {
exception.expect(IllegalArgumentException.class);
exception.expectMessage("resource must not be blank or empty");
exception.expectMessage("Malformed ARN: arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/");

S3_ARN_PARSER.convertArn(Arn.fromString("arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/"));
}

@Test
public void parseArn_objectLambda_noName_colon() {
exception.expect(IllegalArgumentException.class);
exception.expectMessage("resource must not be blank or empty");
exception.expectMessage("Malformed ARN: arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint:");

S3_ARN_PARSER.convertArn(Arn.fromString("arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint:"));
}
Expand Down

0 comments on commit c351026

Please sign in to comment.