summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-19 05:35:53 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-19 05:35:53 +0000
commit8cbe19f2aa68bd9c331bd8423fed149120754f70 (patch)
tree0cf0b67fb19bd432f385f82f70b922b92448df69 /test
parent613781258282a3928ca9dfead457d73303636241 (diff)
downloadpuppet-8cbe19f2aa68bd9c331bd8423fed149120754f70.tar.gz
puppet-8cbe19f2aa68bd9c331bd8423fed149120754f70.tar.xz
puppet-8cbe19f2aa68bd9c331bd8423fed149120754f70.zip
Fixing the same bug in the netinfo provider -- it was retrieving the "is" value instead of the "should" value
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1625 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rwxr-xr-xtest/providers/group.rb2
-rw-r--r--test/providers/user.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/providers/group.rb b/test/providers/group.rb
index 364d1750d..a23dbb50c 100755
--- a/test/providers/group.rb
+++ b/test/providers/group.rb
@@ -65,7 +65,7 @@ class TestGroupProvider < Test::Unit::TestCase
%x{nireport / /groups name gid}.split("\n").each { |line|
group, id = line.chomp.split(/\s+/)
assert(id =~ /^-?\d+$/, "Group id %s for %s is not a number" %
- [id, group])
+ [id.inspect, group])
if group == name
return Integer(id)
end
diff --git a/test/providers/user.rb b/test/providers/user.rb
index e400ff3ad..0778a257f 100644
--- a/test/providers/user.rb
+++ b/test/providers/user.rb
@@ -129,7 +129,7 @@ class TestUserProvider < Test::Unit::TestCase
when :name: name
when :ensure: :present
when :comment: "Puppet Testing User %s" % name
- when :gid: Process.gid()
+ when :gid: nonrootgroup.name
when :shell: findshell()
when :home: "/home/%s" % name
else