I have Puppet type defined like this:
Puppet::Type.newtype(:my_type) do
newproperty(:id, :readonly => true) do
desc "Some id."
end
end
I want to ask how to test in rspecs that property :id is readonly?
describe Puppet::Type.type(:netapp_e_volume) do
it 'should have readonly :id attribute' do
# this part I don't have
end
end
As of April of 2016 this is still not possible according to this Puppet Jira Ticket
https://tickets.puppetlabs.com/browse/PUP-5624
The tickect is still in Unresolved state