summaryrefslogtreecommitdiffstats
path: root/spec/unit/provider/user
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-05-20 10:13:33 -0500
committerLuke Kanies <luke@madstop.com>2008-05-20 10:13:33 -0500
commit3e13bd59689a27a393c847bdbed3ac38765d79e9 (patch)
treea3d608ddeecc26e55b1a61049112ba4c92de7ab9 /spec/unit/provider/user
parentee4be4f78f7c904dbe5873ff7b44993d1440da41 (diff)
downloadpuppet-3e13bd59689a27a393c847bdbed3ac38765d79e9.tar.gz
puppet-3e13bd59689a27a393c847bdbed3ac38765d79e9.tar.xz
puppet-3e13bd59689a27a393c847bdbed3ac38765d79e9.zip
Intermediate commit so I can move on to other things.
Diffstat (limited to 'spec/unit/provider/user')
-rwxr-xr-xspec/unit/provider/user/ldap.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/provider/user/ldap.rb b/spec/unit/provider/user/ldap.rb
index c4731cbbb..eb13d8bbd 100755
--- a/spec/unit/provider/user/ldap.rb
+++ b/spec/unit/provider/user/ldap.rb
@@ -24,6 +24,16 @@ describe provider_class do
provider_class.manager.rdn.should == :uid
end
+ it "should be unsuitable if ldap is unavailable" do
+ Puppet.features.expects(:ldap?).returns false
+ provider_class.should_not be_suitable
+ end
+
+ it "should be suitable if ldap is available" do
+ Puppet.features.expects(:ldap?).returns true
+ provider_class.should be_suitable
+ end
+
{:name => "uid",
:password => "userPassword",
:comment => "cn",