diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-09-19 05:35:53 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-09-19 05:35:53 +0000 |
| commit | 8cbe19f2aa68bd9c331bd8423fed149120754f70 (patch) | |
| tree | 0cf0b67fb19bd432f385f82f70b922b92448df69 /test | |
| parent | 613781258282a3928ca9dfead457d73303636241 (diff) | |
| download | puppet-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-x | test/providers/group.rb | 2 | ||||
| -rw-r--r-- | test/providers/user.rb | 2 |
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 |
