From 18a6c6a99f375159134d35a0fdbf5642a0064800 Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Tue, 6 Nov 2012 14:54:08 -0800 Subject: [PATCH] Move keystone ldap class to correct file. The dirname did not match the class namespace. Now it does. And I added some tests so that its actually being tested for stuff like this. --- manifests/{config => }/ldap.pp | 0 spec/classes/keystone_ldap_spec.rb | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+) rename manifests/{config => }/ldap.pp (100%) create mode 100644 spec/classes/keystone_ldap_spec.rb diff --git a/manifests/config/ldap.pp b/manifests/ldap.pp similarity index 100% rename from manifests/config/ldap.pp rename to manifests/ldap.pp diff --git a/spec/classes/keystone_ldap_spec.rb b/spec/classes/keystone_ldap_spec.rb new file mode 100644 index 000000000..404f6d618 --- /dev/null +++ b/spec/classes/keystone_ldap_spec.rb @@ -0,0 +1,20 @@ +require 'spec_helper' + +describe 'keystone::ldap' do + + describe 'with default params' do + + it 'should contain default params' do + + should contain_keystone_config('ldap/url').with_value('ldap://localhost') + should contain_keystone_config('ldap/user').with_value('dc=Manager,dc=example,dc=com') + should contain_keystone_config('ldap/password').with_value('None') + should contain_keystone_config('ldap/suffix').with_value('cn=example,cn=com') + should contain_keystone_config('ldap/user_tree_dn').with_value('ou=Users,dc=example,dc=com') + should contain_keystone_config('ldap/tenant_tree_dn').with_value('ou=Roles,dc=example,dc=com') + should contain_keystone_config('ldap/role_tree_dn').with_value('dc=example,dc=com') + end + + end + +end