-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix snake conversion #2842
Fix snake conversion #2842
Conversation
70989e6
to
0de1a84
Compare
}, | ||
{ | ||
name: "should convert to Snake when has numbers", | ||
args: args{"k8s_var"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be camelCase, eg k8sVar
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is a unit test for the snake only,
We can add this test in the testToCamel added here to check as well. I will do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the toSnake tests should be testing from camelCase to snake_case I think, I only see tests that are doing snake_case -> snake_case
0de1a84
to
2aef71f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
New changes are detected. LGTM label has been removed. |
The tests in I think better test would be:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@camilamacedo86 I think we need to change the TestToSnake
to have better input examples. The rest of these tests look okay.
Hi @jmrodri. Really tks for the input. Added the missing scenarios. |
/cherry-pick v0.17.x |
@estroz: new pull request created: #3026 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Description of the change:
Fix snake conversion
Motivation for the change:
Closes #2393