search for: include_class

Displaying 4 results from an estimated 4 matches for "include_class".

2012 May 25
4
rspec first steps troubles
I try do implement tests for my puppet code and was playing with rspec-puppet but the following code gives me errors require ''spec_helper'' describe ''irqbalance'' do it { should include_class(''irqbalance'') } it { should include_class(''irqbalance::data'') } it { should contain_package(''irqbalance'').with(:ensure => ''installed'') } end The errors looks like NoMethodError: undefined method `include_class...
2013 May 13
1
Rspec-puppet: what is differences between contain_class, include_class, create_class?
Hello, everyone! Does anyone can tell me about differences (or help to find any document or source code with the answer) between functions: * contain_class * include_class * create_class Which one is preferred in which cases? Thank you, in advance. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@...
2012 Oct 04
3
Need help with rspec-puppet
Hello Everyone, I am fairly new to puppet and I would like to run som unit tests. I hope rspec is the right tool for it. Unfortunately, after setting it up, when I try to execute it I receive the following error: Failures: 1) helloworld Failure/Error: it { should include_class(''helloworld'') } Puppet::Error: Error converting value for param ''deviceconfig'': Could not find value for $confdir on node puppet-demo # ./spec/classes/helloworld_spec.rb:8 Thiss error pops up for any test I try. I wasn''t able to find...
2006 Aug 15
20
Talking to Java APIs
I''m trying to figure out how Ruby in general, and/or anything extra Rails may have, can talk to Java APIs of third party server apps. After quite a few search attempts net-wide and on ruby forums, and with "Programming Ruby" in hand, I''m coming up with zilch. Either I''m not finding it, or I''m not recognizing it. I''m assuming there has