[Kimchi-devel] [PATCH 8/9] List "admin" as a valid system user in mockmodel

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


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

The mockmodel environment reports a static list of users available on
the system. Currently, it does not include the fake user which is used
by the mockmodel authentication.

In order to make the code consistent, the user which authenticates to
the mockmodel environment should be listed as a valid system user.

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

diff --git a/src/kimchi/mockmodel.py b/src/kimchi/mockmodel.py
index f8e33b7..94d7adf 100644
--- a/src/kimchi/mockmodel.py
+++ b/src/kimchi/mockmodel.py
@@ -867,7 +867,7 @@ def hoststatshistory_lookup(self, *name):
                 'net_sent_rate': random.sample(range(4000), 30)}
 
     def users_get_list(self):
-        return ["userA", "userB", "userC"]
+        return ["userA", "userB", "userC", "admin"]
 
     def groups_get_list(self):
         return ["groupA", "groupB", "groupC", "groupD"]
-- 
1.9.3




More information about the Kimchi-devel mailing list