[Kimchi-devel] [PATCH 6/9] Return some groups for every user in mockmodel

alinefm at linux.vnet.ibm.com alinefm at linux.vnet.ibm.com
Wed Jul 23 20:39:17 UTC 2014


From: Crístian Viana <vianac at linux.vnet.ibm.com>

In the current mockmodel implementation, the "environment" returns None
as the group list for all system users.

In order to make the mockmodel environment more dynamic, every user will
belong to the same list of groups - instead of none.

Signed-off-by: Crístian Viana <vianac at linux.vnet.ibm.com>
---
 tests/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/utils.py b/tests/utils.py
index 4853b7a..12961cc 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -155,7 +155,7 @@ def patch_auth(sudo=True):
     """
 
     def _get_groups(self):
-        return None
+        return [ 'groupA', 'groupB', 'wheel' ]
 
     def _has_sudo(self, result):
         result.value = sudo
-- 
1.9.3




More information about the Kimchi-devel mailing list