summaryrefslogtreecommitdiffstats
path: root/test/puppet
diff options
context:
space:
mode:
authorajax <ajax@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-27 00:53:21 +0000
committerajax <ajax@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-27 00:53:21 +0000
commitfd9b2f6293b0d4c9a6d1296ea8567701352aec67 (patch)
tree3f5b95666047b7a5a3fa7585906d089cec961495 /test/puppet
parentdb7d7848fc0b64601c1ac375a92a8709b39a42f8 (diff)
downloadpuppet-fd9b2f6293b0d4c9a6d1296ea8567701352aec67.tar.gz
puppet-fd9b2f6293b0d4c9a6d1296ea8567701352aec67.tar.xz
puppet-fd9b2f6293b0d4c9a6d1296ea8567701352aec67.zip
File types were dying silently on OS X when the group specified in the manifest was not a valid group.
The code now generates some errors, but current behavior doesn't raise fatal exceptions git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1695 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/puppet')
-rw-r--r--test/puppet/tc_suidmanager.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/puppet/tc_suidmanager.rb b/test/puppet/tc_suidmanager.rb
index fc56c6072..bd116bda6 100644
--- a/test/puppet/tc_suidmanager.rb
+++ b/test/puppet/tc_suidmanager.rb
@@ -45,7 +45,12 @@ class TestSUIDManager < Test::Unit::TestCase
assert_uid_gid(user.uid, user.gid, tempfile)
end
end
-
+ def test_utiluid
+ user = nonrootuser
+ if @run
+ assert_not_equal(nil, Puppet::Util.uid(user))
+ end
+ end
def test_asuser
if @run
user = nonrootuser
@@ -57,7 +62,6 @@ class TestSUIDManager < Test::Unit::TestCase
gid = Puppet::SUIDManager.egid
end
end
-
assert_equal(user.uid, uid)
assert_equal(user.gid, gid)
end