Added set-n command to set number attributes

Also added the ability to set subattribes of maps
This commit is contained in:
Leon Mika 2022-07-06 13:03:19 +10:00
parent ed577dc53e
commit e35855f05c
11 changed files with 223 additions and 194 deletions

View file

@ -60,11 +60,13 @@ func SetupTestTable(t *testing.T, testData []TestData) (*dynamodb.Client, func()
}
}
return dynamoClient, func() {
t.Cleanup(func() {
for _, table := range testData {
dynamoClient.DeleteTable(ctx, &dynamodb.DeleteTableInput{
TableName: aws.String(table.TableName),
})
}
}
})
return dynamoClient, func() {}
}