rspec issues making a module from standard42 template...

84 views
Skip to first unread message

Sean Alderman

unread,
Jan 29, 2014, 1:57:38 PM1/29/14
to example42-pu...@googlegroups.com
Hi,

  I've been working through a bunch of selinux related issues as we're trying to enable selinux in several environments (not puppet environments).  To help work these issues out, I used the Ex42 Standard42 template to build https://github.com/salderma/puppet-auditd and deploy auditd everywhere we're trying to deploy selinux in enforcing mode.

  Anyway, Travis/Rspec is failing in my development branch and I'm not sure why, as it seems that I haven't changed much to do with anything that's now failing the tests.

There seem to be two common errors:

Failure/Error: content = catalogue.resource('file', 'auditd.conf').send(:parameters)[:content]

ArgumentError:

wrong number of arguments (0 for 1)

and

Failure/Error: it { should contain_puppi__ze('auditd').with_helper('myhelper') }

Puppet::Error:

Unknown function is_array at /home/travis/build/salderma/puppet-auditd/spec/fixtures/modules/puppi/manifests/info.pp:28 on node rspec.example42.com

The spec file is only slightly modified from the original standard42 template version, and these particular tests have not been touched.  In addition, the module seems to deploy on my systems quite well.

Any idea what I'm missing here?

Alessandro Franceschi

unread,
Jan 29, 2014, 2:29:02 PM1/29/14
to example42-pu...@googlegroups.com
The spec tests in the template fail with Rspec 2.x
which is installed  in Travis tests.
Most of the  modules have some rspec tests to be fixed for 2.x compliance :-I

Alessandro Franceschi

unread,
Jan 29, 2014, 2:35:07 PM1/29/14
to example42-pu...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages