@@ -47,13 +47,20 @@ describe('region_config.js', function() {
47
47
expect ( service . endpoint . host ) . to . equal ( 'iam.cn-north-1.amazonaws.com.cn' ) ;
48
48
} ) ;
49
49
50
- it ( 'uses "global" endpoint for Route53 in cn-north-1' , function ( ) {
51
- var service = new AWS . Route53 ( {
52
- region : 'cn-north-1'
50
+ [
51
+ [ 'cn-north-1' , 'cn-northwest-1' , 'route53.amazonaws.com.cn' ] ,
52
+ [ 'us-gov-west-1' , 'us-gov-west-1' , 'route53.us-gov.amazonaws.com' ] ,
53
+ [ 'us-iso-west-1' , 'us-iso-east-1' , 'route53.c2s.ic.gov' ] ,
54
+ [ 'us-isob-west-1' , 'us-isob-east-1' , 'route53.sc2s.sgov.gov' ] ,
55
+ ] . forEach ( function ( [ region , signingRegion , endpoint ] ) {
56
+ it ( 'uses "global" endpoint for Route53 in ' + region , function ( ) {
57
+ var service = new AWS . Route53 ( {
58
+ region
59
+ } ) ;
60
+ expect ( service . isGlobalEndpoint ) . to . equal ( true ) ;
61
+ expect ( service . signingRegion ) . to . equal ( signingRegion ) ;
62
+ expect ( service . endpoint . host ) . to . equal ( endpoint ) ;
53
63
} ) ;
54
- expect ( service . isGlobalEndpoint ) . to . equal ( true ) ;
55
- expect ( service . signingRegion ) . to . equal ( 'cn-northwest-1' ) ;
56
- expect ( service . endpoint . host ) . to . equal ( 'route53.amazonaws.com.cn' ) ;
57
64
} ) ;
58
65
59
66
it ( 'enables signature version 4 signing in cn-*' , function ( ) {
0 commit comments