add testing section to readme
This commit is contained in:
@@ -43,6 +43,7 @@ docker/
|
|||||||
Dockerfile
|
Dockerfile
|
||||||
garage.toml
|
garage.toml
|
||||||
.env.keys
|
.env.keys
|
||||||
|
tests/ # pytest integration tests (run post-deploy)
|
||||||
.gitea/workflows/ # Per-app deploy workflows + provision.yml
|
.gitea/workflows/ # Per-app deploy workflows + provision.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -160,6 +161,21 @@ docker exec garage /garage layout apply --version 1
|
|||||||
If only hantim is reprovisioned, argento retains the layout and hantim
|
If only hantim is reprovisioned, argento retains the layout and hantim
|
||||||
reconnects automatically.
|
reconnects automatically.
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
Tests live in `tests/` and run with pytest:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install pytest
|
||||||
|
pytest tests/ -v
|
||||||
|
```
|
||||||
|
|
||||||
|
Tests auto-discover sites from `docker/nginx/conf.d/*.conf` — no list to
|
||||||
|
maintain when adding new sites.
|
||||||
|
|
||||||
|
The `deploy-nginx.yml` workflow runs tests automatically after each nginx
|
||||||
|
deploy. If tests fail, Gitea sends an email notification.
|
||||||
|
|
||||||
## Secrets
|
## Secrets
|
||||||
|
|
||||||
### Bitwarden Secrets Manager
|
### Bitwarden Secrets Manager
|
||||||
|
|||||||
Reference in New Issue
Block a user