Sha256: 2f74e5b04ada340fceb09a60adba6cc9f946d1299fbcb810921f443f7b877a62

Contents?: true

Size: 457 Bytes

Versions: 326

Compression:

Stored size: 457 Bytes

Contents

#! /usr/bin/env ruby
require 'spec_helper'

require 'puppet/indirector/node/ldap'

describe Puppet::Node::Ldap do
  it "should use a restrictive filter when searching for nodes in a class" do
    ldap = Puppet::Node.indirection.terminus(:ldap)
    Puppet::Node.indirection.stubs(:terminus).returns ldap
    ldap.expects(:ldapsearch).with("(&(objectclass=puppetClient)(puppetclass=foo))")

    Puppet::Node.indirection.search "eh", :class => "foo"
  end
end

Version data entries

326 entries across 326 versions & 2 rubygems

Version Path
puppet-5.5.12 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.12-x86-mingw32 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.12-x64-mingw32 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.12-universal-darwin spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.10 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.10-x86-mingw32 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.10-x64-mingw32 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.10-universal-darwin spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.8 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.8-x86-mingw32 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.8-x64-mingw32 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.8-universal-darwin spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.7 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.7-x86-mingw32 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.7-x64-mingw32 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.7-universal-darwin spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.6 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.6-x86-mingw32 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.6-x64-mingw32 spec/integration/indirector/node/ldap_spec.rb
puppet-5.5.6-universal-darwin spec/integration/indirector/node/ldap_spec.rb