diff options
| author | Jesse Wolfe <jes5199@gmail.com> | 2010-04-05 20:58:56 -0700 |
|---|---|---|
| committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
| commit | 0a72a98c16a4cb2c507069b875da88a88dd763f8 (patch) | |
| tree | d44c7b56f7a118d7a530c962cba6800b1675aa3f | |
| parent | 010907b816699b8b0d7419bec31a5f4e253d7510 (diff) | |
Remove rollback test, since rollback was removed.
| -rwxr-xr-x | test/other/transactions.rb | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/test/other/transactions.rb b/test/other/transactions.rb index dd7742797..255897a20 100755 --- a/test/other/transactions.rb +++ b/test/other/transactions.rb @@ -200,56 +200,6 @@ class TestTransactions < Test::Unit::TestCase } end - # modify a file and then roll the modifications back - def test_filerollback - transaction = nil - file = newfile() - - properties = {} - check = [:group,:mode] - file[:check] = check - - assert_nothing_raised() { - file.retrieve - } - - assert_nothing_raised() { - check.each { |property| - value = file.property(property).retrieve - assert(value) - properties[property] = value - } - } - - - component = mk_catalog("file",file) - require 'etc' - groupname = Etc.getgrgid(File.stat(file.name).gid).name - assert_nothing_raised() { - # Find a group that it's not set to - group = @groups.find { |group| group != groupname } - unless group - raise "Could not find suitable group" - end - file[:group] = group - - file[:mode] = "755" - } - trans = assert_events([:file_changed, :file_changed], component) - file.retrieve - - assert_rollback_events(trans, [:file_changed, :file_changed], "file") - - assert_nothing_raised() { - file.retrieve - } - properties.each { |property,value| - assert_equal( - value, file.value(property), "File %s remained %s" % [property, file.value(property)] - ) - } - end - # test that services are correctly restarted and that work is done # in the right order def test_refreshing |
