moving client.rb to the library tree

git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@124 980ebf18-57e1-0310-9a29-db15c13687c0
This commit is contained in:
Luke Kanies 2005-04-13 20:48:12 +00:00
Родитель cb785bdfe6
Коммит 11b037452e
1 изменённых файлов: 26 добавлений и 0 удалений

26
test/tc_client.rb Normal file
Просмотреть файл

@ -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