summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-11-24 01:10:52 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-11-24 01:10:52 +0000
commit84bf2896a80bc527f345e49ffb8fb1b5817fdfe6 (patch)
treec8a2aa9781cf0b90f03db197be6985d0f04faec9
parenta03b03f08f304a5fe4598b95a55edd58a4ab2b17 (diff)
downloadpuppet-84bf2896a80bc527f345e49ffb8fb1b5817fdfe6.tar.gz
puppet-84bf2896a80bc527f345e49ffb8fb1b5817fdfe6.tar.xz
puppet-84bf2896a80bc527f345e49ffb8fb1b5817fdfe6.zip
fixing files being put directly into tmp
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@756 980ebf18-57e1-0310-9a29-db15c13687c0
-rwxr-xr-xtest/types/filebucket.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/types/filebucket.rb b/test/types/filebucket.rb
index a5c8e0c78..884492c41 100755
--- a/test/types/filebucket.rb
+++ b/test/types/filebucket.rb
@@ -73,7 +73,7 @@ class TestFileBucket < Test::Unit::TestCase
def test_simplebucket
name = "yayness"
- mkbucket("yayness", "/tmp/filebucket")
+ mkbucket(name, tempfile())
bucket = nil
assert_nothing_raised {
@@ -83,7 +83,7 @@ class TestFileBucket < Test::Unit::TestCase
assert_instance_of(Puppet::Client::Dipper, bucket)
md5 = nil
- newpath = "/tmp/passwd"
+ newpath = tempfile()
@@tmpfiles << newpath
system("cp /etc/passwd %s" % newpath)
assert_nothing_raised {
@@ -113,7 +113,7 @@ class TestFileBucket < Test::Unit::TestCase
def test_fileswithbuckets
name = "yayness"
- mkbucket("yayness", "/tmp/filebucket")
+ mkbucket(name, tempfile())
bucket = nil
assert_nothing_raised {
@@ -125,7 +125,7 @@ class TestFileBucket < Test::Unit::TestCase
file[:backup] = ["filebucket", name]
}
- opath = "/tmp/anotherbuckettest"
+ opath = tempfile()
@@tmpfiles << opath
system("cp /etc/passwd %s" % opath)