From 35f742cd79a68778c7c9d9ebc4a31d4f98201d1c Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 13 Apr 2005 21:03:43 +0000 Subject: adding client stuff to the library tree git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@131 980ebf18-57e1-0310-9a29-db15c13687c0 --- test/client/tc_client.rb | 26 ++++++++++++++++++++++++++ test/tc_client.rb | 26 -------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 test/client/tc_client.rb delete mode 100644 test/tc_client.rb diff --git a/test/client/tc_client.rb b/test/client/tc_client.rb new file mode 100644 index 000000000..53f2b940b --- /dev/null +++ b/test/client/tc_client.rb @@ -0,0 +1,26 @@ +$:.unshift '../lib' if __FILE__ == $0 # Make this library first! + +require 'blink' +require 'blink/client' +require 'blink/fact' +require 'test/unit' +require 'blinktest.rb' + +# $Id$ + +class TestClient < Test::Unit::TestCase + def test_local + client = nil + assert_nothing_raised() { + client = Blink::Client::Local.new() + } + + facts = %w{operatingsystem operatingsystemrelease} + facts.each { |fact| + assert_equal( + Blink::Fact[fact], + client.callfunc("retrieve",fact) + ) + } + end +end diff --git a/test/tc_client.rb b/test/tc_client.rb deleted file mode 100644 index 53f2b940b..000000000 --- a/test/tc_client.rb +++ /dev/null @@ -1,26 +0,0 @@ -$:.unshift '../lib' if __FILE__ == $0 # Make this library first! - -require 'blink' -require 'blink/client' -require 'blink/fact' -require 'test/unit' -require 'blinktest.rb' - -# $Id$ - -class TestClient < Test::Unit::TestCase - def test_local - client = nil - assert_nothing_raised() { - client = Blink::Client::Local.new() - } - - facts = %w{operatingsystem operatingsystemrelease} - facts.each { |fact| - assert_equal( - Blink::Fact[fact], - client.callfunc("retrieve",fact) - ) - } - end -end -- cgit