Re: [Puppet-dev] Testing defined types

2011-07-17 Thread Nikolay Sturm
Hi, I just stumbled upon this thread and was wondering whether you have had a look at cucumber-puppet. It seems to be doing what you want, albeit with cucumber and not rspec. Cheers, Nikolay -- "It's all part of my Can't-Do approach to life." Wally -- You received this message because you are

Re: [Puppet-dev] how to create a node object from a parameterised class?

2011-03-06 Thread Nikolay Sturm
* Dan Bode [2011-02-19]: > This is fixed by my patch for param class support for ENC: > > http://projects.puppetlabs.com/issues/5045 > This will only work against 2.6.5 (currently at rc4) > > The only difference is that :classes should take a hash instead of an array. Great, works fine. Thanks fo

[Puppet-dev] how to create a node object from a parameterised class?

2011-02-18 Thread Nikolay Sturm
Hi, in order to extend cucumber-puppet to support parameterised classes, I need to create a node object from a parameterised class. At the moment my code does sth like this: node = Puppet::Node.new(@facts['hostname'], :classes => @klass) node.merge(@facts) @catalog = Puppet::Resource::Catalog.fi

Re: [Puppet-dev] possible performance degradation with puppet 2.6

2010-09-18 Thread Nikolay Sturm
* Markus Roberts [2010-09-18]: > expect to see in normal use, but we'll be looking into it. I'm not > seeing a ticket for this yet. Could you open one or, if you'd rather, > I can do it for you. #4803, I hope this contains enough information to be helpful. Thanks for looking into it, Nikolay

Re: [Puppet-dev] possible performance degradation with puppet 2.6

2010-09-18 Thread Nikolay Sturm
* Brice Figureau [2010-09-17]: > Lots of things changed between 0.25 and 2.6 regarding the compiler. It > is possible that the changes we did in > P::Node::Environment#known_resource_types is failing for your use case > and you end up calling "perform_initial_import" every time you compile. Yes, t

Re: [Puppet-dev] possible performance degradation with puppet 2.6

2010-09-18 Thread Nikolay Sturm
* Markus Roberts [2010-09-17]: > 1) Did you see the same thing with 2.6.0? Yes, I do. > 2) Is there anything special you can see about your setup that might > be related? Well, I don't use the tools but access the API directly. It might very well be the way I use it is no longer good. Cucumber-p

[Puppet-dev] possible performance degradation with puppet 2.6

2010-09-17 Thread Nikolay Sturm
Hi guys, testing cucumber-puppet with Puppet 2.6.1 I see a massive performance degradation where a testsuite takes over 5 minutes to run as compared to about 40s with Puppet 0.25.5. I suspect this is (at least partially) due to changes in file parsing. With Puppet 0.25.5 I see .pp files being load