test for failures when alias names are not correct.
describe "the user alias" do
before(:each) do
@alias_params = @init_params.merge({
+ :name => 'NAME',
:type => 'alias',
:sudo_alias => 'Cmnd_Alias',
:items => 'item1'
lambda { with(valid_params_with({:type => 'user_spec'}))}.should raise_error
end
end
+ describe 'name' do
+ it 'should only accept [A-Z]([A-Z][0-9]_)*' do
+ lambda { with(valid_params_with({:name => 'name'}))}.should raise_error(Puppet::Error)
+ end
+ end
end
describe 'sudo defaults' do