Ask Your Question

is newvalues still supported on 3.x.x?

asked 2013-04-05 20:40:18 -0600

bodepd gravatar image

I have some unit test failures that indicate newvalues no longer works

specifically the unit test

expect do
  Puppet::Type.type(:keystone_endpoint).new(:name => 'foo') raise_error(Puppet::Error, /Invalid value/)

with the following newvalues statement:

newparam(:name, :namevar => true) do

does not fail with 3.0.x or 3.1.x

(it does appear to fail as expected with those released versions of puppet)

edit retag flag offensive close merge delete


I can't reproduce this by altering package's name parameter to match your statement. Both in a spec and using puppet apply, it fails with: Parameter name failed on ...(more)

domcleal gravatar imagedomcleal ( 2013-04-07 02:46:53 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-04-07 15:46:33 -0600

bodepd gravatar image

updated 2013-04-08 01:08:02 -0600

ramindk gravatar image

I think it may have been related to an older version puppetlabs_spec_helper. I updated to the latest version of the gem and I can no longer recreate.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-04-05 20:40:18 -0600

Seen: 51 times

Last updated: Apr 08 '13