-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
work with symbolized strings #175
Conversation
bd0646e
to
12307af
Compare
This contains #176 |
12307af
to
3fdbb05
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #175 +/- ##
==========================================
+ Coverage 95.34% 95.80% +0.45%
==========================================
Files 2 2
Lines 172 167 -5
==========================================
- Hits 164 160 -4
+ Misses 8 7 -1 ☔ View full report in Codecov by Sentry. |
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.
I'd be tempted to remove all symbol keys from facterdb and then do the .to_sym
here in rspec-puppet-facts
if requested. Any thoughts on that?
I considered that, but that would be another breaking change. I think with the current implementation it allows us to release it as an enhancement and then we can use the new rspec-puppet-facts + FacterDB version. Afterwards I would like to update FacterDB as you mentioned and also switch to strings by default in rspec-puppet-facts. Basically:
|
6b7e25f
to
af8ba4c
Compare
lib/rspec-puppet-facts.rb
Outdated
operatingsystemmajrelease = os['release']['major'] | ||
operatingsystem = os['name'].downcase | ||
hardwaremodel = os['hardware'] |
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.
voxpupuli/facterdb#367 proove that this works always
363ba5d
to
ac69504
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.
I was further looking at the changes and thought that moving to modern facts deserved its own PR for a cleaner history. #178 does that. I'd prefer to rebase this PR on top. As you can see, I already introduce the os_fact
variable there, so it should be easy to modify.
ac69504
to
b4e39f6
Compare
ff943e6
to
e65a41f
Compare
Did you intend to squash all your changes in a single commit? |
e65a41f
to
f5fcdb5
Compare
No description provided.