Comments (5)
@mcanevet Could you please elaborate why the originally implemented version was good enough for Puppet 6? From my understanding, if Puppet.features.augeas?
doesn't require Augeas to be present.
from rspec-puppet-facts.
I see three options fixing this:
-
Change
rescue => e
torescue LoadError => e
This still throwsFailed to retrieve Augeas version: cannot load such file -- augeas
warnings, which aren't really nice. -
Revert 5156ec4 - it worked for us with with Puppet 6.0.0
-
Add the
augeas
gem as a dependency for this gem.
from rspec-puppet-facts.
I see the same in https://travis-ci.org/puppetlabs/cisco_ios/jobs/445535959#L933-L942 :
An error occurred while loading ./spec/classes/proxy_spec.rb.
Failure/Error:
on_supported_os(proxy_os).each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }
it { is_expected.to compile }
end
end
LoadError:
cannot load such file -- augeas
# ./vendor/bundle/ruby/2.4.0/gems/rspec-puppet-2.7.1/lib/rspec-puppet/monkey_patches.rb:350:in `require'
# ./vendor/bundle/ruby/2.4.0/gems/rspec-puppet-2.7.1/lib/rspec-puppet/monkey_patches.rb:350:in `require'
# ./vendor/bundle/ruby/2.4.0/gems/rspec-puppet-facts-1.9.1/lib/rspec-puppet-facts.rb:220:in `common_facts'
# ./vendor/bundle/ruby/2.4.0/gems/rspec-puppet-facts-1.9.1/lib/rspec-puppet-facts.rb:134:in `block in on_supported_os'
# ./vendor/bundle/ruby/2.4.0/gems/rspec-puppet-facts-1.9.1/lib/rspec-puppet-facts.rb:117:in `map'
# ./vendor/bundle/ruby/2.4.0/gems/rspec-puppet-facts-1.9.1/lib/rspec-puppet-facts.rb:117:in `on_supported_os'
# ./spec/classes/proxy_spec.rb:4:in `block in <top (required)>'
# ./spec/classes/proxy_spec.rb:3:in `<top (required)>'
from rspec-puppet-facts.
@baurmatt the issue seems to be that Puppet.features.augeas?
now always returns false
, even if augeas is present in the bundle. You first option, rescuing the LoadError
seems to be the way to go then.
from rspec-puppet-facts.
Alright then, opened up #74 for the fix.
from rspec-puppet-facts.
Related Issues (20)
- rspec-puppet-facts hangs searching for facter version HOT 3
- More docs changes needed HOT 1
- Overriding structured facts HOT 3
- Memoizing facts HOT 3
- remove json as a dependency HOT 2
- Cut a new release HOT 1
- Reduce calls to FacterDB
- Allow modules to export custom fact values HOT 1
- Push 2.0.1 git tag to Github HOT 1
- Fail tests when no facts are found in facterdb
- "add_custom_fact" creates String-Facts instead of Symbol-Facts HOT 1
- release notes for 3.0.0
- Cut a new release to support windows server 2016 HOT 5
- facterversion filter fails with windows and facter version 3.x HOT 2
- File resource is trying to load Windows provider on a non-Windows computer HOT 2
- AIX hardware model should not be x86_64 HOT 2
- Specify required_ruby_version
- facts cannot be cased as described HOT 7
- Commit 21442e7 looks to introduce hard to debug behavior HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspec-puppet-facts.