Fix readonly database property #389
Annotations
3 errors and 1 warning
Run tests:
spec/unit/puppet/provider/openldap_database/olc_spec.rb#L38
Puppet::Type::Openldap_database::ProviderOlc when creating with readonly set to false parses olcReadOnly as false
Failure/Error:
slapcat("(&(objectClass=olc#{resource[:backend].to_s.capitalize}Config)(olcSuffix=#{resource[:suffix]}))").
split("\n").map do |line|
@property_hash[:index] = line.match(%r{^olcDatabase: \{(\d+)\}#{resource[:backend]}$}).captures[0] if line =~ %r{^olcDatabase: }
end
NoMethodError:
undefined method `split' for nil:NilClass
|
Run tests:
spec/unit/puppet/provider/openldap_database/olc_spec.rb#L50
Puppet::Type::Openldap_database::ProviderOlc when creating with readonly set to true parses olcReadonly
Failure/Error: expect(described_class.instances.first.readonly).to eq(:true)
expected: :true
got: :false
(compared using ==)
Diff:
@@ -1 +1 @@
-:true
+:false
|
Run tests
Process completed with exit code 1.
|
Run tests:
spec/unit/puppet/type/openldap_database_spec.rb#L31
Puppet::Type::Openldap_database namevar validation allows more valid suffix
Skipped: These are valid DNs, but we need a proper parser to match them, not a regexp
|
Loading