Fix some typos in swift_storage_policy.rb
TrivialFix Change-Id: Idf396283dc0d1c0c9dfd28c702bba826cffc2414
This commit is contained in:
parent
2efc06140f
commit
2628d0fae8
|
@ -6,7 +6,7 @@ Puppet::Type.newtype(:swift_storage_policy) do
|
|||
validate do |value|
|
||||
value_match = /\d+/.match(value)
|
||||
next unless value_match.nil? || !value_match[0].eql?(value)
|
||||
fail('swift_storage_policy name must be a postive integer')
|
||||
fail('swift_storage_policy name must be a positive integer')
|
||||
end
|
||||
newvalues(/\d+/)
|
||||
end
|
||||
|
|
|
@ -10,7 +10,7 @@ describe Puppet::Type.type(:swift_storage_policy) do
|
|||
it 'should fail if swift_storage_policy name is not an integer' do
|
||||
expect {
|
||||
Puppet::Type.type(:swift_storage_policy).new(:name => 'a')
|
||||
}.to raise_error(Puppet::ResourceError, /swift_storage_policy name must be a postive integer/)
|
||||
}.to raise_error(Puppet::ResourceError, /swift_storage_policy name must be a positive integer/)
|
||||
end
|
||||
|
||||
it 'should pass if policy_name is valid' do
|
||||
|
|
Loading…
Reference in New Issue