Created
February 14, 2012 18:28
-
-
Save jedi4ever/1828847 to your computer and use it in GitHub Desktop.
question - rspec-puppet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I wonder if you can describe a test in rspec-puppet just to check if a certain host/name includes a class ? | |
I'm aware of define, function and class, but it seems host would be useful? | |
For one class like java you can write the test in the java class only but for multiple classes to cooperate it would be nice to check if a host always has some classes applied. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'myhostname', :type => host do | |
it { should include_class('java') } | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node /myhostname/ { | |
include java | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment