diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-24 21:17:37 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-24 21:17:37 +0000 |
commit | 33f4a66a4ead50a570bd5eeeb97087829f84e132 (patch) | |
tree | 575008be186b4e3c475652f3ed72fb99b3d1e925 | |
parent | 52df47e489d390be9b466da3ef16c2379b9dddba (diff) | |
download | puppet-33f4a66a4ead50a570bd5eeeb97087829f84e132.tar.gz puppet-33f4a66a4ead50a570bd5eeeb97087829f84e132.tar.xz puppet-33f4a66a4ead50a570bd5eeeb97087829f84e132.zip |
Renaming pbucket to filebucket
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2349 980ebf18-57e1-0310-9a29-db15c13687c0
-rwxr-xr-x | bin/filebucket (renamed from bin/pbucket) | 0 | ||||
-rwxr-xr-x | test/executables/filebucket.rb | 16 |
2 files changed, 8 insertions, 8 deletions
diff --git a/bin/pbucket b/bin/filebucket index 21d92cf4b..21d92cf4b 100755 --- a/bin/pbucket +++ b/bin/filebucket diff --git a/test/executables/filebucket.rb b/test/executables/filebucket.rb index dbd5fed76..421eeb1fd 100755 --- a/test/executables/filebucket.rb +++ b/test/executables/filebucket.rb @@ -8,7 +8,7 @@ require 'puppettest' require 'socket' require 'facter' -class TestPBucket < Test::Unit::TestCase +class TestFileBucketExe < Test::Unit::TestCase include PuppetTest::ExeTest def test_local @@ -17,11 +17,11 @@ class TestPBucket < Test::Unit::TestCase text = "somet ext" md5 = Digest::MD5.hexdigest(text) File.open(file, "w") { |f| f.print text } - out = %x{pbucket --bucket #{bucket} backup #{file}} + out = %x{filebucket --bucket #{bucket} backup #{file}} outfile, outmd5 = out.chomp.split(": ") - assert_equal(0, $?, "pbucket did not run successfully") + assert_equal(0, $?, "filebucket did not run successfully") assert_equal(file, outfile, "did not output correct file name") assert_equal(md5, outmd5, "did not output correct md5 sum") @@ -35,13 +35,13 @@ class TestPBucket < Test::Unit::TestCase assert_equal(text, newtext, "did not get correct file from md5 sum") - out = %x{pbucket --bucket #{bucket} get #{md5}} - assert_equal(0, $?, "pbucket did not run successfully") - assert_equal(text, out, "did not get correct text back from pbucket") + out = %x{filebucket --bucket #{bucket} get #{md5}} + assert_equal(0, $?, "filebucket did not run successfully") + assert_equal(text, out, "did not get correct text back from filebucket") File.open(file, "w") { |f| f.puts "some other txt" } - out = %x{pbucket --bucket #{bucket} restore #{file} #{md5}} - assert_equal(0, $?, "pbucket did not run successfully") + out = %x{filebucket --bucket #{bucket} restore #{file} #{md5}} + assert_equal(0, $?, "filebucket did not run successfully") assert_equal(text, File.read(file), "file was not restored") end end |