Skip to content

feat(cli): validate name length on template create #3823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Sep 1, 2022

This adds a test to validate that template create prints an error
message if called with a template name exceeding the 32-char limit.

Notes to self

To run this test locally:

cd cli && go test -v -count 1 -run TestTemplateCreate/WithParameterExceedingCharLimit

It doesn't look like my attempt at TDD with this is working. The test should fail so I'll need to fix that first.

@jsjoeio jsjoeio linked an issue Sep 1, 2022 that may be closed by this pull request
@jsjoeio jsjoeio changed the title feat(cli): add template create validation test feat(cli): validate name length on template create Sep 1, 2022
@jsjoeio jsjoeio self-assigned this Sep 1, 2022
@jsjoeio jsjoeio marked this pull request as ready for review September 2, 2022 17:42
@jsjoeio jsjoeio requested a review from a team September 2, 2022 17:42
This adds a test to validate that `template create` prints an error
message if called with a template name exceeding the 32-char limit.
This adds a validation step to ensure the template name is less than 32
characters.
@jsjoeio jsjoeio force-pushed the 3349-coder-template-create-doesnt-explain-validation-error branch from 16a7da5 to cfb2f40 Compare September 2, 2022 19:54
@jsjoeio jsjoeio marked this pull request as draft September 2, 2022 21:04
@jsjoeio jsjoeio marked this pull request as ready for review September 2, 2022 22:31
@jsjoeio jsjoeio requested a review from coadler September 2, 2022 22:31
@jsjoeio jsjoeio enabled auto-merge (squash) September 6, 2022 16:02
@jsjoeio jsjoeio merged commit 1359850 into main Sep 7, 2022
@jsjoeio jsjoeio deleted the 3349-coder-template-create-doesnt-explain-validation-error branch September 7, 2022 20:01
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.

coder template create doesn't explain validation error
2 participants