Skip to content

Commit

Permalink
RuboCop appeasement
Browse files Browse the repository at this point in the history
  • Loading branch information
towo committed Aug 31, 2022
1 parent f79fd5d commit 6486301
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/unit/puppet/provider/openldap_database/olc_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
describe Puppet::Type.type(:openldap_database).provider(:olc) do
describe '::instances' do
context 'with all parameters' do
before do
expect(described_class).to receive(:slapcat).with('(|(olcDatabase=monitor)(olcDatabase={0}config)(&(objectClass=olcDatabaseConfig)(|(objectClass=olcBdbConfig)(objectClass=olcHdbConfig)(objectClass=olcMdbConfig)(objectClass=olcMonitorConfig)(objectClass=olcRelayConfig)(objectClass=olcLDAPConfig))))').and_return(<<~SLAPCAT)
it do
allow(described_class).to receive(:slapcat).with('(|(olcDatabase=monitor)(olcDatabase={0}config)(&(objectClass=olcDatabaseConfig)(|(objectClass=olcBdbConfig)(objectClass=olcHdbConfig)(objectClass=olcMdbConfig)(objectClass=olcMonitorConfig)(objectClass=olcRelayConfig)(objectClass=olcLDAPConfig))))').and_return(<<~SLAPCAT)
dn: olcDatabase={1}mdb,cn=config
olcDatabase: {1}mdb
olcReadOnly: FALSE
SLAPCAT
end

it 'parses olcReadOnly' do
expect(described_class.instances.first.readonly).to be_falsey
allow(described_class.instances.first.readonly).to be_falsey
end
end
end
Expand Down

0 comments on commit 6486301

Please sign in to comment.