Exemplo n.º 1
0
 def test_success_x509(self):
     self.keypair_type = keypair_obj.KEYPAIR_TYPE_X509
     certif, fingerprint = fake_crypto.get_x509_cert_and_fingerprint()
     self.pub_key = certif
     self.fingerprint = fingerprint
     self._check_success()
Exemplo n.º 2
0
 def test_keypairs_import_key_post_x509(self):
     public_key = fake_crypto.get_x509_cert_and_fingerprint()[0]
     public_key = public_key.replace('\n', '\\n')
     self._check_keypairs_import_key_post(
         public_key, keypair_type=keypair_obj.KEYPAIR_TYPE_X509)
Exemplo n.º 3
0
 def test_success_x509(self):
     self.keypair_type = keypair_obj.KEYPAIR_TYPE_X509
     certif, fingerprint = fake_crypto.get_x509_cert_and_fingerprint()
     self.pub_key = certif
     self.fingerprint = fingerprint
     self._check_success()