This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it"should convert a port name for #{port} to its number"do
@resource[port]='ssh'
@resource[port].should == ['22']
end
it"should not accept something invalid for #{port}"do
expect{@resource[port]='something odd'}.shouldraise_error(Puppet::Error,/^Parameter .+ failed: Munging failed for value ".+" in class .+: no such service/)
end
it"should not accept something invalid in an array for #{port}"do
expect{@resource[port]=['something odd','something even odder']}.shouldraise_error(Puppet::Error,/^Parameter .+ failed: Munging failed for value ".+" in class .+: no such service/)