Skip to content

Commit 7f7c693

Browse files
Add explanation on testing locally deployed app pointing at INT.
1 parent efb7a1b commit 7f7c693

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

gateway-api/tests/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,26 @@ The GitHub Actions workflow (`.github/workflows/stage-2-test.yaml`) orchestrates
350350
│ 3. Enforce thresholds │
351351
└───────────────────────┘
352352
```
353+
354+
## Testing INT
355+
356+
To test a locally deployed application against the integration environments of external services, PDS, SDS and Provider systems:
357+
358+
* Set up secrets in `.secrets` as per the instructions in `.secrets/README.md`
359+
* `make env-int` - writes the `.env` file to point the application at the integration environments for each external service.
360+
* `make deploy` - will deploy the application, feeding the `.env` values in to its container environment.
361+
362+
### Manual test
363+
364+
To manually test the application against the integration environments, run the Bruno collection using the `INT.yml` environment.
365+
366+
### Automated tests
367+
368+
To run a subset the automated test suite, run the following commands
369+
370+
```bash
371+
make env-test-int
372+
source .env.test
373+
cd gateway-api
374+
poetry run pytest tests/integration/test_get_structured_record.py -k happy_path
375+
```

0 commit comments

Comments
 (0)