-
Notifications
You must be signed in to change notification settings - Fork 27
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
(MODULES-10471) Allow namevar to have special chars #148
(MODULES-10471) Allow namevar to have special chars #148
Conversation
Prior to this commit, the namevar in the dsc type allowed a subset of characters. This was not a functional limit and did not need to be in place. This commit removes this restriction and ensure the name is a string. This commit also fixes the spec tests for the `resource_name` as they were only testing the `name` parameter.
|
Please note that I have not run this through any acceptance testing. Does this repo have litmus enabled? |
Codecov Report
@@ Coverage Diff @@
## master #148 +/- ##
=======================================
Coverage 56.72% 56.72%
=======================================
Files 7 7
Lines 275 275
=======================================
Hits 156 156
Misses 119 119
Continue to review full report at Codecov.
|
|
Thanks @jarretlavallee for submitting the PR. Yes, its litmus ported. But will run a release checks on all platforms too. Thank you. |
Prior to this commit, the resource_name spec was not specific to the name of the resource. This commit updates the regex to check for the name of the resource. Co-Authored-By: sheenaajay <sheena@puppet.com>
|
Thanks @sheenaajay. I merged the suggested change. |

Prior to this PR, the namevar in the dsc type allowed a subset of
characters. This was not a functional limit and did not need to be in
place. This PR removes this restriction and ensure the name is a
string.
This PR also fixes the spec tests for the
resource_nameasthey were only testing the
nameparameter. This just updates it to test theresource_nameand removes the spec tests for the special character limitations.