From: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
As test model includes test against pam user/group listing,
using pam authentication instead of fake authentication.
Signed-off-by: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
---
tests/test_model.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/test_model.py b/tests/test_model.py
index f4d842f..1527735 100644
--- a/tests/test_model.py
+++ b/tests/test_model.py
@@ -38,7 +38,7 @@ import iso_gen
import kimchi.objectstore
import utils
from kimchi import netinfo
-from kimchi.config import paths
+from kimchi.config import config, paths
from kimchi.exception import ImageFormatError, InvalidOperation
from kimchi.exception import InvalidParameter, NotFoundError, OperationFailed
from kimchi.iscsi import TargetClient
@@ -861,6 +861,7 @@ class ModelTests(unittest.TestCase):
'new-test', params)
def test_vm_edit(self):
+ config.set("authentication", "method", "pam")
inst = model.Model(None,
objstore_loc=self.tmp_store)
--
1.8.3.2