5
5
import string
6
6
7
7
import boto3
8
- import pytest
9
8
from aws_cryptographic_materialproviders .keystore import KeyStore
10
9
from aws_cryptographic_materialproviders .keystore .config import KeyStoreConfig
11
10
from aws_cryptographic_materialproviders .keystore .models import KMSConfigurationKmsKeyArn
27
26
from cryptography .hazmat .primitives import serialization as crypto_serialization
28
27
from cryptography .hazmat .primitives .asymmetric import rsa
29
28
30
-
31
- pytestmark = [pytest .mark .integ ]
32
-
33
-
34
29
# MPL client. Used to create keyrings.
35
30
mpl_client : AwsCryptographicMaterialProviders = AwsCryptographicMaterialProviders (
36
31
config = MaterialProvidersConfig ()
37
32
)
38
33
34
+
39
35
class TestKeyringCreator :
40
36
41
37
# Private raw AES keyring creator.
@@ -57,7 +53,6 @@ def _create_raw_aes_keyring():
57
53
58
54
return raw_aes_keyring
59
55
60
-
61
56
# Private raw RSA keyring creator.
62
57
# Lifted from raw RSA keyring example.
63
58
@staticmethod
@@ -97,7 +92,6 @@ def _create_raw_rsa_keyring():
97
92
98
93
return raw_rsa_keyring
99
94
100
-
101
95
# Private KMS keyring creator.
102
96
# Lifted KMS keyring example.
103
97
@staticmethod
@@ -114,7 +108,6 @@ def _create_kms_keyring():
114
108
115
109
return kms_keyring
116
110
117
-
118
111
# Private hierarchical keyring creator.
119
112
# Lifted hierarchical keyring example.
120
113
@staticmethod
@@ -151,7 +144,6 @@ def _create_hierarchical_keyring():
151
144
152
145
return hierarchical_keyring
153
146
154
-
155
147
# Private multi-keyring creator.
156
148
@staticmethod
157
149
def _create_multi_keyring (keyrings ):
@@ -161,6 +153,7 @@ def _create_multi_keyring(keyrings):
161
153
))
162
154
return a
163
155
156
+
164
157
class TestEncryptionContexts :
165
158
166
159
# Encryption contexts under test
@@ -187,4 +180,4 @@ class TestEncryptionContexts:
187
180
AT_LEAST_TWO_ITEMS_ENCRYPTION_CONTEXTS = [
188
181
SOME_DOUBLE_ITEM_ENCRYPTION_CONTEXT ,
189
182
SOME_MANY_ITEM_ENCRYPTION_CONTEXT ,
190
- ]
183
+ ]
0 commit comments