[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585
Luke Kanies
luke at madstop.com
Fri Jan 23 14:21:23 UTC 2009
The following commit has been merged in the master branch:
commit aea55823db21088f2dc19f99f857b12332b6c208
Author: Luke Kanies <luke at madstop.com>
Date: Wed Oct 8 22:23:40 2008 -0500
Removing a gid test for users, since it is a bad test and has mostly been replaced in rspec
Signed-off-by: Luke Kanies <luke at madstop.com>
diff --git a/lib/puppet/type/user.rb b/lib/puppet/type/user.rb
index 74c4c6a..29f4880 100755
--- a/lib/puppet/type/user.rb
+++ b/lib/puppet/type/user.rb
@@ -147,8 +147,7 @@ module Puppet
raise ArgumentError, "Group names must be provided, not numbers"
end
if value.include?(",")
- puts value
- raise ArgumentError, "Group names must be provided as an array, not a comma-separated list"
+ raise ArgumentError, "Group names must be provided as an array, not as a comma-separated list '%s'" % value
end
end
end
diff --git a/test/ral/type/user.rb b/test/ral/type/user.rb
index 87d5b60..4c8a9f9 100755
--- a/test/ral/type/user.rb
+++ b/test/ral/type/user.rb
@@ -164,56 +164,6 @@ class TestUser < Test::Unit::TestCase
assert_equal(old, user.provider.shell, "Shell was not reverted")
end
- def attrtest_gid(user)
- obj = nil
- old = user.provider.gid
- comp = mk_catalog("gidtest", user)
-
- user.retrieve
-
- user[:gid] = old
-
- trans = assert_events([], comp, "user")
-
- newgid = %w{nogroup nobody staff users daemon}.find { |gid|
- begin
- group = Etc.getgrnam(gid)
- rescue ArgumentError => detail
- next
- end
- old != group.gid and group.gid > 0
- }
-
- unless newgid
- $stderr.puts "Cannot find alternate group; skipping gid test"
- return
- end
-
- # first test by name
- assert_nothing_raised("Failed to specify group by name") {
- user[:gid] = newgid
- }
-
- trans = assert_events([:user_changed], comp, "user")
-
- # then by id
- newgid = Etc.getgrnam(newgid).gid
-
- assert_nothing_raised("Failed to specify group by id for %s" % newgid) {
- user[:gid] = newgid
- }
-
- user.retrieve
-
- assert_events([], comp, "user")
-
- assert_equal(newgid, user.provider.gid, "GID was not changed")
-
- assert_rollback_events(trans, [:user_changed], "user")
-
- assert_equal(old, user.provider.gid, "GID was not reverted")
- end
-
def attrtest_uid(user)
obj = nil
comp = mk_catalog("uidtest", user)
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list