awslabs / dynein

DynamoDB CLI written in Rust.
https://github.com/awslabs/dynein
Apache License 2.0
360 stars 37 forks source link

test: add integration tests for put #232

Closed tmyoda closed 4 months ago

tmyoda commented 4 months ago

Issue #, if available:

143

Description of changes: This pull request adds integration tests for put command.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

tmyoda commented 4 months ago

I have added 5 tests based on your review and internal meetings:

From internal meetings.

Check the results of multiple put invocations for different primary keys.

Check the results of multiple put invocations for the same primary key.

I have also added these tests to make sure that put replaces the existing item and for different sort key: