summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/tc_client.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/tc_client.rb b/test/tc_client.rb
new file mode 100644
index 000000000..53f2b940b
--- /dev/null
+++ b/test/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