mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
test(partition): positive China Lambda layer test, partitions.md gaps, drop AwsRegions.ALL (#5023)
Close-out items of the multi-partition initiative (#4272): - Lambda layers were only tested across partitions negatively. A layer published under a cn-north-1 scope now has its own test: the returned ARN is arn:aws-cn:lambda:cn-north-1:..., GetLayerVersionByArn resolves it, and a China function attaches it (BL-104). - partitions.md names FLOCI_PARTITIONS_ALLOW_UNKNOWN_REGIONS under Related and lists two more unsourced values: the EKS Pod Identity token audience outside the commercial partition, and the exact error AWS WAF returns for the CLOUDFRONT scope where the partition has no CloudFront (BL-105). - AwsRegions.ALL, the commercial advertised list kept as a deprecated alias during the partition sweep, had no caller left in src/main. It is removed and its three tests call advertised("aws"); the KNOWN_IDS javadoc no longer points at it (BL-106).
This commit is contained in:
1 parent
6deb0d4d2b
commit
6568700e02
6 files changed
+129
-24
No files matched your search
@@ -11,21 +11,15 @@ import java.util.Set;
|
||||
*/
|
||||
public final class AwsRegions {
|
||||
|
||||
/**
|
||||
* The commercial partition's published regions, in botocore order. Callers that serve one
|
||||
* request should prefer {@link #advertised(String)} with the request's partition; this list
|
||||
* is what static, deployment-wide consumers (certificate SANs) enumerate.
|
||||
*/
|
||||
public static final List<String> ALL = advertised(AwsPartitions.COMMERCIAL_ID);
|
||||
|
||||
/**
|
||||
* Every published AWS region id, across all partitions.
|
||||
*
|
||||
* <p>Distinct from {@link #ALL}, and deliberately a superset of it. {@code ALL} is what
|
||||
* this emulator <em>advertises</em> in the commercial partition. {@code KNOWN_IDS} is for
|
||||
* <em>recognising</em> a region id that a client wrote, most importantly inside a hostname,
|
||||
* where the alternative is a shape like {@code [a-z]{2}-[a-z-]+-\d+} that also matches
|
||||
* perfectly ordinary strings ({@code my-cd-1}, {@code eu-team-2}).
|
||||
* <p>Distinct from {@link #advertised(String)}, and deliberately a superset of every advertised
|
||||
* list: {@code advertised} is what this emulator <em>advertises</em> in one partition, while
|
||||
* {@code KNOWN_IDS} is for <em>recognising</em> a region id that a client wrote, most
|
||||
* importantly inside a hostname, where the alternative is a shape like
|
||||
* {@code [a-z]{2}-[a-z-]+-\d+} that also matches perfectly ordinary strings ({@code my-cd-1},
|
||||
* {@code eu-team-2}).
|
||||
*
|
||||
* <p>It follows botocore's published lists ({@code make aws-data-sync}); the cost of a
|
||||
* region newer than the vendored data is documented at each call site, because it differs
|
||||
|
||||
Reference in new issue
Block a user