Skip to content

Feat/smoke tests#304

Open
travis-sauer-oltech wants to merge 4 commits intomainfrom
feat/smoke-tests
Open

Feat/smoke tests#304
travis-sauer-oltech wants to merge 4 commits intomainfrom
feat/smoke-tests

Conversation

@travis-sauer-oltech
Copy link
Copy Markdown
Member

No description provided.

…workflow

- Add /health liveness probe (JSON, no auth, no DB) in core/views/common.py
- Wire /health route in core/urls.py
- Register Fly HTTP health check in fly.toml
- Add 31-test smoke suite (tests/test_smoke.py) covering:
  - P0: liveness (/health, homepage, login page)
  - P1: API docs (swagger-ui, redoc), version verification
  - P2: auth enforcement (12 endpoints), admin site, static files,
    HTTPS enforcement, security headers, 404 handling
- Add --smoke-url opt-in CLI option and @pytest.mark.smoke marker
- Add post-deploy smoke-test CI job in fly_dev.yml (targets jhe.fly.dev)
- Add on-demand smoke_test.yml workflow (workflow_dispatch for any URL)
- Add comprehensive doc/TESTING.md for new contributors
- Link testing docs from README.md
Copy link
Copy Markdown
Member

@minrk minrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in principle these make sense.

I think most of these tests should be run in the regular test suite, too, is it possible to configure the tests to run against a localhost URL when smoke-url is not specified, and also run against a live instance when specified?

That seems okay as a later improvement, too.

Comment thread doc/TESTING.md Outdated
Comment thread tests/test_smoke.py
("/api/v1/data_sources", "Data sources list"),
("/api/v1/jhe_settings", "JHE settings list"),
],
ids=lambda v: v if isinstance(v, str) and v.startswith("/") else "",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this ids does anything, what's the goal here?

travis-sauer-oltech and others added 2 commits March 21, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants