diff options
author | Nick Lewis <nick@puppetlabs.com> | 2011-01-05 17:22:30 -0800 |
---|---|---|
committer | Nick Lewis <nick@puppetlabs.com> | 2011-01-06 15:19:42 -0800 |
commit | b16e10dba6606b808ef195f4b57f2e8c66cf65ab (patch) | |
tree | bdacf054c1e877166217336322050ee03f28d607 /spec/unit/indirector/ldap_spec.rb | |
parent | fb8509acbd947712cac094a49227d28a16a366aa (diff) | |
parent | 19eb1e78e115d10bfb822e510213e4fab9cd2599 (diff) | |
download | puppet-b16e10dba6606b808ef195f4b57f2e8c66cf65ab.tar.gz puppet-b16e10dba6606b808ef195f4b57f2e8c66cf65ab.tar.xz puppet-b16e10dba6606b808ef195f4b57f2e8c66cf65ab.zip |
Merge branch '2.6.x' into next
Conflicts:
Rakefile
lib/puppet/resource/type_collection.rb
lib/puppet/simple_graph.rb
lib/puppet/transaction.rb
lib/puppet/transaction/report.rb
lib/puppet/util/metric.rb
spec/integration/indirector/report/rest_spec.rb
spec/spec_specs/runnable_spec.rb
spec/unit/configurer_spec.rb
spec/unit/indirector_spec.rb
spec/unit/transaction/change_spec.rb
Diffstat (limited to 'spec/unit/indirector/ldap_spec.rb')
-rwxr-xr-x | spec/unit/indirector/ldap_spec.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/unit/indirector/ldap_spec.rb b/spec/unit/indirector/ldap_spec.rb index bafaa207b..2178a8709 100755 --- a/spec/unit/indirector/ldap_spec.rb +++ b/spec/unit/indirector/ldap_spec.rb @@ -110,9 +110,7 @@ describe Puppet::Indirector::Ldap do end end - describe "when connecting to ldap" do - confine "LDAP is not available" => Puppet.features.ldap? - + describe "when connecting to ldap", :if => Puppet.features.ldap? do it "should create and start a Util::Ldap::Connection instance" do conn = mock 'connection', :connection => "myconn", :start => nil Puppet::Util::Ldap::Connection.expects(:instance).returns conn @@ -135,9 +133,7 @@ describe Puppet::Indirector::Ldap do end end - describe "when reconnecting to ldap" do - confine "Not running on culain as root" => (Puppet.features.root? and Facter.value("hostname") == "culain") - + describe "when reconnecting to ldap", :if => (Puppet.features.root? and Facter.value("hostname") == "culain") do it "should reconnect to ldap when connections are lost" end end |