Merged all 'set-X' commands into a single 'set-attr' command
This commit is contained in:
parent
716adbdce5
commit
9fee17a6a6
9 changed files with 317 additions and 43 deletions
|
|
@ -19,7 +19,7 @@ import (
|
|||
func main() {
|
||||
ctx := context.Background()
|
||||
tableName := "business-addresses"
|
||||
totalItems := 5000
|
||||
totalItems := 500
|
||||
|
||||
cfg, err := config.LoadDefaultConfig(ctx)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ func SetupTestTable(t *testing.T, testData []TestData) (*dynamodb.Client, func()
|
|||
assert.NoError(t, err)
|
||||
|
||||
dynamoClient := dynamodb.NewFromConfig(cfg,
|
||||
dynamodb.WithEndpointResolver(dynamodb.EndpointResolverFromURL("http://localhost:18000")))
|
||||
dynamodb.WithEndpointResolver(dynamodb.EndpointResolverFromURL("http://localhost:4566")))
|
||||
|
||||
for _, table := range testData {
|
||||
_, err = dynamoClient.CreateTable(ctx, &dynamodb.CreateTableInput{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue