diff options
author | Luke Kanies <luke@madstop.com> | 2007-09-12 15:32:25 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-09-12 15:32:25 -0500 |
commit | a6fe70054f4fb3efe4d558ffdd244917ca1c6f9c (patch) | |
tree | 6b8dbf7f3f2779254174b0829412a5365ad6ebed /test/language/snippets.rb | |
parent | 1459c507ddccff2a2a6fbadd4c880c023b5e9893 (diff) | |
download | puppet-a6fe70054f4fb3efe4d558ffdd244917ca1c6f9c.tar.gz puppet-a6fe70054f4fb3efe4d558ffdd244917ca1c6f9c.tar.xz puppet-a6fe70054f4fb3efe4d558ffdd244917ca1c6f9c.zip |
Another intermediate commit. The node and fact classes are now functional and are used instead of the network handlers, which have been removed. There are some failing tests as a result, but I want to get this code committed before I massage the rest of the system to make it work again.
Diffstat (limited to 'test/language/snippets.rb')
-rwxr-xr-x | test/language/snippets.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/language/snippets.rb b/test/language/snippets.rb index 2c74543e7..ff8a09881 100755 --- a/test/language/snippets.rb +++ b/test/language/snippets.rb @@ -472,13 +472,14 @@ class TestSnippets < Test::Unit::TestCase :Manifest => snippet(file), :Local => true ) - server.send(:fact_handler).stubs(:set) - server.send(:fact_handler).stubs(:get).returns(facts) + facts = Puppet::Node::Facts.new("testhost", facts) + Puppet::Node::Facts.stubs(:post) + Puppet::Node::Facts.stubs(:get).returns(facts) client = Puppet::Network::Client.master.new( :Master => server, :Cache => false ) - client.class.stubs(:facts).returns(facts) + client.class.stubs(:facts).returns(facts.values) assert(client.local) assert_nothing_raised { |