|
24 | 24 | from e2e import service_marker, CRD_GROUP, CRD_VERSION, load_resource
|
25 | 25 | from e2e.replacement_values import REPLACEMENT_VALUES
|
26 | 26 | from e2e import collection
|
| 27 | +from e2e.tests.test_security_policy import simple_security_policy |
27 | 28 |
|
28 | 29 | COLLECTION_RESOURCE_PLURAL = "collections"
|
29 | 30 | DELETE_WAIT_AFTER_SECONDS = 10
|
30 | 31 | CHECK_STATUS_WAIT_SECONDS = 30
|
31 | 32 | MODIFY_WAIT_AFTER_SECONDS = 30
|
32 | 33 | INITIAL_DESCRIPTION = "Initial Description"
|
33 |
| -UPDATED_DESCRIPTION = "UPDATEd Description" |
| 34 | +UPDATED_DESCRIPTION = "Updated Description" |
34 | 35 |
|
35 | 36 |
|
36 |
| -@pytest.fixture(scope="module") |
37 |
| -def simple_collection(): |
| 37 | +@pytest.fixture |
| 38 | +def simple_collection(simple_security_policy): |
| 39 | + # EncryptionType securityPolicy is required to create Collection resource |
| 40 | + _, _ = simple_security_policy |
| 41 | + |
38 | 42 | collection_name = random_suffix_name("my-collection", 24)
|
39 |
| - |
40 | 43 | replacements = REPLACEMENT_VALUES.copy()
|
41 | 44 | replacements['COLLECTION_NAME'] = collection_name
|
42 | 45 | replacements['DESCRIPTION'] = "Initial Description"
|
@@ -92,10 +95,14 @@ def test_crud(self, simple_collection):
|
92 | 95 | desired_tags = cr['spec']['tags']
|
93 | 96 | tags.assert_ack_system_tags(
|
94 | 97 | tags=latest_tags,
|
| 98 | + key_member_name='key', |
| 99 | + value_member_name='value' |
95 | 100 | )
|
96 | 101 | tags.assert_equal_without_ack_tags(
|
97 | 102 | expected=desired_tags,
|
98 | 103 | actual=latest_tags,
|
| 104 | + key_member_name='key', |
| 105 | + value_member_name='value' |
99 | 106 | )
|
100 | 107 |
|
101 | 108 | # Update the collection
|
@@ -131,8 +138,12 @@ def test_crud(self, simple_collection):
|
131 | 138 | desired_tags = cr['spec']['tags']
|
132 | 139 | tags.assert_ack_system_tags(
|
133 | 140 | tags=latest_tags,
|
| 141 | + key_member_name='key', |
| 142 | + value_member_name='value' |
134 | 143 | )
|
135 | 144 | tags.assert_equal_without_ack_tags(
|
136 | 145 | expected=desired_tags,
|
137 | 146 | actual=latest_tags,
|
| 147 | + key_member_name='key', |
| 148 | + value_member_name='value' |
138 | 149 | )
|
0 commit comments