Skip to content

chore(storage): update unit test output to match input options#1284

Merged
mergify[bot] merged 4 commits intoaws:mainlinefrom
bvtujo:storage/fix-tests
Aug 17, 2020
Merged

chore(storage): update unit test output to match input options#1284
mergify[bot] merged 4 commits intoaws:mainlinefrom
bvtujo:storage/fix-tests

Conversation

@bvtujo
Copy link
Copy Markdown
Contributor

@bvtujo bvtujo commented Aug 17, 2020

Previously, unit test mocks for Ask() returned values like "KeyName:S" when prompting for a partition key, sort key, or alternate sort key. This unit test updates the tests to match the actual behavior of the CLI.

It also expands unit test coverage of the validate() method to ensure errors are correctly caught.

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

@bvtujo bvtujo requested a review from a team as a code owner August 17, 2020 19:48
@bvtujo bvtujo requested a review from kohidave August 17, 2020 19:48
@bvtujo bvtujo changed the title chore(storage): Update unit test output to match input options. chore(storage): update unit test output to match input options Aug 17, 2020
@bvtujo bvtujo added the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label Aug 17, 2020
@bvtujo
Copy link
Copy Markdown
Contributor Author

bvtujo commented Aug 17, 2020

Investigating why this has merge conflicts.

also rename variables to hopefully reduce such conflicts in the future
@bvtujo bvtujo removed the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label Aug 17, 2020
@mergify mergify bot merged commit d3801ba into aws:mainline Aug 17, 2020
thrau pushed a commit to localstack/copilot-cli-local that referenced this pull request Dec 9, 2022
)

<!-- Provide summary of changes -->
Previously, unit test mocks for `Ask()` returned values like "KeyName:S" when prompting for a partition key, sort key, or alternate sort key. This unit test updates the tests to match the actual behavior of the CLI. 

It also expands unit test coverage of the validate() method to ensure errors are correctly caught. 

<!-- Issue number, if available. E.g. "Fixes aws#31", "Addresses aws#42, 77" -->

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants