test/ral/providers/group.rb in puppet-0.22.4 vs test/ral/providers/group.rb in puppet-0.23.0

- old
+ new

@@ -28,17 +28,17 @@ end } end def mkgroup(name, hash = {}) - fakemodel = fakemodel(:group, name) + fakeresource = fakeresource(:group, name) group = nil assert_nothing_raised { - group = @provider.new(fakemodel) + group = @provider.new(fakeresource) } hash.each do |name, val| - fakemodel[name] = val + fakeresource[name] = val end assert(group, "Could not create provider group") return group end @@ -165,13 +165,13 @@ # Iterate over each of our groups and try to grab the gid. def test_ownprovidergroups groupnames().each { |group| gobj = nil comp = nil - fakemodel = fakemodel(:group, group) + fakeresource = fakeresource(:group, group) assert_nothing_raised { - gobj = @provider.new(fakemodel) + gobj = @provider.new(fakeresource) } assert(gobj.gid, "Failed to retrieve gid") } end @@ -221,11 +221,11 @@ } # Not all OSes fail here, so we can't test that it doesn't work with # it off, only that it does work with it on. assert_nothing_raised { - group2.model[:allowdupe] = :true + group2.resource[:allowdupe] = :true } # Now create the second group assert_nothing_raised { group2.create @@ -247,6 +247,6 @@ # Everyone should be able to autogenerate a uid assert_instance_of(Fixnum, provider.autogen(:gid)) end end -# $Id: group.rb 2178 2007-02-07 23:56:59Z luke $ +# $Id: group.rb 2501 2007-05-09 23:08:42Z luke $