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:
Uğur Tafralı authored and GitHub committed 2026-04-07 21:11:01 -05:00
1 parent caabf46b1c
commit 399a96d70c
3 files changed
+44 -3

No files matched your search

@@ -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));
}