Skip to content

Commit 6133e8f

Browse files
committed
remove test using deprecated code
1 parent 446c8e7 commit 6133e8f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/transport/test__mtls_helper.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -620,19 +620,6 @@ def test_use_metadata(self, mock_get_client_ssl_credentials):
620620

621621

622622
class TestDecryptPrivateKey(object):
623-
def test_success(self):
624-
decrypted_key = _mtls_helper.decrypt_private_key(
625-
ENCRYPTED_EC_PRIVATE_KEY, PASSPHRASE_VALUE
626-
)
627-
private_key = crypto.load_privatekey(crypto.FILETYPE_PEM, decrypted_key)
628-
public_key = crypto.load_publickey(crypto.FILETYPE_PEM, EC_PUBLIC_KEY)
629-
x509 = crypto.X509()
630-
x509.set_pubkey(public_key)
631-
632-
# Test the decrypted key works by signing and verification.
633-
signature = crypto.sign(private_key, b"data", "sha256")
634-
crypto.verify(x509, signature, b"data", "sha256")
635-
636623
def test_crypto_error(self):
637624
with pytest.raises(crypto.Error):
638625
_mtls_helper.decrypt_private_key(

0 commit comments

Comments
 (0)