test framework now has a new account with admin right
authorAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Wed, 7 Oct 2009 13:21:37 +0000 (13:21 +0000)
committerAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Wed, 7 Oct 2009 13:21:37 +0000 (13:21 +0000)
system/TestPlc.py
system/config_default.py

index 2f7525a..ddd3227 100644 (file)
@@ -745,7 +745,7 @@ class TestPlc:
             local_key = "keys/%(vservername)s-debug.rsa"%locals()
         else: 
             message="boot"
-            local_key = "keys/%(vservername)s.rsa"%locals()
+           local_key = "keys/key1.rsa"
         tocheck = self.all_hostnames()
         utils.header("checking ssh access (expected in %s mode) to nodes %r"%(message,tocheck))
         utils.header("max timeout is %d minutes, silent for %d minutes (period is %s)"%\
index c9d6e08..c1850ee 100644 (file)
@@ -62,6 +62,13 @@ def users (options) :
                                'email':'fake-pi2@%s'%domain,
                                'password':'testusertech'},
               'roles':['pi','tech']},
+             {'name':'admin', 'keynames' : [ 'key1' ],
+              'user_fields' : {'first_name':'Admin',
+                               'last_name':'Admin',
+                               'enabled':'true',
+                               'email':'admin@%s'%domain,
+                               'password':'testuseradmin'},
+              'roles':['admin']},
              ]
 
 def all_usernames (options):