[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35

test branch puppet-dev at googlegroups.com
Wed Jul 14 10:31:19 UTC 2010


The following commit has been merged in the upstream branch:
commit 0a72a98c16a4cb2c507069b875da88a88dd763f8
Author: Jesse Wolfe <jes5199 at gmail.com>
Date:   Mon Apr 5 20:58:56 2010 -0700

    Remove rollback test, since rollback was removed.

diff --git a/test/other/transactions.rb b/test/other/transactions.rb
index dd77427..255897a 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

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list