newvalue(/^\d+$/)
end
- newproperty(:uid, :array_matching =>:all, :required_features => :owner) do
+ newproperty(:uid, :required_features => :owner) do
desc <<-EOS
UID or Username owner matching rule. Accepts a string argument
only, as iptables does not accept multiple uid in a single
EOS
end
- newproperty(:gid, :array_matching =>:all, :required_features => :owner) do
+ newproperty(:gid, :required_features => :owner) do
desc <<-EOS
GID or Group owner matching rule. Accepts a string argument
only, as iptables does not accept multiple gid in a single
describe ':gid and :uid' do
it 'should allow me to set uid' do
@resource[:uid] = 'root'
- @resource[:uid].should == ['root']
+ @resource[:uid].should == 'root'
end
- it 'should allow me to set uid as an array, breaking iptables' do
+ it 'should allow me to set uid as an array, and silently hide my error' do
@resource[:uid] = ['root', 'bobby']
- @resource[:uid].should == ['root', 'bobby']
+ @resource[:uid].should == 'root'
end
it 'should allow me to set gid' do
@resource[:gid] = 'root'
- @resource[:gid].should == ['root']
+ @resource[:gid].should == 'root'
end
- it 'should allow me to set gid as an array, breaking iptables' do
+ it 'should allow me to set gid as an array, and silently hide my error' do
@resource[:gid] = ['root', 'bobby']
- @resource[:gid].should == ['root', 'bobby']
+ @resource[:gid].should == 'root'
end
end