Skip to content

Commit

Permalink
Partition endpoint test fixes (#1829)
Browse files Browse the repository at this point in the history
* Fix partition tests due to updated endpoints file

* Add changelog
  • Loading branch information
howardlopez committed Jun 26, 2019
1 parent 2dd70c3 commit ad2f5c7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 25 deletions.
7 changes: 7 additions & 0 deletions .changes/nextrelease/partition_endpoint_test_fixes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"type": "feature",
"category": "Test",
"description": "Updated endpoints file with corresponding updated partition tests."
}
]
25 changes: 5 additions & 20 deletions src/data/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -1110,13 +1110,6 @@
"eu-west-1" : { },
"eu-west-2" : { },
"eu-west-3" : { },
"local" : {
"credentialScope" : {
"region" : "us-east-1"
},
"hostname" : "localhost:8000",
"protocols" : [ "http" ]
},
"sa-east-1" : { },
"us-east-1" : { },
"us-east-1-fips" : {
Expand Down Expand Up @@ -1697,12 +1690,6 @@
},
"kms" : {
"endpoints" : {
"ProdFips" : {
"credentialScope" : {
"region" : "ca-central-1"
},
"hostname" : "kms-fips.ca-central-1.amazonaws.com"
},
"ap-east-1" : { },
"ap-northeast-1" : { },
"ap-northeast-2" : { },
Expand Down Expand Up @@ -2965,13 +2952,6 @@
"eu-west-1" : { },
"eu-west-2" : { },
"eu-west-3" : { },
"local" : {
"credentialScope" : {
"region" : "us-east-1"
},
"hostname" : "localhost:8000",
"protocols" : [ "http" ]
},
"sa-east-1" : { },
"us-east-1" : { },
"us-east-1-fips" : {
Expand Down Expand Up @@ -3656,6 +3636,11 @@
"cn-northwest-1" : { }
}
},
"support" : {
"endpoints" : {
"aws-cn-global" : { }
}
},
"swf" : {
"endpoints" : {
"cn-north-1" : { },
Expand Down
2 changes: 1 addition & 1 deletion src/data/endpoints.json.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/ClientResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ public function partitionReturnProvider()
[
['service' => 'dynamodb', 'region' => 'local'] + $invocationArgs,
'signing_region',
'us-east-1',
'local',
],
];
}
Expand Down
6 changes: 3 additions & 3 deletions tests/Endpoint/PartitionEndpointProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ public function endpointProvider()
[
['region' => 'local', 'service' => 'dynamodb', 'scheme' => 'http'],
[
'endpoint' => 'http://localhost:8000',
'endpoint' => 'http://dynamodb.local.amazonaws.com',
'signatureVersion' => 'v4',
'signingRegion' => 'us-east-1',
'signingRegion' => 'local',
'signingName' => 'dynamodb',
],
],
Expand Down Expand Up @@ -465,7 +465,7 @@ public function knownEndpointProvider()
[$partitions, 'eu-west-1', 'swf', 'swf.eu-west-1.amazonaws.com'],
[$partitions, 'eu-west-1', 'workspaces', 'workspaces.eu-west-1.amazonaws.com'],
[$partitions, 'fips-us-gov-west-1', 's3', 's3-fips-us-gov-west-1.amazonaws.com'],
[$partitions, 'local', 'dynamodb', 'localhost:8000'],
[$partitions, 'local', 'dynamodb', 'dynamodb.local.amazonaws.com'],
[$partitions, 's3-external-1', 's3', 's3-external-1.amazonaws.com'],
[$partitions, 'sa-east-1', 'autoscaling', 'autoscaling.sa-east-1.amazonaws.com'],
[$partitions, 'sa-east-1', 'cloudformation', 'cloudformation.sa-east-1.amazonaws.com'],
Expand Down

0 comments on commit ad2f5c7

Please sign in to comment.