@@ -303,7 +303,7 @@ def test_lambda_handler_extended_attributes_success(self):
303303 item [AuditTableKeys .QUEUE_NAME ]["S" ], test_cases [0 ].ods_code + "_" + EXTENDED_ATTRIBUTES_VACC_TYPE
304304 )
305305 self .assertEqual (item [AuditTableKeys .STATUS ]["S" ], "Processed" )
306- self .assertEqual (item [AuditTableKeys .TIMESTAMP ]["S" ], test_cases [0 ].created_at_formatted_string )
306+ self .assertEqual (item [AuditTableKeys .CREATED_AT ]["S" ], test_cases [0 ].created_at_formatted_string )
307307 self .assertEqual (item [AuditTableKeys .EXPIRES_AT ]["N" ], str (test_cases [0 ].expires_at ))
308308 # File should be moved to destination/
309309 dest_key = f"dps_destination/{ test_cases [0 ].file_key } "
@@ -356,7 +356,7 @@ def test_lambda_handler_extended_attributes_failure(self):
356356 self .assertEqual (
357357 item [AuditTableKeys .QUEUE_NAME ]["S" ], test_cases [0 ].ods_code + "_" + EXTENDED_ATTRIBUTES_VACC_TYPE
358358 )
359- self .assertEqual (item [AuditTableKeys .TIMESTAMP ]["S" ], test_cases [0 ].created_at_formatted_string )
359+ self .assertEqual (item [AuditTableKeys .CREATED_AT ]["S" ], test_cases [0 ].created_at_formatted_string )
360360 self .assertEqual (item [AuditTableKeys .STATUS ]["S" ], "Failed" )
361361 self .assertEqual (
362362 item [AuditTableKeys .ERROR_DETAILS ]["S" ],
@@ -418,7 +418,7 @@ def test_lambda_handler_extended_attributes_invalid_key(self):
418418 self .assertEqual (item [AuditTableKeys .MESSAGE_ID ]["S" ], test_cases [0 ].message_id )
419419 self .assertEqual (item [AuditTableKeys .FILENAME ]["S" ], invalid_file_key )
420420 self .assertEqual (item [AuditTableKeys .QUEUE_NAME ]["S" ], "unknown" )
421- self .assertEqual (item [AuditTableKeys .TIMESTAMP ]["S" ], test_cases [0 ].created_at_formatted_string )
421+ self .assertEqual (item [AuditTableKeys .CREATED_AT ]["S" ], test_cases [0 ].created_at_formatted_string )
422422 self .assertEqual (item [AuditTableKeys .STATUS ]["S" ], "Failed" )
423423 self .assertEqual (
424424 item [AuditTableKeys .ERROR_DETAILS ]["S" ],
@@ -474,7 +474,7 @@ def test_lambda_invalid_file_key_no_other_files_in_queue(self, mock_get_redis_cl
474474 "queue_name" : {"S" : "unknown_unknown" },
475475 "status" : {"S" : "Failed" },
476476 "error_details" : {"S" : "Initial file validation failed: invalid file key" },
477- "timestamp " : {"S" : file_details .created_at_formatted_string },
477+ "created_at " : {"S" : file_details .created_at_formatted_string },
478478 "expires_at" : {"N" : str (file_details .expires_at )},
479479 }
480480 ]
@@ -517,7 +517,7 @@ def test_lambda_invalid_permissions(self, mock_get_redis_client):
517517 "queue_name" : {"S" : "RAVS_RSV" },
518518 "status" : {"S" : "Not processed - Unauthorised" },
519519 "error_details" : {"S" : "Initial file validation failed: RAVS does not have permissions for RSV" },
520- "timestamp " : {"S" : file_details .created_at_formatted_string },
520+ "created_at " : {"S" : file_details .created_at_formatted_string },
521521 "expires_at" : {"N" : str (file_details .expires_at )},
522522 }
523523 ]
@@ -561,7 +561,7 @@ def test_lambda_adds_event_to_audit_table_as_failed_when_unexpected_exception_is
561561 "queue_name" : {"S" : "EMIS_FLU" },
562562 "status" : {"S" : "Failed" },
563563 "error_details" : {"S" : "Some unexpected exception" },
564- "timestamp " : {"S" : test_file_details .created_at_formatted_string },
564+ "created_at " : {"S" : test_file_details .created_at_formatted_string },
565565 "expires_at" : {"N" : str (test_file_details .expires_at )},
566566 }
567567 ]
0 commit comments