Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,13 @@ public static Collection<TestCase> testCases() {
.setExpectedSigningServiceName("s3")
.setExpectedSigningRegion(Region.US_WEST_2));

//FIXME: The ruleset is currently broken for this test case. The provider is not preserving the path part
// cases.add(new TestCase().setCaseName("access point with http, path, query, and port")
// .setGetObjectBucketName("arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint")
// .setEndpointUrl("http://beta.example.com:1234/path?foo=bar")
// .setClientRegion(Region.US_WEST_2)
// .setExpectedEndpoint("http://myendpoint-123456789012.beta.example.com:1234/path/object?foo=bar")
// .setExpectedSigningServiceName("s3")
// .setExpectedSigningRegion(Region.US_WEST_2));
cases.add(new TestCase().setCaseName("access point with http, path, query, and port")
.setGetObjectBucketName("arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint")
.setEndpointUrl("http://beta.example.com:1234/path?foo=bar")
.setClientRegion(Region.US_WEST_2)
.setExpectedEndpoint("http://myendpoint-123456789012.beta.example.com:1234/path/object?foo=bar")
.setExpectedSigningServiceName("s3")
.setExpectedSigningRegion(Region.US_WEST_2));

cases.add(new TestCase().setCaseName("outposts access point")
.setGetObjectBucketName("arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint")
Expand Down Expand Up @@ -313,15 +312,14 @@ public static Collection<TestCase> testCases() {
.setExpectedSigningServiceName("s3")
.setExpectedSigningRegion(Region.US_WEST_2));

//FIXME: The ruleset is currently broken for this test case. The provider is not preserving the path part
// cases.add(new TestCase().setCaseName("access point with http, path, query, port, different arn region, and arn region enabled")
// .setGetObjectBucketName("arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint")
// .setEndpointUrl("http://accesspoint.vpce-123-abc.s3.us-west-2.vpce.amazonaws.com:1234/path?foo=bar")
// .setS3Configuration(c -> c.useArnRegionEnabled(true))
// .setClientRegion(Region.EU_WEST_1)
// .setExpectedEndpoint("http://myendpoint-123456789012.accesspoint.vpce-123-abc.s3.us-west-2.vpce.amazonaws.com:1234/path/object?foo=bar")
// .setExpectedSigningServiceName("s3")
// .setExpectedSigningRegion(Region.US_WEST_2));
cases.add(new TestCase().setCaseName("access point with http, path, query, port, different arn region, and arn region enabled")
.setGetObjectBucketName("arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint")
.setEndpointUrl("http://accesspoint.vpce-123-abc.s3.us-west-2.vpce.amazonaws.com:1234/path?foo=bar")
.setS3Configuration(c -> c.useArnRegionEnabled(true))
.setClientRegion(Region.EU_WEST_1)
.setExpectedEndpoint("http://myendpoint-123456789012.accesspoint.vpce-123-abc.s3.us-west-2.vpce.amazonaws.com:1234/path/object?foo=bar")
.setExpectedSigningServiceName("s3")
.setExpectedSigningRegion(Region.US_WEST_2));

cases.add(new TestCase().setCaseName("outposts access point with dual stack enabled via s3 config")
.setGetObjectBucketName("arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint")
Expand Down