From: Crístian Viana <vianac(a)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(a)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