Ejemplo n.º 1
0
 def setUp(self):
     super(KeypairAPITestCase, self).setUp()
     self.keypair_api = compute_api.KeypairAPI()
     self.ctxt = context.RequestContext('fake', 'fake')
     self._keypair_db_call_stubs()
     self.existing_key_name = 'fake existing key name'
     self.pub_key = ('ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLnVkqJu9WVf'
                     '/5StU3JCrBR2r1s1j8K1tux+5XeSvdqaM8lMFNorzbY5iyoBbR'
                     'S56gy1jmm43QsMPJsrpfUZKcJpRENSe3OxIIwWXRoiapZe78u/'
                     'a9xKwj0avFYMcws9Rk9iAB7W4K1nEJbyCPl5lRBoyqeHBqrnnu'
                     'XWEgGxJCK0Ah6wcOzwlEiVjdf4kxzXrwPHyi7Ea1qvnNXTziF8'
                     'yYmUlH4C8UXfpTQckwSwpDyxZUc63P8q+vPbs3Q2kw+/7vvkCK'
                     'HJAXVI+oCiyMMfffoTq16M1xfV58JstgtTqAXG+ZFpicGajREU'
                     'E/E3hO5MGgcHmyzIrWHKpe1n3oEGuz')
     self.fingerprint = '4e:48:c6:a0:4a:f9:dd:b5:4c:85:54:5a:af:43:47:5a'
Ejemplo n.º 2
0
 def __init__(self):
     self.api = compute_api.KeypairAPI()
Ejemplo n.º 3
0
 def __init__(self):
     self.api = compute_api.KeypairAPI()
     super(KeypairController, self).__init__()
Ejemplo n.º 4
0
 def _create_key(self, name):
     # NOTE(vish): create depends on pool, so just call helper directly
     keypair_api = compute_api.KeypairAPI()
     return keypair_api.create_key_pair(self.context, self.context.user_id,
                                        name)