Skip to content
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

ssh_config parse should be case insensitive #919

Merged
merged 2 commits into from
Aug 16, 2016

Conversation

vjeffrey
Copy link

#759
screen shot 2016-08-15 at 4 05 33 pm

Please let me know if there's a cleaner way to do this. I looked around and tried to find a different way (one that doesn't involve me messing with the hash), but this was the only solution I could find. Happy to change it up if there's something better out there :)


it 'is case insensitive' do
resource = load_resource('ssh_config')
_(resource.gssapiauthentication).must_equal 'no'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might consider adding an assertion here testing other capitalizations. This test would fail to catch a regression where we only accepted lowercase specifications.

@stevendanna
Copy link
Contributor

Overall this looks good to me. I think this is a good solution for now. If we wanted to get fancier, rather than storing the configuration in a plain ruby hash, we could create a wrapper data type that intermediated access to the underlying data. However, until we have another use case for that, I think the one-time transformation is relatively clean.

@vjeffrey
Copy link
Author

thanks!! just pushed up a commit to test with resource.GSSAPIAuthentication and removed that debugging cruft

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.

None yet

4 participants