-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ddb account id metric test (#3051)
Basically, some e2e tests do not use the latest SDK version and therefore latest changes in the endpoint rule set file are not present there, which makes some of tests depending on those latest changes to fail. In this specific case it failed when checking if an account id was resolved or not in dynamodb, because the endpoint ruleset file did not contain the AccountId parameter. For fixing this I use a custom endpoint provider where the ruleset file contains the needed parameter and rule.
- Loading branch information
1 parent
5a62003
commit 50c70d9
Showing
5 changed files
with
836 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
tests/fixtures/aws_client_test/dynamodb/2012-08-10/api-2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"version":"2.0", | ||
"metadata":{ | ||
"apiVersion":"2012-08-10", | ||
"endpointPrefix":"dynamodb", | ||
"jsonVersion":"1.0", | ||
"protocol":"json", | ||
"protocols":["json"], | ||
"serviceAbbreviation":"DynamoDB", | ||
"serviceFullName":"Amazon DynamoDB", | ||
"serviceId":"DynamoDB", | ||
"signatureVersion":"v4", | ||
"targetPrefix":"DynamoDB_20120810", | ||
"uid":"dynamodb-2012-08-10", | ||
"auth":["aws.auth#sigv4"] | ||
}, | ||
"operations": { | ||
"ListTables": { | ||
"name": "ListTables", | ||
"http": { | ||
"method": "POST", | ||
"requestUri": "/" | ||
}, | ||
"input": { | ||
"shape": "ListTablesInput" | ||
}, | ||
"output": { | ||
"shape": "ListTablesOutput" | ||
}, | ||
"errors": [ | ||
{ | ||
"shape": "InternalServerError" | ||
} | ||
], | ||
"endpointdiscovery": { | ||
} | ||
} | ||
}, | ||
"shapes":{ | ||
"InternalServerError":{ | ||
"type":"structure", | ||
"members":{ | ||
"message":{"shape":"ErrorMessage"} | ||
}, | ||
"exception":true, | ||
"fault":true | ||
}, | ||
"ErrorMessage":{"type":"string"}, | ||
"ListTablesInput":{ | ||
"type":"structure", | ||
"members":{ | ||
"ExclusiveStartTableName":{"shape":"TableName"}, | ||
"Limit":{"shape":"ListTablesInputLimit"} | ||
} | ||
}, | ||
"ListTablesInputLimit":{ | ||
"type":"integer", | ||
"max":100, | ||
"min":1 | ||
}, | ||
"ListTablesOutput":{ | ||
"type":"structure", | ||
"members":{ | ||
"TableNames":{"shape":"TableNameList"}, | ||
"LastEvaluatedTableName":{"shape":"TableName"} | ||
} | ||
}, | ||
"TableName":{ | ||
"type":"string", | ||
"max":255, | ||
"min":3, | ||
"pattern":"[a-zA-Z0-9_.-]+" | ||
}, | ||
"TableNameList":{ | ||
"type":"list", | ||
"member":{"shape":"TableName"} | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/fixtures/aws_client_test/dynamodb/2012-08-10/api-2.json.php
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.