@@ -34,7 +34,12 @@ def test_get_selected_connectors_by_name_no_file_modification():
34
34
modified_files = set (),
35
35
)
36
36
37
- assert len (selected_connectors ) == 1
37
+ has_strict_encrypt_variant = any ("-strict-encrypt" in c .technical_name for c in selected_connectors )
38
+ if has_strict_encrypt_variant :
39
+ assert len (selected_connectors ) == 2
40
+ else :
41
+ assert len (selected_connectors ) == 1
42
+
38
43
assert isinstance (selected_connectors [0 ], ConnectorWithModifiedFiles )
39
44
assert selected_connectors [0 ].technical_name == connector .technical_name
40
45
assert not selected_connectors [0 ].modified_files
@@ -138,7 +143,7 @@ def test_get_selected_connectors_with_modified_and_language():
138
143
assert len (selected_connectors ) == 2
139
144
else :
140
145
assert len (selected_connectors ) == 1
141
- assert selected_connectors [0 ].technical_name == second_modified_connector .technical_name
146
+ assert selected_connectors [0 ].technical_name == second_modified_connector .technical_name
142
147
143
148
144
149
def test_get_selected_connectors_with_modified_and_support_level ():
@@ -159,7 +164,7 @@ def test_get_selected_connectors_with_modified_and_support_level():
159
164
assert len (selected_connectors ) == 2
160
165
else :
161
166
assert len (selected_connectors ) == 1
162
- assert selected_connectors [0 ].technical_name == second_modified_connector .technical_name
167
+ assert selected_connectors [0 ].technical_name == second_modified_connector .technical_name
163
168
164
169
165
170
def test_get_selected_connectors_with_modified_and_metadata_only ():
@@ -180,12 +185,16 @@ def test_get_selected_connectors_with_modified_and_metadata_only():
180
185
modified_files = modified_files ,
181
186
)
182
187
183
- assert len (selected_connectors ) == 1
184
- assert selected_connectors [0 ].technical_name == second_modified_connector .technical_name
185
- assert selected_connectors [0 ].modified_files == {
186
- second_modified_connector .code_directory / METADATA_FILE_NAME ,
187
- second_modified_connector .code_directory / "setup.py" ,
188
- }
188
+ has_strict_encrypt_variant = any ("-strict-encrypt" in c .technical_name for c in selected_connectors )
189
+ if has_strict_encrypt_variant :
190
+ assert len (selected_connectors ) == 2
191
+ else :
192
+ assert len (selected_connectors ) == 1
193
+ assert selected_connectors [0 ].technical_name == second_modified_connector .technical_name
194
+ assert selected_connectors [0 ].modified_files == {
195
+ second_modified_connector .code_directory / METADATA_FILE_NAME ,
196
+ second_modified_connector .code_directory / "setup.py" ,
197
+ }
189
198
190
199
191
200
def test_get_selected_connectors_with_metadata_only ():
@@ -205,13 +214,16 @@ def test_get_selected_connectors_with_metadata_only():
205
214
metadata_query = None ,
206
215
modified_files = modified_files ,
207
216
)
208
-
209
- assert len (selected_connectors ) == 1
210
- assert selected_connectors [0 ].technical_name == second_modified_connector .technical_name
211
- assert selected_connectors [0 ].modified_files == {
212
- second_modified_connector .code_directory / METADATA_FILE_NAME ,
213
- second_modified_connector .code_directory / "setup.py" ,
214
- }
217
+ has_strict_encrypt_variant = any ("-strict-encrypt" in c .technical_name for c in selected_connectors )
218
+ if has_strict_encrypt_variant :
219
+ assert len (selected_connectors ) == 2
220
+ else :
221
+ assert len (selected_connectors ) == 1
222
+ assert selected_connectors [0 ].technical_name == second_modified_connector .technical_name
223
+ assert selected_connectors [0 ].modified_files == {
224
+ second_modified_connector .code_directory / METADATA_FILE_NAME ,
225
+ second_modified_connector .code_directory / "setup.py" ,
226
+ }
215
227
216
228
217
229
def test_get_selected_connectors_with_metadata_query ():
@@ -306,19 +318,6 @@ def click_context_obj(in_memory_secret_store):
306
318
"command, command_args" ,
307
319
[
308
320
(connectors_test_command .test , []),
309
- (
310
- connectors_publish_command .publish ,
311
- [
312
- "--spec-cache-gcs-credentials" ,
313
- '{"foo": "bar"}' ,
314
- "--spec-cache-bucket-name" ,
315
- "test" ,
316
- "--metadata-service-gcs-credentials" ,
317
- '{"foo": "bar"}' ,
318
- "--metadata-service-bucket-name" ,
319
- "test" ,
320
- ],
321
- ),
322
321
(connectors_build_command .build , []),
323
322
],
324
323
)
0 commit comments