Sha256: 1cd7e688b944ee86a40b8871eeac593c5eea10154dadba73b7c25fdd57e9f85a

Contents?: true

Size: 700 Bytes

Versions: 1

Compression:

Stored size: 700 Bytes

Contents

describe_recipe 'openldap::server' do

  it 'runs slapd' do
    service("slapd").must_be_running
  end

  it 'sets the rootpw' do
    file("#{node['openldap']['dir']}/slapd.conf").must_include node['openldap']['rootpw']
  end

  it 'ldap references the ssl certs' do
    if node['openldap']['tls_enabled']
      file("#{node['openldap']['dir']}/slapd.conf").must_include node['openldap']['ssl_cert']
      file("#{node['openldap']['dir']}/slapd.conf").must_include node['openldap']['ssl_key']
    end
  end

  it 'places the ssl certs' do
    if node['openldap']['tls_enabled']
      file(node['openldap']['ssl_cert']).must_exist
      file(node['openldap']['ssl_cert']).must_exist
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
infrataster-plugin-ldap-0.0.1 spec/cookbooks/openldap/files/default/test/server_test.rb