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

Tests are broken with the puppet-rpec master branch #46

Closed
simonpasquier opened this issue Aug 6, 2015 · 2 comments
Closed

Tests are broken with the puppet-rpec master branch #46

simonpasquier opened this issue Aug 6, 2015 · 2 comments

Comments

@simonpasquier
Copy link
Contributor

I'm looking at fixing issue #45 but I can't get the tests to pass on the master branch and the Travis CI is in the same state: 3 that_comes_before() assertions are failing. For instance:

Failures:

  1) grafana package install method debian use wget to fetch the package to a temporary location should contain Wget::Fetch[grafana] that comes before Package[grafana]
     Failure/Error: it { should contain_wget__fetch('grafana').that_comes_before('Package[grafana]') }
     NoMethodError:
       undefined method `[]' for nil:NilClass
     # /home/pasquier-s/.bundler/ruby/1.9.1/rspec-puppet-369d729a36ee/lib/rspec-puppet/matchers/create_generic.rb:253:in `relationship_refs'
     # /home/pasquier-s/.bundler/ruby/1.9.1/rspec-puppet-369d729a36ee/lib/rspec-puppet/matchers/create_generic.rb:264:in `block (2 levels) in relationship_refs'
     # /home/pasquier-s/.bundler/ruby/1.9.1/rspec-puppet-369d729a36ee/lib/rspec-puppet/matchers/create_generic.rb:261:in `each'
     # /home/pasquier-s/.bundler/ruby/1.9.1/rspec-puppet-369d729a36ee/lib/rspec-puppet/matchers/create_generic.rb:261:in `block in relationship_refs'
     # /var/lib/gems/1.9.1/gems/puppet-3.6.2/lib/puppet/type.rb:1940:in `block in eachautorequire'
     # /var/lib/gems/1.9.1/gems/puppet-3.6.2/lib/puppet/type.rb:1939:in `each'
     # /var/lib/gems/1.9.1/gems/puppet-3.6.2/lib/puppet/type.rb:1939:in `eachautorequire'
     # /home/pasquier-s/.bundler/ruby/1.9.1/rspec-puppet-369d729a36ee/lib/rspec-puppet/matchers/create_generic.rb:260:in `relationship_refs'
     # /home/pasquier-s/.bundler/ruby/1.9.1/rspec-puppet-369d729a36ee/lib/rspec-puppet/matchers/create_generic.rb:281:in `block (2 levels) in precedes?'
     # /home/pasquier-s/.bundler/ruby/1.9.1/rspec-puppet-369d729a36ee/lib/rspec-puppet/matchers/create_generic.rb:279:in `each'
     # /home/pasquier-s/.bundler/ruby/1.9.1/rspec-puppet-369d729a36ee/lib/rspec-puppet/matchers/create_generic.rb:279:in `block in precedes?'
     # /home/pasquier-s/.bundler/ruby/1.9.1/rspec-puppet-369d729a36ee/lib/rspec-puppet/matchers/create_generic.rb:278:in `each'
     # /home/pasquier-s/.bundler/ruby/1.9.1/rspec-puppet-369d729a36ee/lib/rspec-puppet/matchers/create_generic.rb:278:in `precedes?'
     # /home/pasquier-s/.bundler/ruby/1.9.1/rspec-puppet-369d729a36ee/lib/rspec-puppet/matchers/create_generic.rb:204:in `block in check_befores'
     # /home/pasquier-s/.bundler/ruby/1.9.1/rspec-puppet-369d729a36ee/lib/rspec-puppet/matchers/create_generic.rb:203:in `each'
     # /home/pasquier-s/.bundler/ruby/1.9.1/rspec-puppet-369d729a36ee/lib/rspec-puppet/matchers/create_generic.rb:203:in `check_befores'
     # /home/pasquier-s/.bundler/ruby/1.9.1/rspec-puppet-369d729a36ee/lib/rspec-puppet/matchers/create_generic.rb:99:in `matches?'
     # ./spec/classes/grafana_spec.rb:46:in `block (5 levels) in <top (required)>'

The last PR on puppet-rspec (rodjek/rspec-puppet#261) deals with improving the dependency detection. So I decided to use puppet-rspec v2.2.0 instead of master and all tests pass again. I don't know where is the issue though...

@bfraser
Copy link
Owner

bfraser commented Aug 7, 2015

Thanks for the report @simonpasquier

I noticed this as well and am not sure where the problem lies either. I welcome suggestions!

@bfraser
Copy link
Owner

bfraser commented Oct 26, 2015

Tests pass now, so I'm closing this.

@bfraser bfraser closed this as completed Oct 26, 2015
bastelfreak pushed a commit to bastelfreak/puppet-grafana that referenced this issue Jul 4, 2017
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

No branches or pull requests

2 participants