diff options
author | Luke Kanies <luke@madstop.com> | 2005-05-29 23:59:33 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-05-29 23:59:33 +0000 |
commit | 7fecad310828d120769972ba6112737fbaa10fd5 (patch) | |
tree | ad68f4d5b5de99fb249237ba5da13b30dd4cbf90 /test | |
parent | 02f11855098e3ddbc4353dd7141a0f78d85d5f0a (diff) | |
download | puppet-7fecad310828d120769972ba6112737fbaa10fd5.tar.gz puppet-7fecad310828d120769972ba6112737fbaa10fd5.tar.xz puppet-7fecad310828d120769972ba6112737fbaa10fd5.zip |
i now have basic events: you can only specify simple object types as requirements, but hey, it works -- refresh() gets called
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@280 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rw-r--r-- | test/client/tc_client.rb | 2 | ||||
-rw-r--r-- | test/types/tc_file.rb | 1 | ||||
-rw-r--r-- | test/types/tc_service.rb | 7 |
3 files changed, 8 insertions, 2 deletions
diff --git a/test/client/tc_client.rb b/test/client/tc_client.rb index 9a78147fa..4586ea111 100644 --- a/test/client/tc_client.rb +++ b/test/client/tc_client.rb @@ -16,7 +16,7 @@ class TestClient < Test::Unit::TestCase def test_local client = nil assert_nothing_raised() { - client = Blink::Client.new(:Local => true) + client = Blink::Client.new(:Listen => false) } facts = %w{operatingsystem operatingsystemrelease} diff --git a/test/types/tc_file.rb b/test/types/tc_file.rb index e3079a560..9be428eb9 100644 --- a/test/types/tc_file.rb +++ b/test/types/tc_file.rb @@ -58,7 +58,6 @@ class TestFile < Test::Unit::TestCase def test_group [%x{groups}.chomp.split(/ /), Process.groups].flatten.each { |group| - puts "Testing %s" % group assert_nothing_raised() { @file[:group] = group } diff --git a/test/types/tc_service.rb b/test/types/tc_service.rb index d0e18cb25..287f23178 100644 --- a/test/types/tc_service.rb +++ b/test/types/tc_service.rb @@ -50,6 +50,13 @@ class TestService < Test::Unit::TestCase } assert(@sleeper.insync?) + # test refreshing it + assert_nothing_raised() { + @sleeper.refresh + } + + assert(@sleeper.respond_to?(:refresh)) + # now stop it assert_nothing_raised() { @sleeper[:running] = 0 |