mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix: include ProvisionedThroughput in DynamoDB GSI responses (#273)
DescribeTable responses were missing ProvisionedThroughput attributes on Global Secondary Indexes. Updated the JSON handler to extract and set ReadCapacityUnits and WriteCapacityUnits from the response payload for both DescribeTable and Create operations.
This commit is contained in:
1 parent
caabf46b1c
commit
399a96d70c
3 files changed
+44
-3
No files matched your search
+6
@@ -603,6 +603,12 @@ class DynamoDbIntegrationTest {
|
||||
.body("Table.GlobalSecondaryIndexes[0].IndexName", equalTo("TestGsi"))
|
||||
.body("Table.GlobalSecondaryIndexes[0].IndexStatus", equalTo("ACTIVE"))
|
||||
.body("Table.GlobalSecondaryIndexes[0].IndexArn", containsString("/index/TestGsi"))
|
||||
.body("Table.GlobalSecondaryIndexes[0].ProvisionedThroughput", notNullValue())
|
||||
.body("Table.GlobalSecondaryIndexes[0].ProvisionedThroughput.ReadCapacityUnits", equalTo(0))
|
||||
.body("Table.GlobalSecondaryIndexes[0].ProvisionedThroughput.WriteCapacityUnits", equalTo(0))
|
||||
.body("Table.GlobalSecondaryIndexes[0].ProvisionedThroughput.NumberOfDecreasesToday", equalTo(0))
|
||||
.body("Table.GlobalSecondaryIndexes[0].IndexSizeBytes", equalTo(0))
|
||||
.body("Table.GlobalSecondaryIndexes[0].ItemCount", equalTo(0))
|
||||
.body("Table.AttributeDefinitions.size()", equalTo(3));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user