@@ -50,6 +50,7 @@ def setUp(self):
50
50
self .use_changeset = True
51
51
self .resolve_image_repos = False
52
52
self .disable_rollback = False
53
+ self .import_existing_resources = False
53
54
self .on_failure = None
54
55
self .max_wait_duration = 480
55
56
MOCK_SAM_CONFIG .reset_mock ()
@@ -103,6 +104,7 @@ def test_all_args(self, mock_deploy_context, mock_deploy_click, mock_package_con
103
104
config_file = self .config_file ,
104
105
resolve_image_repos = self .resolve_image_repos ,
105
106
disable_rollback = self .disable_rollback ,
107
+ import_existing_resources = self .import_existing_resources ,
106
108
on_failure = self .on_failure ,
107
109
max_wait_duration = self .max_wait_duration ,
108
110
)
@@ -130,6 +132,7 @@ def test_all_args(self, mock_deploy_context, mock_deploy_click, mock_package_con
130
132
signing_profiles = self .signing_profiles ,
131
133
use_changeset = self .use_changeset ,
132
134
disable_rollback = self .disable_rollback ,
135
+ import_existing_resources = self .import_existing_resources ,
133
136
poll_delay = os .getenv ("SAM_CLI_POLL_DELAY" ),
134
137
on_failure = self .on_failure ,
135
138
max_wait_duration = self .max_wait_duration ,
@@ -221,6 +224,7 @@ def test_all_args_guided_no_to_authorization_confirmation_prompt(
221
224
config_file = self .config_file ,
222
225
resolve_image_repos = self .resolve_image_repos ,
223
226
disable_rollback = self .disable_rollback ,
227
+ import_existing_resources = self .import_existing_resources ,
224
228
on_failure = self .on_failure ,
225
229
max_wait_duration = self .max_wait_duration ,
226
230
)
@@ -323,6 +327,7 @@ def test_all_args_guided_use_defaults(
323
327
config_file = self .config_file ,
324
328
resolve_image_repos = self .resolve_image_repos ,
325
329
disable_rollback = self .disable_rollback ,
330
+ import_existing_resources = self .import_existing_resources ,
326
331
on_failure = self .on_failure ,
327
332
max_wait_duration = self .max_wait_duration ,
328
333
)
@@ -350,6 +355,7 @@ def test_all_args_guided_use_defaults(
350
355
signing_profiles = self .signing_profiles ,
351
356
use_changeset = self .use_changeset ,
352
357
disable_rollback = True ,
358
+ import_existing_resources = False ,
353
359
poll_delay = 5 ,
354
360
on_failure = self .on_failure ,
355
361
max_wait_duration = self .max_wait_duration ,
@@ -469,6 +475,7 @@ def test_all_args_guided(
469
475
config_file = self .config_file ,
470
476
resolve_image_repos = self .resolve_image_repos ,
471
477
disable_rollback = self .disable_rollback ,
478
+ import_existing_resources = self .import_existing_resources ,
472
479
on_failure = self .on_failure ,
473
480
max_wait_duration = self .max_wait_duration ,
474
481
)
@@ -496,6 +503,7 @@ def test_all_args_guided(
496
503
signing_profiles = self .signing_profiles ,
497
504
use_changeset = self .use_changeset ,
498
505
disable_rollback = True ,
506
+ import_existing_resources = False ,
499
507
poll_delay = 5 ,
500
508
on_failure = self .on_failure ,
501
509
max_wait_duration = self .max_wait_duration ,
@@ -618,6 +626,7 @@ def test_all_args_guided_no_save_echo_param_to_config(
618
626
config_file = self .config_file ,
619
627
resolve_image_repos = self .resolve_image_repos ,
620
628
disable_rollback = self .disable_rollback ,
629
+ import_existing_resources = self .import_existing_resources ,
621
630
on_failure = self .on_failure ,
622
631
max_wait_duration = self .max_wait_duration ,
623
632
)
@@ -649,6 +658,7 @@ def test_all_args_guided_no_save_echo_param_to_config(
649
658
signing_profiles = self .signing_profiles ,
650
659
use_changeset = self .use_changeset ,
651
660
disable_rollback = True ,
661
+ import_existing_resources = False ,
652
662
poll_delay = 5 ,
653
663
on_failure = self .on_failure ,
654
664
max_wait_duration = self .max_wait_duration ,
@@ -778,6 +788,7 @@ def test_all_args_guided_no_params_save_config(
778
788
signing_profiles = self .signing_profiles ,
779
789
resolve_image_repos = self .resolve_image_repos ,
780
790
disable_rollback = self .disable_rollback ,
791
+ import_existing_resources = self .import_existing_resources ,
781
792
on_failure = self .on_failure ,
782
793
max_wait_duration = self .max_wait_duration ,
783
794
)
@@ -805,6 +816,7 @@ def test_all_args_guided_no_params_save_config(
805
816
signing_profiles = self .signing_profiles ,
806
817
use_changeset = self .use_changeset ,
807
818
disable_rollback = True ,
819
+ import_existing_resources = False ,
808
820
poll_delay = 5 ,
809
821
on_failure = self .on_failure ,
810
822
max_wait_duration = self .max_wait_duration ,
@@ -918,6 +930,7 @@ def test_all_args_guided_no_params_no_save_config(
918
930
signing_profiles = self .signing_profiles ,
919
931
resolve_image_repos = self .resolve_image_repos ,
920
932
disable_rollback = self .disable_rollback ,
933
+ import_existing_resources = self .import_existing_resources ,
921
934
on_failure = self .on_failure ,
922
935
max_wait_duration = self .max_wait_duration ,
923
936
)
@@ -945,6 +958,7 @@ def test_all_args_guided_no_params_no_save_config(
945
958
signing_profiles = self .signing_profiles ,
946
959
use_changeset = self .use_changeset ,
947
960
disable_rollback = self .disable_rollback ,
961
+ import_existing_resources = self .import_existing_resources ,
948
962
poll_delay = 5 ,
949
963
on_failure = self .on_failure ,
950
964
max_wait_duration = self .max_wait_duration ,
@@ -996,6 +1010,7 @@ def test_all_args_resolve_s3(
996
1010
signing_profiles = self .signing_profiles ,
997
1011
resolve_image_repos = self .resolve_image_repos ,
998
1012
disable_rollback = self .disable_rollback ,
1013
+ import_existing_resources = self .import_existing_resources ,
999
1014
on_failure = self .on_failure ,
1000
1015
max_wait_duration = self .max_wait_duration ,
1001
1016
)
@@ -1023,6 +1038,7 @@ def test_all_args_resolve_s3(
1023
1038
signing_profiles = self .signing_profiles ,
1024
1039
use_changeset = self .use_changeset ,
1025
1040
disable_rollback = self .disable_rollback ,
1041
+ import_existing_resources = self .import_existing_resources ,
1026
1042
poll_delay = 5 ,
1027
1043
on_failure = self .on_failure ,
1028
1044
max_wait_duration = self .max_wait_duration ,
@@ -1062,6 +1078,7 @@ def test_resolve_s3_and_s3_bucket_both_set(self):
1062
1078
signing_profiles = self .signing_profiles ,
1063
1079
resolve_image_repos = self .resolve_image_repos ,
1064
1080
disable_rollback = self .disable_rollback ,
1081
+ import_existing_resources = self .import_existing_resources ,
1065
1082
on_failure = self .on_failure ,
1066
1083
max_wait_duration = self .max_wait_duration ,
1067
1084
)
@@ -1114,6 +1131,7 @@ def test_all_args_resolve_image_repos(
1114
1131
signing_profiles = self .signing_profiles ,
1115
1132
resolve_image_repos = True ,
1116
1133
disable_rollback = self .disable_rollback ,
1134
+ import_existing_resources = self .import_existing_resources ,
1117
1135
on_failure = self .on_failure ,
1118
1136
max_wait_duration = self .max_wait_duration ,
1119
1137
)
@@ -1141,6 +1159,7 @@ def test_all_args_resolve_image_repos(
1141
1159
signing_profiles = self .signing_profiles ,
1142
1160
use_changeset = True ,
1143
1161
disable_rollback = self .disable_rollback ,
1162
+ import_existing_resources = self .import_existing_resources ,
1144
1163
poll_delay = 5 ,
1145
1164
on_failure = self .on_failure ,
1146
1165
max_wait_duration = self .max_wait_duration ,
@@ -1189,6 +1208,7 @@ def test_passing_parameter_overrides_to_context(
1189
1208
config_file = self .config_file ,
1190
1209
resolve_image_repos = self .resolve_image_repos ,
1191
1210
disable_rollback = self .disable_rollback ,
1211
+ import_existing_resources = self .import_existing_resources ,
1192
1212
on_failure = self .on_failure ,
1193
1213
max_wait_duration = self .max_wait_duration ,
1194
1214
)
@@ -1216,6 +1236,7 @@ def test_passing_parameter_overrides_to_context(
1216
1236
signing_profiles = self .signing_profiles ,
1217
1237
use_changeset = self .use_changeset ,
1218
1238
disable_rollback = self .disable_rollback ,
1239
+ import_existing_resources = self .import_existing_resources ,
1219
1240
poll_delay = os .getenv ("SAM_CLI_POLL_DELAY" ),
1220
1241
on_failure = self .on_failure ,
1221
1242
max_wait_duration = self .max_wait_duration ,
0 commit comments