25
25
public class PartitionServiceMetadataTest {
26
26
27
27
private static final List <String > AWS_PARTITION_GLOBAL_SERVICES = Arrays .asList (
28
- "budgets" , "cloudfront" , "iam" , "route53" , "waf" );
28
+ "budgets" , "cloudfront" , "iam" , "route53" , "shield" , " waf" );
29
29
30
30
private static final List <String > AWS_PARTITION_REGIONALIZED_SERVICES = Arrays .asList (
31
31
"acm" , "apigateway" , "application-autoscaling" , "appstream2" , "autoscaling" , "batch" ,
@@ -37,7 +37,7 @@ public class PartitionServiceMetadataTest {
37
37
"iot" , "kinesis" , "kinesisanalytics" , "kms" , "lambda" , "lightsail" , "logs" , "machinelearning" ,
38
38
"marketplacecommerceanalytics" , "metering.marketplace" , "mobileanalytics" , "monitoring" , "opsworks" ,
39
39
"opsworks-cm" , "pinpoint" , "polly" , "rds" , "redshift" , "rekognition" , "route53domains" , "s3" ,
40
- "sdb" , "servicecatalog" , "shield" , " sms" , "snowball" , "sns" , "sqs" , "ssm" , "states" , "storagegateway" ,
40
+ "sdb" , "servicecatalog" , "sms" , "snowball" , "sns" , "sqs" , "ssm" , "states" , "storagegateway" ,
41
41
"streams.dynamodb" , "sts" , "support" , "swf" , "waf-regional" , "workspaces" , "xray" );
42
42
43
43
private static final List <String > AWS_CN_PARTITION_GLOBAL_SERVICES = Arrays .asList ("iam" );
@@ -58,32 +58,38 @@ public class PartitionServiceMetadataTest {
58
58
59
59
@ Test
60
60
public void endpointFor_ReturnsEndpoint_ForAllRegionalizedServices_When_AwsPartition () {
61
- AWS_PARTITION_REGIONALIZED_SERVICES .forEach (s -> ServiceMetadata .of (s ).endpointFor (Region .US_EAST_1 ));
61
+ AWS_PARTITION_REGIONALIZED_SERVICES .forEach (
62
+ s -> assertThat (ServiceMetadata .of (s ).endpointFor (Region .US_EAST_1 )).isNotNull ());
62
63
}
63
64
64
65
@ Test
65
66
public void endpointFor_ReturnsEndpoint_ForAllGlobalServices_When_AwsGlobalRegion () {
66
- AWS_PARTITION_GLOBAL_SERVICES .forEach (s -> ServiceMetadata .of (s ).endpointFor (Region .AWS_GLOBAL ));
67
+ AWS_PARTITION_GLOBAL_SERVICES .forEach (
68
+ s -> assertThat (ServiceMetadata .of (s ).endpointFor (Region .AWS_GLOBAL )).isNotNull ());
67
69
}
68
70
69
71
@ Test
70
72
public void endpointFor_ReturnsEndpoint_ForAllRegionalizedServices_When_AwsCnPartition () {
71
- AWS_CN_PARTITION_REGIONALIZED_SERVICES .forEach (s -> ServiceMetadata .of (s ).endpointFor (Region .CN_NORTH_1 ));
73
+ AWS_CN_PARTITION_REGIONALIZED_SERVICES .forEach (
74
+ s -> assertThat (ServiceMetadata .of (s ).endpointFor (Region .CN_NORTH_1 )).isNotNull ());
72
75
}
73
76
74
77
@ Test
75
78
public void endpointFor_ReturnsEndpoint_ForAllGlobalServices_When_AwsCnGlobalRegion () {
76
- AWS_CN_PARTITION_GLOBAL_SERVICES .forEach (s -> ServiceMetadata .of (s ).endpointFor (Region .AWS_CN_GLOBAL ));
79
+ AWS_CN_PARTITION_GLOBAL_SERVICES .forEach (
80
+ s -> assertThat (ServiceMetadata .of (s ).endpointFor (Region .AWS_CN_GLOBAL )).isNotNull ());
77
81
}
78
82
79
83
@ Test
80
84
public void endpointFor_ReturnsEndpoint_ForAllRegionalizedServices_When_AwsUsGovPartition () {
81
- AWS_US_GOV_PARTITION_REGIONALIZED_SERVICES .forEach (s -> ServiceMetadata .of (s ).endpointFor (Region .US_GOV_WEST_1 ));
85
+ AWS_US_GOV_PARTITION_REGIONALIZED_SERVICES .forEach (
86
+ s -> assertThat (ServiceMetadata .of (s ).endpointFor (Region .US_GOV_WEST_1 )).isNotNull ());
82
87
}
83
88
84
89
@ Test
85
90
public void endpointFor_ReturnsEndpoint_ForAllGlobalServices_When_AwsUsGovGlobalRegion () {
86
- AWS_US_GOV_PARTITION_GLOBAL_SERVICES .forEach (s -> ServiceMetadata .of (s ).endpointFor (Region .AWS_US_GOV_GLOBAL ));
91
+ AWS_US_GOV_PARTITION_GLOBAL_SERVICES .forEach (
92
+ s -> assertThat (ServiceMetadata .of (s ).endpointFor (Region .AWS_US_GOV_GLOBAL )).isNotNull ());
87
93
}
88
94
89
95
@ Test
0 commit comments