-
Notifications
You must be signed in to change notification settings - Fork 289
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
init.pp: get rid of the ugly hack to compute $check_notify #388
init.pp: get rid of the ugly hack to compute $check_notify #388
Conversation
It appears that the failures in build 692 (https://travis-ci.org/sensu/sensu-puppet/builds/72221455) are due to Mocha interface change with Ruby 1.9, nothing to do with my code change. |
Can you rebase and see if that fixes the tests? |
this way the rspec tests pass
db2bbdd
to
36c6057
Compare
I rebased on latest master and updated the tests to always expect an array in |
I was just trying to duplicate this on my machine without any luck. I installed puppet 3.3.2 for my tests using bundler: PUPPET_GEM_VERSION=3.3.2 bundle update and all of the tests ran fine. ➜ sensu-puppet git:(master) bundle exec rake test
---> syntax:manifests
---> syntax:templates
---> syntax:hiera:yaml
Cloning into 'spec/fixtures/modules/apt'...
remote: Counting objects: 106, done.
remote: Compressing objects: 100% (86/86), done.
remote: Total 106 (delta 9), reused 58 (delta 7), pack-reused 0
Receiving objects: 100% (106/106), 66.03 KiB | 0 bytes/s, done.
Resolving deltas: 100% (9/9), done.
Checking connectivity... done.
Cloning into 'spec/fixtures/modules/stdlib'...
remote: Counting objects: 409, done.
remote: Compressing objects: 100% (273/273), done.
remote: Total 409 (delta 149), reused 265 (delta 122), pack-reused 0
Receiving objects: 100% (409/409), 168.76 KiB | 0 bytes/s, done.
Resolving deltas: 100% (149/149), done.
Checking connectivity... done.
Cloning into 'spec/fixtures/modules/wget'...
remote: Counting objects: 38, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 38 (delta 5), reused 22 (delta 4), pack-reused 0
Receiving objects: 100% (38/38), 18.31 KiB | 0 bytes/s, done.
Resolving deltas: 100% (5/5), done.
Checking connectivity... done.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -I/Users/jlambert/Documents/evenup/git/puppet/sensu-puppet/.bundle/vendor/gems/rspec-core-3.3.2/lib:/Users/jlambert/Documents/evenup/git/puppet/sensu-puppet/.bundle/vendor/gems/rspec-support-3.3.0/lib /Users/jlambert/Documents/evenup/git/puppet/sensu-puppet/.bundle/vendor/gems/rspec-core-3.3.2/exe/rspec --pattern spec/\{classes,defines,unit,functions,hosts,integration\}/\*\*/\*_spec.rb --color
.......................................................................................................................................................................
Finished in 19.7 seconds (files took 1.77 seconds to load)
167 examples, 0 failures
➜ sensu-puppet git:(master) bundle exec puppet --version
3.3.2 I'm not quite sure what's different with travis right now. |
Thanks for testing. Travis mentions 3.3.0 specifically. Also I'd like to verify the stdlib version used in that 3.3.0 environment. |
The .travis file specifies ~> 3.3.0 so it should be the latest patch in the 3.3 series (which is 3.3.2). The version of stdlib it is using is master from git (in the .fixtures file it specifies the modules) |
Using the commands you quoted above, I managed to replicated the problem inside the sensu-server vagrant box:
I have to step away from keyboard for a few days now. I'll get back to this later. Thanks for the tip. |
Thanks @amosshapira @jlambert121 I've fixed this up and rebased in PR #725 |
(GH-388) Simplify class notifications
Functionality released in v2.19.1 |
Proposed cleanup of the "ugly hack".