summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-07-21 23:12:51 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-07-21 23:12:51 +0000
commitb42eaee1a7e8dd1ef7a7daad5d0b03aba6113d00 (patch)
tree45a3eba8dad449b525af4a0a9602318b62d17190 /test
parent9e61510ac96cc53b2fbc58efa969499eb0c0c11f (diff)
downloadpuppet-b42eaee1a7e8dd1ef7a7daad5d0b03aba6113d00.tar.gz
puppet-b42eaee1a7e8dd1ef7a7daad5d0b03aba6113d00.tar.xz
puppet-b42eaee1a7e8dd1ef7a7daad5d0b03aba6113d00.zip
First round of bugfixes in preparation for 0.18.4
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1421 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rwxr-xr-xtest/language/functions.rb1
-rw-r--r--test/server/master.rb11
-rwxr-xr-xtest/types/host.rb1
-rwxr-xr-xtest/types/sshkey.rb1
4 files changed, 8 insertions, 6 deletions
diff --git a/test/language/functions.rb b/test/language/functions.rb
index 1ee7ccf8e..d931470fc 100755
--- a/test/language/functions.rb
+++ b/test/language/functions.rb
@@ -224,6 +224,7 @@ class TestLangFunctions < Test::Unit::TestCase
assert_equal("original text\n", fileobj["content"],
"Template did not work")
+ Puppet[:filetimeout] = 0
# Have to sleep because one second is the fs's time granularity.
sleep(1)
diff --git a/test/server/master.rb b/test/server/master.rb
index e3f065087..18e23311c 100644
--- a/test/server/master.rb
+++ b/test/server/master.rb
@@ -102,6 +102,8 @@ class TestMaster < Test::Unit::TestCase
end
def test_filereread
+ # Start with a normal setting
+ Puppet[:filetimeout] = 15
manifest = mktestmanifest()
file2 = @createdfile + "2"
@@ -113,8 +115,7 @@ class TestMaster < Test::Unit::TestCase
master = Puppet::Server::Master.new(
:Manifest => manifest,
:UseNodes => false,
- :Local => true,
- :FileTimeout => 15
+ :Local => true
)
}
assert_nothing_raised() {
@@ -153,10 +154,8 @@ class TestMaster < Test::Unit::TestCase
assert_equal(parse1, master.freshness, "Master did not wait through timeout")
assert(client.fresh?, "Client is not up to date")
- assert_nothing_raised("Could not resent the file timeout") {
- master.filetimeout = 0
- }
- assert_equal(0, master.filetimeout)
+ # Then eliminate it
+ Puppet[:filetimeout] = 0
# Now make sure the master does reparse
#Puppet.notice "%s vs %s" % [parse1, master.freshness]
diff --git a/test/types/host.rb b/test/types/host.rb
index b842c1cfb..2e5121451 100755
--- a/test/types/host.rb
+++ b/test/types/host.rb
@@ -21,6 +21,7 @@ class TestHost < Test::Unit::TestCase
end
def teardown
+ Puppet::FileType.filetype(:ram).clear
@hosttype.filetype = @oldhosttype
Puppet.type(:file).clear
super
diff --git a/test/types/sshkey.rb b/test/types/sshkey.rb
index 5186d06cc..ff9adc336 100755
--- a/test/types/sshkey.rb
+++ b/test/types/sshkey.rb
@@ -22,6 +22,7 @@ class TestSSHKey < Test::Unit::TestCase
end
def teardown
+ Puppet::FileType.filetype(:ram).clear
@sshtype.filetype = @oldfiletype
Puppet.type(:file).clear
super