Skip to content
Snippets Groups Projects
Select Git revision
  • e37ded52f9439b049e378e63f28f5f1bb7f14cb1
  • master default protected
  • release_3.0.0
  • test
  • feature_pre_sql
  • develop
  • 3.0.1
  • 3.0.0
  • 2.3.0
  • 2.2.0
  • 2.1.0
  • 2.0.0
  • 1.3.7
  • 1.3.6
  • 1.3.5
  • 1.3.4
  • 1.3.3
  • 1.3.2
  • 1.3.1
  • 1.3.0
  • 1.2.6
  • 1.2.5
  • 1.2.4
  • 1.2.3
  • 1.2.2
  • 1.2.1
26 results

local.php.dist

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ldap_spec.rb 1.10 KiB
    require 'spec_helper'
    
    describe 'freeradius::ldap' do
      include_context 'redhat_common_dependencies'
    
      let(:title) { 'test' }
    
      let(:params) do
        {
          identity: 'cn=root,dc=example,dc=com',
          password: 'test password',
          basedn: 'dc=example,dc=com',
          server: ['localhost'],
        }
      end
    
      let(:facts) do
        {
          freeradius_version: '3.0.21',
        }
      end
    
      it do
        is_expected.to contain_file('/etc/raddb/mods-available/test')
          .with_content(%r{^ldap test \{\n})
          .with_content(%r{^\s+server = 'localhost'\n})
          .with_content(%r{^\s+identity = 'cn=root,dc=example,dc=com'\n})
          .with_content(%r{^\s+password = 'test password'\n})
          .with_content(%r{^\s+base_dn = 'dc=example,dc=com'\n})
          .with_ensure('present')
          .with_group('radiusd')
          .with_mode('0640')
          .with_owner('root')
          .that_notifies('Service[radiusd]')
          .that_requires('Package[freeradius]')
          .that_requires('Group[radiusd]')
      end
    
      it do
        is_expected.to contain_file('/etc/raddb/mods-enabled/test')
          .with_ensure('link')
          .with_target('../mods-available/test')
      end
    end