From 075ffd752de203823673d2a3846b7ff2d3dc16ec Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Sun, 24 Jul 2005 04:15:45 +0000 Subject: making changes necessary to pass tests on all available platforms git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@458 980ebf18-57e1-0310-9a29-db15c13687c0 --- test/client/tc_client.rb | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) (limited to 'test/client') diff --git a/test/client/tc_client.rb b/test/client/tc_client.rb index 17cee1c9b..33f40dcf0 100644 --- a/test/client/tc_client.rb +++ b/test/client/tc_client.rb @@ -1,11 +1,13 @@ if __FILE__ == $0 $:.unshift '..' $:.unshift '../../lib' + $:.unshift '../../../../language/trunk/lib' $puppetbase = "../../../../language/trunk/" end require 'puppet' require 'puppet/client' +#require 'puppet/server' require 'puppet/fact' require 'test/unit' require 'puppettest.rb' @@ -13,20 +15,27 @@ require 'puppettest.rb' # $Id$ class TestClient < Test::Unit::TestCase - def test_local - client = nil - assert_nothing_raised() { - client = Puppet::Client.new(:Listen => false) - } - - facts = %w{operatingsystem operatingsystemrelease} - facts.each { |fact| - assert_equal( - Puppet::Fact[fact], - client.callfunc("fact",fact) - ) - } - end +# def test_local +# client = nil +# server = nil +# assert_nothing_raised() { +# server = Puppet::Master.new( +# :File => file, +# :Local => true +# ) +# } +# assert_nothing_raised() { +# client = Puppet::Client.new(:Server => server) +# } +# +# facts = %w{operatingsystem operatingsystemrelease} +# facts.each { |fact| +# assert_equal( +# Puppet::Fact[fact], +# client.callfunc("fact",fact) +# ) +# } +# end def test_files end -- cgit