Skip to content

Commit 5070008

Browse files
committed
wrapper to produce a 2505 set of test letters (#269)
Signed-off-by: Mark Slowey <mark.slowey1@nhs.net>
1 parent 565a26f commit 5070008

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

scripts/utilities/letter-test-data/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,33 @@ npm run cli -- create-letter-batch \
2929
--status PENDING \
3030
--count 10
3131
```
32+
33+
## Batch Creation Script
34+
35+
For creating multiple batches with different specification and group IDs, use the bash wrapper script:
36+
37+
```bash
38+
./src/create-batch-letters.sh \
39+
--supplier-id supplier-id \
40+
--environment main \
41+
--awsAccountId 820178564574 \
42+
--count 25 \
43+
--status PENDING
44+
```
45+
46+
This script creates 3 batches with the following configurations:
47+
48+
- Batch 1: `--specification-id integration-specification-english --group-id group-english`
49+
- Batch 2: `--specification-id integration-specification-braille --group-id group-accessible`
50+
- Batch 3: `--specification-id integration-specification-arabic --group-id group-international`
51+
52+
**Note:** The default configuration creates 2,505 letters total (835 letters × 3 batches) with an 18-month TTL.
53+
54+
### Script Options
55+
56+
- `--supplier-id` (required): Supplier ID for the letters
57+
- `--environment` (required): Environment (e.g., pr147, main)
58+
- `--awsAccountId` (required): AWS Account ID for S3 bucket resolution
59+
- `--count` (optional): Number of letters per batch (default: 835)
60+
- `--status` (optional): Letter status (default: PENDING)
61+
- `--ttl-hours` (optional): TTL in hours (default: 13140, ~18 months)

0 commit comments

Comments
 (0)