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