-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release-1.27.75: Bumping version to 1.27.75 Update to latest models aws_is_virtual_hostable_bucket endpoint provider standard library function (#2762)
- Loading branch information
Showing
11 changed files
with
288 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{ | ||
"category": "``codestar-notifications``", | ||
"description": "This release adds tag based access control for the UntagResource API.", | ||
"type": "api-change" | ||
}, | ||
{ | ||
"category": "``ecs``", | ||
"description": "This release supports new task definition sizes.", | ||
"type": "api-change" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 53 additions & 39 deletions
92
botocore/data/codestar-notifications/2019-10-15/service-2.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
121 changes: 121 additions & 0 deletions
121
tests/unit/data/endpoints/test-cases/is-virtual-hostable-s3-bucket.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
{ | ||
"version": "1.0", | ||
"testCases": [ | ||
{ | ||
"documentation": "bucket-name: isVirtualHostable", | ||
"params": { | ||
"BucketName": "bucket-name" | ||
}, | ||
"expect": { | ||
"endpoint": { | ||
"url": "https://bucket-name.s3.amazonaws.com" | ||
} | ||
} | ||
}, | ||
{ | ||
"documentation": "bucket-with-number-1: isVirtualHostable", | ||
"params": { | ||
"BucketName": "bucket-with-number-1" | ||
}, | ||
"expect": { | ||
"endpoint": { | ||
"url": "https://bucket-with-number-1.s3.amazonaws.com" | ||
} | ||
} | ||
}, | ||
{ | ||
"documentation": "BucketName: not isVirtualHostable (uppercase characters)", | ||
"params": { | ||
"BucketName": "BucketName" | ||
}, | ||
"expect": { | ||
"error": "not isVirtualHostableS3Bucket" | ||
} | ||
}, | ||
{ | ||
"documentation": "bucket_name: not isVirtualHostable (underscore)", | ||
"params": { | ||
"BucketName": "bucket_name" | ||
}, | ||
"expect": { | ||
"error": "not isVirtualHostableS3Bucket" | ||
} | ||
}, | ||
{ | ||
"documentation": "bucket.name: isVirtualHostable (http only)", | ||
"params": { | ||
"BucketName": "bucket.name" | ||
}, | ||
"expect": { | ||
"endpoint": { | ||
"url": "http://bucket.name.s3.amazonaws.com" | ||
} | ||
} | ||
}, | ||
{ | ||
"documentation": "bucket.name.multiple.dots1: isVirtualHostable (http only)", | ||
"params": { | ||
"BucketName": "bucket.name.multiple.dots1" | ||
}, | ||
"expect": { | ||
"endpoint": { | ||
"url": "http://bucket.name.multiple.dots1.s3.amazonaws.com" | ||
} | ||
} | ||
}, | ||
{ | ||
"documentation": "-bucket-name: not isVirtualHostable (leading dash)", | ||
"params": { | ||
"BucketName": "-bucket-name" | ||
}, | ||
"expect": { | ||
"error": "not isVirtualHostableS3Bucket" | ||
} | ||
}, | ||
{ | ||
"documentation": "bucket-name-: not isVirtualHostable (trailing dash)", | ||
"params": { | ||
"BucketName": "bucket-name-" | ||
}, | ||
"expect": { | ||
"error": "not isVirtualHostableS3Bucket" | ||
} | ||
}, | ||
{ | ||
"documentation": "aa: not isVirtualHostable (< 3 characters)", | ||
"params": { | ||
"BucketName": "aa" | ||
}, | ||
"expect": { | ||
"error": "not isVirtualHostableS3Bucket" | ||
} | ||
}, | ||
{ | ||
"documentation": "'a'*64: not isVirtualHostable (> 63 characters)", | ||
"params": { | ||
"BucketName": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" | ||
}, | ||
"expect": { | ||
"error": "not isVirtualHostableS3Bucket" | ||
} | ||
}, | ||
{ | ||
"documentation": ".bucket-name: not isVirtualHostable (leading dot)", | ||
"params": { | ||
"BucketName": ".bucket-name" | ||
}, | ||
"expect": { | ||
"error": "not isVirtualHostableS3Bucket" | ||
} | ||
}, | ||
{ | ||
"documentation": "bucket-name.: not isVirtualHostable (trailing dot)", | ||
"params": { | ||
"BucketName": "bucket-name." | ||
}, | ||
"expect": { | ||
"error": "not isVirtualHostableS3Bucket" | ||
} | ||
} | ||
] | ||
} |
48 changes: 48 additions & 0 deletions
48
tests/unit/data/endpoints/valid-rules/is-virtual-hostable-s3-bucket.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"version": "1.3", | ||
"parameters": { | ||
"BucketName": { | ||
"type": "string", | ||
"required": true, | ||
"documentation": "the input used to test isVirtualHostableS3Bucket" | ||
} | ||
}, | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "aws.isVirtualHostableS3Bucket", | ||
"argv": [ | ||
"{BucketName}", | ||
false | ||
] | ||
} | ||
], | ||
"endpoint": { | ||
"url": "https://{BucketName}.s3.amazonaws.com" | ||
}, | ||
"type": "endpoint" | ||
}, | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "aws.isVirtualHostableS3Bucket", | ||
"argv": [ | ||
"{BucketName}", | ||
true | ||
] | ||
} | ||
], | ||
"endpoint": { | ||
"url": "http://{BucketName}.s3.amazonaws.com" | ||
}, | ||
"type": "endpoint" | ||
}, | ||
{ | ||
"conditions": [ | ||
], | ||
"error": "not isVirtualHostableS3Bucket", | ||
"type": "error" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters