From 8cbe19f2aa68bd9c331bd8423fed149120754f70 Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 19 Sep 2006 05:35:53 +0000 Subject: 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 --- test/providers/group.rb | 2 +- test/providers/user.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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 -- cgit