OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
Xpress
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
EndpointV2
/
test-cases
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:17 AM
rwxr-xr-x
📄
aws-region.json
726 bytes
03/05/2025 10:56:42 AM
rw-r--r--
📄
default-values.json
948 bytes
03/05/2025 10:56:42 AM
rw-r--r--
📄
eventbridge.json
1.1 KB
03/05/2025 10:56:42 AM
rw-r--r--
📄
fns.json
1.2 KB
03/05/2025 10:56:42 AM
rw-r--r--
📄
headers.json
490 bytes
03/05/2025 10:56:42 AM
rw-r--r--
📄
is-virtual-hostable-s3-bucket.json
3.78 KB
03/05/2025 10:56:42 AM
rw-r--r--
📄
local-region-override.json
527 bytes
03/05/2025 10:56:42 AM
rw-r--r--
📄
parse-arn.json
4.33 KB
03/05/2025 10:56:42 AM
rw-r--r--
📄
parse-url.json
3.58 KB
03/05/2025 10:56:42 AM
rw-r--r--
📄
partition-fn.json
3.24 KB
03/05/2025 10:56:42 AM
rw-r--r--
📄
substring.json
4.27 KB
03/05/2025 10:56:42 AM
rw-r--r--
📄
uri-encode.json
2.17 KB
03/05/2025 10:56:42 AM
rw-r--r--
📄
valid-hostlabel.json
1.22 KB
03/05/2025 10:56:42 AM
rw-r--r--
Editing: parse-arn.json
Close
{ "version": "1.0", "testCases": [ { "documentation": "arn + region resolution", "params": { "Bucket": "arn:aws:s3:us-east-2:012345678:outpost:op-1234", "Region": "us-east-2" }, "expect": { "endpoint": { "url": "https://op-1234-012345678.us-east-2.amazonaws.com" } } }, { "documentation": "arn, unset outpost id", "params": { "Bucket": "arn:aws:s3:us-east-2:012345678:outpost", "Region": "us-east-2" }, "expect": { "error": "Invalid ARN: outpostId was not set" } }, { "documentation": "arn, empty outpost id (tests that empty strings are handled properly during matching)", "params": { "Bucket": "arn:aws:s3:us-east-2:012345678:outpost::", "Region": "us-east-2" }, "expect": { "error": "OutpostId was empty" } }, { "documentation": "arn, empty outpost id (tests that ARN parsing considers a trailing colon)", "params": { "Bucket": "arn:aws:s3:us-east-2:012345678:outpost:", "Region": "us-east-2" }, "expect": { "error": "OutpostId was empty" } }, { "documentation": "valid hostlabel + region resolution", "params": { "Bucket": "mybucket", "Region": "us-east-2" }, "expect": { "endpoint": { "url": "https://mybucket.us-east-2.amazonaws.com" } } }, { "documentation": "not a valid hostlabel + region resolution", "params": { "Bucket": "99_a", "Region": "us-east-2" }, "expect": { "endpoint": { "url": "https://us-east-2.amazonaws.com/99_a" } } }, { "documentation": "no bucket", "params": { "Region": "us-east-2" }, "expect": { "endpoint": { "url": "https://us-east-2.amazonaws.com" } } }, { "documentation": "a string that is not a 6-part ARN", "params": { "TestCaseId": "invalid-arn", "Bucket": "asdf" }, "expect": { "error": "Test case passed: `asdf` is not a valid ARN." } }, { "documentation": "resource id MUST not be null", "params": { "TestCaseId": "invalid-arn", "Bucket": "arn:aws:s3:us-west-2:123456789012:" }, "expect": { "error": "Test case passed: `arn:aws:s3:us-west-2:123456789012:` is not a valid ARN." } }, { "documentation": "service MUST not be null", "params": { "TestCaseId": "invalid-arn", "Bucket": "arn:aws::us-west-2:123456789012:resource-id" }, "expect": { "error": "Test case passed: `arn:aws::us-west-2:123456789012:resource-id` is not a valid ARN." } }, { "documentation": "partition MUST not be null", "params": { "TestCaseId": "invalid-arn", "Bucket": "arn::s3:us-west-2:123456789012:resource-id" }, "expect": { "error": "Test case passed: `arn::s3:us-west-2:123456789012:resource-id` is not a valid ARN." } }, { "documentation": "region MAY be null", "params": { "TestCaseId": "valid-arn", "Bucket": "arn:aws:s3::123456789012:resource-id" }, "expect": { "error": "Test case passed: A valid ARN was parsed: service: `s3`, partition: `aws, region: ``, accountId: `123456789012`, resource: `resource-id`" } }, { "documentation": "accountId MAY be null", "params": { "TestCaseId": "valid-arn", "Bucket": "arn:aws:s3:us-east-1::resource-id" }, "expect": { "error": "Test case passed: A valid ARN was parsed: service: `s3`, partition: `aws, region: `us-east-1`, accountId: ``, resource: `resource-id`" } }, { "documentation": "accountId MAY be non-numeric", "params": { "TestCaseId": "valid-arn", "Bucket": "arn:aws:s3:us-east-1:abcd:resource-id" }, "expect": { "error": "Test case passed: A valid ARN was parsed: service: `s3`, partition: `aws, region: `us-east-1`, accountId: `abcd`, resource: `resource-id`" } } ] }