You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This test suite provides automated end-to-end (E2E) testing for the Immunisation FHIR API batch processing pipeline. It verifies that batch file submissions are correctly processed, acknowledged, and validated across the system.
4
+
5
+
## Overview
6
+
- Framework: Python unittest
7
+
- Purpose: Simulate real-world batch file submissions, poll for acknowledgements, and validate processing results.
8
+
- Test Scenarios: Defined in the scenarios module and enabled in setUp().
9
+
- Key Features:
10
+
-- Uploads test batch files to S3.
11
+
-- Waits for and validates ACK (acknowledgement) files.
12
+
-- Cleans up SQS queues and test artifacts after each run.
13
+
14
+
## Test Flow
15
+
1. Setup (setUp)
16
+
- Loads and enables a set of test scenarios.
17
+
- Prepares test data for batch submission.
18
+
2. Test Execution (test_batch_submission)
19
+
- Uploads ALL enabled test files to S3.
20
+
- Polls for ALL ACK responses and forwarded files.
21
+
- Validates the content and structure of ACK files.
22
+
3. Teardown (tearDown)
23
+
- Cleans up SQS queues and any generated test files.
24
+
25
+
## Key Functions
26
+
- send_files(tests): Uploads enabled test files to the S3 input bucket.
27
+
- poll_for_responses(tests, max_timeout): Polls for ACKs and processed files, with a timeout.
28
+
- validate_responses(tests): Validates the content of ACK files and checks for expected outcomes.
29
+
30
+
## How to Run
31
+
1. Ensure all dependencies and environment variables are set (see project root README).
32
+
2. Run tests from vscode debugger or from makefile using
0 commit comments