summaryrefslogtreecommitdiffstats
path: root/spec/integration/node
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-12-09 15:33:28 -0600
committerLuke Kanies <luke@madstop.com>2008-12-18 11:10:21 -0600
commitd48fff6658535ca1781443aba9ab21893c13e55c (patch)
tree4fcfd8b502a0f23f057a6e0695f466195978f366 /spec/integration/node
parentc927ce05bbd96fa9aacc8e52f8eb797403a1e433 (diff)
downloadpuppet-d48fff6658535ca1781443aba9ab21893c13e55c.tar.gz
puppet-d48fff6658535ca1781443aba9ab21893c13e55c.tar.xz
puppet-d48fff6658535ca1781443aba9ab21893c13e55c.zip
Renaming Puppet::Node::Catalog to Puppet::Resource::Catalog
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/integration/node')
-rwxr-xr-xspec/integration/node/catalog.rb54
1 files changed, 0 insertions, 54 deletions
diff --git a/spec/integration/node/catalog.rb b/spec/integration/node/catalog.rb
deleted file mode 100755
index 438f92834..000000000
--- a/spec/integration/node/catalog.rb
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/usr/bin/env ruby
-#
-# Created by Luke Kanies on 2007-4-8.
-# Copyright (c) 2008. All rights reserved.
-
-require File.dirname(__FILE__) + '/../../spec_helper'
-
-describe Puppet::Node::Catalog do
- describe "when using the indirector" do
- after { Puppet::Util::Cacher.expire }
- before do
- # This is so the tests work w/out networking.
- Facter.stubs(:to_hash).returns({"hostname" => "foo.domain.com"})
- Facter.stubs(:value).returns("eh")
- end
-
-
- it "should be able to delegate to the :yaml terminus" do
- Puppet::Node::Catalog.indirection.stubs(:terminus_class).returns :yaml
-
- # Load now, before we stub the exists? method.
- terminus = Puppet::Node::Catalog.indirection.terminus(:yaml)
- terminus.expects(:path).with("me").returns "/my/yaml/file"
-
- FileTest.expects(:exist?).with("/my/yaml/file").returns false
- Puppet::Node::Catalog.find("me").should be_nil
- end
-
- it "should be able to delegate to the :compiler terminus" do
- Puppet::Node::Catalog.indirection.stubs(:terminus_class).returns :compiler
-
- # Load now, before we stub the exists? method.
- compiler = Puppet::Node::Catalog.indirection.terminus(:compiler)
-
- node = mock 'node'
- node.stub_everything
-
- Puppet::Node.expects(:find).returns(node)
- compiler.expects(:compile).with(node).returns nil
-
- Puppet::Node::Catalog.find("me").should be_nil
- end
-
- it "should pass provided node information directly to the terminus" do
- terminus = mock 'terminus'
-
- Puppet::Node::Catalog.indirection.stubs(:terminus).returns terminus
-
- node = mock 'node'
- terminus.expects(:find).with { |request| request.options[:use_node] == node }
- Puppet::Node::Catalog.find("me", :use_node => node)
- end
- end
-end