summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-04-05 20:58:56 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit0a72a98c16a4cb2c507069b875da88a88dd763f8 (patch)
treed44c7b56f7a118d7a530c962cba6800b1675aa3f
parent010907b816699b8b0d7419bec31a5f4e253d7510 (diff)
Remove rollback test, since rollback was removed.
-rwxr-xr-xtest/other/transactions.rb50
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