@@ -36,10 +36,10 @@ def pytest_generate_tests(metafunc):
36
36
set_parameterized_kms_cmps (metafunc , require_attributes = False )
37
37
38
38
39
- def test_verify_user_agent (all_aws_kms_cmps , caplog ):
39
+ def test_verify_user_agent (all_aws_kms_cmp_builders , caplog ):
40
40
caplog .set_level (level = logging .DEBUG )
41
41
42
- all_aws_kms_cmps .encryption_materials (EncryptionContext ())
42
+ all_aws_kms_cmp_builders () .encryption_materials (EncryptionContext ())
43
43
44
44
assert USER_AGENT_SUFFIX in caplog .text
45
45
@@ -54,10 +54,10 @@ def _many_items():
54
54
55
55
56
56
@pytest .mark .parametrize ("item" , _many_items ())
57
- def test_aws_kms_diverse_indexes (all_aws_kms_cmps , item ):
57
+ def test_aws_kms_diverse_indexes (all_aws_kms_cmp_builders , item ):
58
58
"""Verify that AWS KMS cycle works for items with all possible combinations for primary index attribute types."""
59
59
crypto_config = CryptoConfig (
60
- materials_provider = all_aws_kms_cmps ,
60
+ materials_provider = all_aws_kms_cmp_builders () ,
61
61
encryption_context = EncryptionContext (
62
62
partition_key_name = "partition_key" , sort_key_name = "sort_key" , attributes = dict_to_ddb (item )
63
63
),
@@ -68,9 +68,9 @@ def test_aws_kms_diverse_indexes(all_aws_kms_cmps, item):
68
68
functional_test_utils .cycle_item_check (item , crypto_config )
69
69
70
70
71
- def test_aws_kms_item_cycle (all_aws_kms_cmps , parametrized_actions , parametrized_item ):
71
+ def test_aws_kms_item_cycle (all_aws_kms_cmp_builders , parametrized_actions , parametrized_item ):
72
72
crypto_config = CryptoConfig (
73
- materials_provider = all_aws_kms_cmps ,
73
+ materials_provider = all_aws_kms_cmp_builders () ,
74
74
encryption_context = EncryptionContext (),
75
75
attribute_actions = parametrized_actions ,
76
76
)
@@ -80,9 +80,9 @@ def test_aws_kms_item_cycle(all_aws_kms_cmps, parametrized_actions, parametrized
80
80
@pytest .mark .slow
81
81
@hypothesis_strategies .SLOW_SETTINGS
82
82
@hypothesis .given (item = hypothesis_strategies .ddb_items )
83
- def test_aws_kms_item_cycle_hypothesis_slow (all_aws_kms_cmps , hypothesis_actions , item ):
83
+ def test_aws_kms_item_cycle_hypothesis_slow (all_aws_kms_cmp_builders , hypothesis_actions , item ):
84
84
crypto_config = CryptoConfig (
85
- materials_provider = all_aws_kms_cmps ,
85
+ materials_provider = all_aws_kms_cmp_builders () ,
86
86
encryption_context = EncryptionContext (),
87
87
attribute_actions = hypothesis_actions ,
88
88
)
@@ -92,9 +92,9 @@ def test_aws_kms_item_cycle_hypothesis_slow(all_aws_kms_cmps, hypothesis_actions
92
92
@pytest .mark .veryslow
93
93
@hypothesis_strategies .VERY_SLOW_SETTINGS
94
94
@hypothesis .given (item = hypothesis_strategies .ddb_items )
95
- def test_aws_kms_item_cycle_hypothesis_veryslow (all_aws_kms_cmps , hypothesis_actions , item ):
95
+ def test_aws_kms_item_cycle_hypothesis_veryslow (all_aws_kms_cmp_builders , hypothesis_actions , item ):
96
96
crypto_config = CryptoConfig (
97
- materials_provider = all_aws_kms_cmps ,
97
+ materials_provider = all_aws_kms_cmp_builders () ,
98
98
encryption_context = EncryptionContext (),
99
99
attribute_actions = hypothesis_actions ,
100
100
)
0 commit comments