diff options
| author | Pjotr <wrk@bosa.lan> | 2026-11-06 17:10:04 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-11-06 17:10:04 +0000 |
| commit | fc59b08510022ed6eeb07a39481ae9918a62561f (patch) | |
| tree | 7ad6d03d62054a49341a3d39c698afc918d9a54a /test/python/test_version.py | |
| parent | 485531c9cf2185e81ba27509dec8ac96467feb21 (diff) | |
| download | genenetwork4-fc59b08510022ed6eeb07a39481ae9918a62561f.tar.gz | |
tests: run against a real database and index, with a gn-auth stub
The suites skip rather than fail whatever needs a database, an index or a token they cannot get, which is right in the build sandbox but leaves most endpoints unexercised. With a live MariaDB, a full Xapian index (GN4_FULL_INDEX) and a token, the same commands run the whole suite: 225 Rust tests pass with 0 failures, and the Python suite runs all 94 with no skips -- as against 77 skipped without them. The token was the only piece with no local stand-in, so add scripts/gn-auth-stub.py: it serves the JWKS matching the committed test key, answers /auth/token (so POST /get-test-token works) and answers both authorisation endpoints with "no privileges", the stranger case the non-public 403 tests assert. --grant-resource-id grants one resource id to the fixture token for the owner-side tests. * scripts/gn-auth-stub.py: new file. * README.md (Tests): "Against a real database and index", what the three inputs are, the full run, and what still skips and why.
Diffstat (limited to 'test/python/test_version.py')
0 files changed, 0 insertions, 0 deletions
