File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
acceptance/tests/resource/user Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
confine :except , :platform => /eos-/ # See ARISTA-37
9
9
confine :except , :platform => /cisco_/ # See PUP-5828
10
10
11
- tag 'audit:medium ' ,
11
+ tag 'audit:high ' ,
12
12
'audit:acceptance' # Could be done as integration tests, but would
13
13
# require changing the system running the test
14
14
# in ways that might require special permissions
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ def comment
71
71
72
72
def groups
73
73
return localgroups if @resource . forcelocal?
74
- get ( :groups )
74
+ super
75
75
end
76
76
77
77
def finduser ( key , value )
Original file line number Diff line number Diff line change 392
392
393
393
it "should fall back to nameservice groups when forcelocal is false" do
394
394
resource [ :forcelocal ] = false
395
- allow ( provider ) . to receive ( :get ) . with ( :groups ) . and_return ( 'remote groups' )
395
+ allow ( Puppet :: Util :: POSIX ) . to receive ( :groups_of ) . with ( 'myuser' ) . and_return ( [ 'remote groups' ] )
396
396
expect ( provider ) . not_to receive ( :localgroups )
397
397
expect ( provider . groups ) . to eq ( 'remote groups' )
398
398
end
You can’t perform that action at this time.
0 commit comments