[Puppet Users] test

2018-02-15 Thread John Bishop
This message won't appear on the webpage. -- 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+unsubscr...@googlegroups.com. To view this discussion on t

Re: [Puppet Users] Test coverage behaviour changed between 3.x/4.x

2016-05-13 Thread Rob Nelson
I don't believe so. I filed a similar report on how custom facts are treated, #356. Sounds like similar behavior, maybe a similar cause? Rob Nelson rnels...@gmail.com On Fri, May 13, 2016 at 9:40 AM, Matt Dainty wrote: > I have an open bug report with the rspec-puppet project > (https://github

[Puppet Users] Test coverage behaviour changed between 3.x/4.x

2016-05-13 Thread Matt Dainty
I have an open bug report with the rspec-puppet project (https://github.com/rodjek/rspec-puppet/issues/316) whereby the coverage from testing custom functions in my modules are not cumulative but only include coverage from the last expectation which results in reports showing low percentages. Anyw

Re: [Puppet Users] Test define in module with rspec_puppet

2016-02-16 Thread Thomas Bendler
Things can be so easy: Total resources: 56 Touched resources: 56 Resource coverage: 100.00% Thanks a lot! Regards Thomas 2016-02-16 15:28 GMT+01:00 Gareth Rushgrove : > On 16 February 2016 at 09:37, Thomas Bendler > wrote: > > Hi @all, > > > > I have a small problem with my module test us

Re: [Puppet Users] Test define in module with rspec_puppet

2016-02-16 Thread Gareth Rushgrove
On 16 February 2016 at 09:37, Thomas Bendler wrote: > Hi @all, > > I have a small problem with my module test using spec_puppet. I use the > Puppetlabs MySQL module to create databases in my module. When running "rake > spec" my coverage report that not all resources are tested: > > <--- snip --->

[Puppet Users] Test define in module with rspec_puppet

2016-02-16 Thread Thomas Bendler
Hi @all, I have a small problem with my module test using spec_puppet. I use the Puppetlabs MySQL module to create databases in my module. When running "rake spec" my coverage report that not all resources are tested: ​<--- snip --->​ Mysql_database[test1] Mysql_grant[test1@localhost/test1.*] Mys

Re: [Puppet Users] Test the result of a hiera_hash() lookup

2013-08-23 Thread Dan White
Try this (works for me): class custom::mysql::grants { $grantoptions = hiera_hash('mysql::grants’, false) if $grantoptions { create_resources('database_grant', $grantoptions) } } http://docs.puppetlabs.com/references/latest/function.html#hierahash … a default argument in the second p

[Puppet Users] Test the result of a hiera_hash() lookup

2013-08-23 Thread Chris McDermott
Hi folks, Is there a way to test the result of a hiera_hash() lookup in a manifest? I am trying to use hiera to do most of my configuration, like this for example: mysql::grants: 'user1@localhost': privileges: - select_priv 'user2@localhost': privileges: - select_priv

[Puppet Users] test my posts aren't going through

2013-01-08 Thread Luke
this is a test post -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/GqHKqnWHxpsJ. To post to this group, send email to puppet-users@googlegroups.com. To uns

[Puppet Users] Test Active Directory sync module: lpep

2012-11-13 Thread new23d
Hi All I have just published a module that synchronises users and groups from Active Directory into a Puppet manifest, which can then be rolled out to subscribed agents/workstations. The module maintains generated uids and gids in an SQLite database. It has only been tested on Puppet Enterprise

[Puppet Users] test

2012-04-23 Thread acuz...@gmail.com
test -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group

[Puppet Users] Test if a resource is scheduled

2011-10-02 Thread Kanishka Hettiarachchi
Anyone know how to test if a resource is scheduled in the current run ? We are looking to leverage puppet to remediate during the schedule and run reporting only ($noop=true) other times. Any suggestions are appreciated. Thanks Kanishka -- You received this message because you are subscribed to

Re: [Puppet Users] test manifests?

2011-03-31 Thread Clay Caviness
On Thu, Mar 31, 2011 at 12:04, Dan Bode wrote: > >> Are there examples and documentation on how they should work available >> anywhere? >> > > probably not, I am more than happy to discuss either here or on > freenode :( > > Well, I'm very interested in testing in general, but it's probably a bi

Re: [Puppet Users] test manifests?

2011-03-31 Thread Dan Bode
On Thu, Mar 31, 2011 at 8:37 AM, Clay Caviness wrote: > On Thu, Mar 31, 2011 at 11:29, Dan Bode wrote: > >> >> >> On Thu, Mar 31, 2011 at 8:20 AM, Clay Caviness wrote: >> >>> Reading through the recently published style guide, I see >>> http://docs.puppetlabs.com/guides/style_guide.html#tests sa

Re: [Puppet Users] test manifests?

2011-03-31 Thread Clay Caviness
On Thu, Mar 31, 2011 at 11:29, Dan Bode wrote: > > > On Thu, Mar 31, 2011 at 8:20 AM, Clay Caviness wrote: > >> Reading through the recently published style guide, I see >> http://docs.puppetlabs.com/guides/style_guide.html#tests saying: >> >> "All manifests should have a corresponding test manif

Re: [Puppet Users] test manifests?

2011-03-31 Thread Dan Bode
On Thu, Mar 31, 2011 at 8:20 AM, Clay Caviness wrote: > Reading through the recently published style guide, I see > http://docs.puppetlabs.com/guides/style_guide.html#tests saying: > > "All manifests should have a corresponding test manifest in the module’s > tests directory." > the idea is to h

[Puppet Users] test manifests?

2011-03-31 Thread Clay Caviness
Reading through the recently published style guide, I see http://docs.puppetlabs.com/guides/style_guide.html#tests saying: "All manifests should have a corresponding test manifest in the module’s tests directory." Is there any documentation on how these work? I couldn't find anything in the docum

Re: [Puppet Users] Test driven manifests?

2011-02-25 Thread Dan Bode
On Fri, Feb 25, 2011 at 9:24 AM, Darren Worrall wrote: > Firstly, forgive me if I get my terminology mixed up. Being sold on > the virtues of TDD, I have a growing itch to test our puppet > manifests. Now by this I dont mean testing, say, the mechanics of a > define to test that the right things *

[Puppet Users] Test driven manifests?

2011-02-25 Thread Darren Worrall
Firstly, forgive me if I get my terminology mixed up. Being sold on the virtues of TDD, I have a growing itch to test our puppet manifests. Now by this I dont mean testing, say, the mechanics of a define to test that the right things *happen*, I mean being able to say that given a collection of cla

[Puppet Users] test - please ignore

2010-11-18 Thread kiwi
Apologies -- the last two messages I sent to the list have not appeared ... -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet

[Puppet Users] Test if stored config is enabled?

2010-07-29 Thread dom
Hi I'd like to be able to test if stored config is enabled and active, and if not then react (eg. notice or die). Is there any way of doing this? Thanks Dom -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to

Re: [Puppet Users] test for package status

2010-01-25 Thread Doug Warner
On 01/25/2010 08:44 PM, David Bishop wrote: > Ah, but I don't want to ensure that the package is installed. In fact, > sometimes it won't be - on purpose. And I want to change the recipes > behavior based on that fact. Bingo. You nailed it. "based on that *fact*" (emphasis mine) You need to wri

Re: [Puppet Users] test for package status

2010-01-25 Thread David Bishop
Ah, but I don't want to ensure that the package is installed. In fact, sometimes it won't be - on purpose. And I want to change the recipes behavior based on that fact. David Bishop On Jan 25, 2010, at 8:11 PM, Peter Meier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 if Packag

Re: [Puppet Users] test for package status

2010-01-25 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > if Package["syslog"] => installed { > file "/etc/syslog.conf" { > blah blah > } > } How about: package{'syslog': ensure => installed } file{"/etc/syslog.conf": require => Package['syslog'], blah blah } cheers pete --

[Puppet Users] test (sorry for the noise)

2009-04-16 Thread Rob McBroom
I tried to change the address I was subscribed with and though I've gotten confirmation that I'm subscribed, I'm not getting any new messages. Just wondering if it'll let me post. -- Rob McBroom --~--~-~--~~~---~--~~ You received

[Puppet Users] Test

2008-11-04 Thread AndrewHolt
Hi, I'm not seeing the messages that I post to these group. Please delete this.\ Regards, Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us

[Puppet Users] test 2, please disregard

2008-09-29 Thread Marcin Owsiany
I'm having problems with google groups -- Marcin Owsiany <[EMAIL PROTECTED]> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until it can read mail."

[Puppet Users] test, please disregard

2008-09-29 Thread Marcin Owsiany
I'm having problems with google groups -- Marcin Owsiany <[EMAIL PROTECTED]> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until it can read mail."