66 wait_for_ack_file ,
77 check_ack_file_content ,
88)
9- from constants import INPUT_BUCKET , INPUT_PREFIX , ACK_BUCKET
9+ from constants import INPUT_BUCKET , INPUT_PREFIX , ACK_BUCKET , PRE_VALIDATION_ERROR , POST_VALIDATION_ERROR
1010from clients import logger
1111
1212
@@ -17,7 +17,7 @@ def e2e_test_create_success():
1717 os .remove (input_file )
1818 ack_key = wait_for_ack_file (None , input_file )
1919 ack_content = get_file_content_from_s3 (ACK_BUCKET , ack_key )
20- check_ack_file_content (ack_content , "OK" )
20+ check_ack_file_content (ack_content , "OK" , None )
2121 logger .info ("Test e2e_test_create_success successfully passed" )
2222
2323
@@ -28,7 +28,7 @@ def e2e_test_update_success():
2828 os .remove (input_file )
2929 ack_key = wait_for_ack_file (None , input_file )
3030 ack_content = get_file_content_from_s3 (ACK_BUCKET , ack_key )
31- check_ack_file_content (ack_content , "OK" )
31+ check_ack_file_content (ack_content , "OK" , None )
3232 logger .info ("Test e2e_test_update_success successfully passed" )
3333
3434
@@ -39,7 +39,7 @@ def e2e_test_delete_success():
3939 os .remove (input_file )
4040 ack_key = wait_for_ack_file (None , input_file )
4141 ack_content = get_file_content_from_s3 (ACK_BUCKET , ack_key )
42- check_ack_file_content (ack_content , "OK" )
42+ check_ack_file_content (ack_content , "OK" , None )
4343 logger .info ("Test e2e_test_delete_success successfully passed" )
4444
4545
@@ -50,7 +50,11 @@ def e2e_test_pre_validation_error():
5050 os .remove (input_file )
5151 ack_key = wait_for_ack_file (None , input_file )
5252 ack_content = get_file_content_from_s3 (ACK_BUCKET , ack_key )
53- check_ack_file_content (ack_content , "Fatal Error" )
53+ check_ack_file_content (
54+ ack_content ,
55+ "Fatal Error" ,
56+ PRE_VALIDATION_ERROR ,
57+ )
5458 logger .info ("Test e2e_test_pre_validation_error successfully passed" )
5559
5660
@@ -61,7 +65,11 @@ def e2e_test_post_validation_error():
6165 os .remove (input_file )
6266 ack_key = wait_for_ack_file (None , input_file )
6367 ack_content = get_file_content_from_s3 (ACK_BUCKET , ack_key )
64- check_ack_file_content (ack_content , "Fatal Error" )
68+ check_ack_file_content (
69+ ack_content ,
70+ "Fatal Error" ,
71+ POST_VALIDATION_ERROR ,
72+ )
6573 logger .info ("Test e2e_test_post_validation_error successfully passed" )
6674
6775
0 commit comments