@@ -47,13 +47,20 @@ describe('region_config.js', function() {
4747 expect ( service . endpoint . host ) . to . equal ( 'iam.cn-north-1.amazonaws.com.cn' ) ;
4848 } ) ;
4949
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 ) ;
5363 } ) ;
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' ) ;
5764 } ) ;
5865
5966 it ( 'enables signature version 4 signing in cn-*' , function ( ) {
0 commit comments