@@ -39,7 +39,9 @@ async def asyncTearDown(self):
3939 if environment != "ref" :
4040 async def test_create_success (self ):
4141 """Test CREATE scenario."""
42- input_file = generate_csv ("PHYLIS" , "0.3" , action_flag = "CREATE" , offset = 1 )
42+ input_file = generate_csv ("PHYLIS" , "0.3" ,
43+ action_flag = "CREATE" , offset = 1 ,
44+ vax_type = "COVID19" , ods = "8HA94" )
4345
4446 key = await upload_file_to_s3 (input_file , SOURCE_BUCKET , INPUT_PREFIX )
4547 self .uploaded_files .append (key )
@@ -55,7 +57,9 @@ async def test_create_success(self):
5557 async def test_duplicate_create (self ):
5658 """Test DUPLICATE scenario."""
5759
58- input_file = generate_csv ("PHYLIS" , "0.3" , action_flag = "CREATE" , same_id = True , offset = 2 )
60+ input_file = generate_csv ("PHYLIS" , "0.3" ,
61+ action_flag = "CREATE" , same_id = True , offset = 2 ,
62+ vax_type = "FLU" , ods = "8HK48" )
5963
6064 key = await upload_file_to_s3 (input_file , SOURCE_BUCKET , INPUT_PREFIX )
6165 self .uploaded_files .append (key )
@@ -70,7 +74,8 @@ async def test_duplicate_create(self):
7074
7175 async def test_update_success (self ):
7276 """Test UPDATE scenario."""
73- input_file = generate_csv ("PHYLIS" , "0.5" , action_flag = "UPDATE" , offset = 3 )
77+ input_file = generate_csv ("PHYLIS" , "0.5" , action_flag = "UPDATE" ,
78+ offset = 3 , vax_type = "MMR" , ods = "V0V8L" )
7479
7580 key = await upload_file_to_s3 (input_file , SOURCE_BUCKET , INPUT_PREFIX )
7681 self .uploaded_files .append (key )
@@ -85,7 +90,9 @@ async def test_update_success(self):
8590
8691 async def test_reinstated_success (self ):
8792 """Test REINSTATED scenario."""
88- input_file = generate_csv ("PHYLIS" , "0.5" , action_flag = "REINSTATED" , offset = 4 )
93+ input_file = generate_csv ("PHYLIS" , "0.5" ,
94+ action_flag = "REINSTATED" , offset = 4 ,
95+ vax_type = "HPV" , ods = "DPSREDUCED" )
8996
9097 key = await upload_file_to_s3 (input_file , SOURCE_BUCKET , INPUT_PREFIX )
9198 self .uploaded_files .append (key )
@@ -100,7 +107,9 @@ async def test_reinstated_success(self):
100107
101108 async def test_update_reinstated_success (self ):
102109 """Test UPDATE-REINSTATED scenario."""
103- input_file = generate_csv ("PHYLIS" , "0.5" , action_flag = "UPDATE-REINSTATED" , offset = 5 )
110+ input_file = generate_csv ("PHYLIS" , "0.5" ,
111+ action_flag = "UPDATE-REINSTATED" , offset = 5 ,
112+ vax_type = "MENACWY" , ods = "DPSFULL" )
104113
105114 key = await upload_file_to_s3 (input_file , SOURCE_BUCKET , INPUT_PREFIX )
106115 self .uploaded_files .append (key )
@@ -115,7 +124,9 @@ async def test_update_reinstated_success(self):
115124
116125 async def test_delete_success (self ):
117126 """Test DELETE scenario."""
118- input_file = generate_csv ("PHYLIS" , "0.8" , action_flag = "DELETE" , offset = 6 )
127+ input_file = generate_csv ("PHYLIS" , "0.8" ,
128+ action_flag = "DELETE" , offset = 6 ,
129+ vax_type = "MMR" , ods = "V0V8L" )
119130
120131 key = await upload_file_to_s3 (input_file , SOURCE_BUCKET , INPUT_PREFIX )
121132 self .uploaded_files .append (key )
@@ -130,7 +141,8 @@ async def test_delete_success(self):
130141
131142 async def test_pre_validation_error (self ):
132143 """Test PRE-VALIDATION error scenario."""
133- input_file = generate_csv ("PHYLIS" , "TRUE" , action_flag = "CREATE" , offset = 7 )
144+ input_file = generate_csv ("PHYLIS" , "TRUE" , action_flag = "CREATE" ,
145+ offset = 7 , vax_type = "MMR" , ods = "X8E5B" )
134146
135147 key = await upload_file_to_s3 (input_file , SOURCE_BUCKET , INPUT_PREFIX )
136148 self .uploaded_files .append (key )
@@ -145,7 +157,8 @@ async def test_pre_validation_error(self):
145157
146158 async def test_post_validation_error (self ):
147159 """Test POST-VALIDATION error scenario."""
148- input_file = generate_csv ("" , "0.3" , action_flag = "CREATE" , offset = 8 )
160+ input_file = generate_csv ("" , "0.3" , action_flag = "CREATE" ,
161+ offset = 8 , vax_type = "3IN1" , ods = "YGJ" )
149162
150163 key = await upload_file_to_s3 (input_file , SOURCE_BUCKET , INPUT_PREFIX )
151164 self .uploaded_files .append (key )
@@ -158,8 +171,9 @@ async def test_post_validation_error(self):
158171
159172 async def test_file_name_validation_error (self ):
160173 """Test FILE-NAME-VALIDATION error scenario."""
161- input_file = generate_csv ("PHYLIS" , "0.3" , action_flag = "CREATE" , file_key = True , offset = 9 )
162-
174+ input_file = generate_csv ("PHYLIS" , "0.3" , action_flag = "CREATE" ,
175+ file_key = True , offset = 9 ,
176+ vax_type = "HPV" , ods = "YGA" )
163177 key = await upload_file_to_s3 (input_file , SOURCE_BUCKET , INPUT_PREFIX )
164178 self .uploaded_files .append (key )
165179
@@ -171,7 +185,9 @@ async def test_file_name_validation_error(self):
171185
172186 async def test_header_name_validation_error (self ):
173187 """Test HEADER-NAME-VALIDATION error scenario."""
174- input_file = generate_csv ("PHYLIS" , "0.3" , action_flag = "CREATE" , headers = "NH_NUMBER" , offset = 10 )
188+ input_file = generate_csv ("PHYLIS" , "0.3" , action_flag = "CREATE" ,
189+ headers = "NH_NUMBER" , offset = 10 ,
190+ vax_type = "3IN1" , ods = "YGMYW" )
175191
176192 key = await upload_file_to_s3 (input_file , SOURCE_BUCKET , INPUT_PREFIX )
177193 self .uploaded_files .append (key )
@@ -191,7 +207,8 @@ async def test_invalid_permission(self):
191207 await upload_config_file ("MMR_FULL" ) # permissions_config.json is updated here
192208 await asyncio .sleep (20 )
193209
194- input_file = generate_csv ("PHYLIS" , "0.3" , action_flag = "CREATE" , offset = 11 )
210+ input_file = generate_csv ("PHYLIS" , "0.3" , action_flag = "CREATE" ,
211+ offset = 11 , vax_type = "PINNACLE" , ods = "8J1100001" )
195212
196213 key = await upload_file_to_s3 (input_file , SOURCE_BUCKET , INPUT_PREFIX )
197214 self .uploaded_files .append (key )
@@ -208,7 +225,8 @@ async def test_invalid_permission(self):
208225 else :
209226 async def test_end_to_end_speed_test_with_100000_rows (self ):
210227 """Test end_to_end_speed_test_with_100000_rows scenario with full integration"""
211- input_file = generate_csv_with_ordered_100000_rows (12 )
228+ input_file = generate_csv_with_ordered_100000_rows (12 ,
229+ vax_type = "COVID19" , ods = "DPSFULL" )
212230
213231 key = await upload_file_to_s3 (input_file , SOURCE_BUCKET , INPUT_PREFIX )
214232 self .uploaded_files .append (key )
0 commit comments