-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
rspec-its breaking InSpec #44
Comments
Apologies for the long time taken to come back to you on this, to fix this you'd have to add a way to escape the dot for people using long string keys like this. |
This is actually a breaking bug for some of my tests. Any chance you can submit a pull request, @walterdolce ? |
@lavahot done :) |
It's not really a fix. It's actually a new "feature" as my PR above adds the ability to define a Then, within InSpec I do something like this:
|
Hi,
When I use InSpec's
parse_config_file
resource to verify the content of an ini-like config file structured like so:And I have the following spec:
The following error occurs:
I believe this is being caused by this line of code which is splitting the value by dot (
.
):https://github.com/rspec/rspec-its/blob/master/lib/rspec/its.rb#L113
This is effectively causing InSpec (and any other
rspec
"wrapper" feeding that code path something which includes a dot) to break. Not being a corerspec
developer I'm not sure how I could contribute to solving this problem via Pull Requests etc.Any advice would be much appreciated.
Thank you.
The text was updated successfully, but these errors were encountered: