On Fri, Feb 20, 2015 at 3:31 PM, Breeze <[email protected]> wrote: > Is it a lost cause ? Or someone succeeded to test puppet modules on > Windows ? > > BUMP >
I wouldn't say lost cause - https://github.com/puppetlabs/puppetlabs_spec_helper/pull/87 and https://github.com/puppetlabs/puppetlabs_spec_helper/pull/84 - those were released in 0.9.0 (somewhere late February) I believe. > > On Monday, October 28, 2013 at 5:44:30 AM UTC-5, Matthieu Nantern wrote: >> >> I'm trying to make puppetlabs_spec_helper runs on Windows 7 to test my >> Puppet modules. >> >> Is this supported ? Because I encountered some problems: >> >> 1. symlinks were not created on Windows 7 (even if the functionnality >> are availabe). To manage that I added to rake_tasks.rb an ugly function: >> >> def make_link(source,target) >> ruby_platform = RbConfig::CONFIG['host_os'] >> if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ then >> #Windows Stuff >> source_win=source.tr("/","\\") >> target_win=target.tr("/","\\") >> `call mklink /D #{target_win} #{source_win}` >> elsif RUBY_PLATFORM =~ /linux/ then >> FileUtils::ln_s(source, target) >> end >> end >> >> 2. undefined method `fetch' for nil:NilClass: >> >> Failure/Error: Unable to find matching line from backtrace >> NoMethodError: >> undefined method `fetch' for nil:NilClass >> # C:/Program Files/Puppet >> Labs/Puppet/puppet/lib/puppet/test/test_helper.rb:107:in >> `block in after_each_test' >> # C:/Program Files/Puppet >> Labs/Puppet/puppet/lib/puppet/test/test_helper.rb:106:in >> `each' >> # C:/Program Files/Puppet >> Labs/Puppet/puppet/lib/puppet/test/test_helper.rb:106:in >> `after_each_test' >> >> 3. I use the concat module. And when running "rake test", I got: >> >> Failure/Error: should contain_package('nfs-utils') >> Puppet::Error: >> $concat_basedir not defined. Try running again with >> pluginsync=true on the [master] section of your node's >> '/etc/puppet/puppet.conf'. >> >> >> Is it a lost cause ? Or someone succeeded to test puppet modules on >> Windows ? >> >> Thank you for your help ! >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/81f04c7d-bc59-48f3-b784-abc16809a2d6%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/81f04c7d-bc59-48f3-b784-abc16809a2d6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount <https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter> * *--**save $349!* -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7u2fgPVeB_FE6zoJBgmyjeuNUd0WW4TAV8R7fVSy54%2Bw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
