diff options
author | Nick Lewis <nick@puppetlabs.com> | 2011-03-11 15:22:23 -0800 |
---|---|---|
committer | Nick Lewis <nick@puppetlabs.com> | 2011-03-11 16:25:22 -0800 |
commit | 8858e40839bd693420ddc791df6b51de79356d2a (patch) | |
tree | 44f73bbd2f5c90665e545361010a79e188c662f6 /spec | |
parent | 8cfc8f195481bbca7c38a415ef8ba11bd20503a6 (diff) | |
download | puppet-8858e40839bd693420ddc791df6b51de79356d2a.tar.gz puppet-8858e40839bd693420ddc791df6b51de79356d2a.tar.xz puppet-8858e40839bd693420ddc791df6b51de79356d2a.zip |
(#6689) Make inventory_active_record terminus search quickly
This terminus behaves the same on all supported DB platforms, by performing a
limited portion of its query in SQL, and the rest of the comparison in Ruby.
Its results are consistent with the YAML terminus.
Paired-With: Jesse Wolfe
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/indirector/facts/inventory_active_record_spec.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/spec/unit/indirector/facts/inventory_active_record_spec.rb b/spec/unit/indirector/facts/inventory_active_record_spec.rb index c29e58400..9558abde2 100644 --- a/spec/unit/indirector/facts/inventory_active_record_spec.rb +++ b/spec/unit/indirector/facts/inventory_active_record_spec.rb @@ -68,9 +68,6 @@ describe "Puppet::Node::Facts::InventoryActiveRecord", :if => (Puppet.features.r Puppet::Node::Facts.find("foo").should == foo_facts Puppet::Rails::InventoryFact.all.map{|f| [f.name,f.value]}.should_not include(["uptime_days", "30"], ["kernel", "Darwin"]) end - - it "should not replace the node's facts if something goes wrong" do - end end describe "#find" do |