Ejemplo n.º 1
0
 def test_935_delete_all_keys(self):
     """--->Delete All keys"""
     print "\n>>>Deleting all Keys"
     for key in keypairs.list_keys(self.uri):
         if self.test_config['KEY_NAME'] in key['name']:
             keypairs.delete_key(self.uri, key['name'])
             del self.test_config['KEYPAIRS'][key['name']]
Ejemplo n.º 2
0
 def test_935_delete_all_keys(self):
     """--->Delete All keys"""
     print "\n>>>Deleting all Keys"
     for key in keypairs.list_keys(self.uri):
         if self.test_config['KEY_NAME'] in key['id']:
             keypairs.delete_key(self.uri, key['id'])
             del self.test_config['KEYPAIRS'][key['id']]
Ejemplo n.º 3
0
 def test_030_list_keys(self):
     """
     -->List Keys
     Sends a request to our API to return all our added keys
     """
     print "\n>>>List of Keys:"
     keys = keypairs.list_keys(self.uri, cookie=self.cookie) or {}
     if keys == {}:
         self.test_config['KEYPAIRS'] = {}
     else:
         for key in keys:
             print key['name']
             self.test_config['KEYPAIRS'][key['name']] = key
Ejemplo n.º 4
0
 def test_030_list_keys(self):
     """
     -->List Keys
     Sends a request to our API to return all our added keys
     """
     print "\n>>>List of Keys:"
     keys = keypairs.list_keys(self.uri, cookie=self.cookie) or {}
     if keys == {}:
         self.test_config['KEYPAIRS'] = {}
     else:
         for key in keys:
             print key['id']
             self.test_config['KEYPAIRS'][key['id']] = key