You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Runs `flapi pack` against the fixture, then starts the bundled
output from a clean cwd with no source tree present, hits
`/hello`, asserts the same 200 + body (spike behaviour Ability to pass default values to query parameters #3).
The HTTP round-trip requires the bundled server to load its
`flapi.yaml` from `embed://` and resolve `template.path: ./sqls`
sensibly against an `embed://` base. The `EmbeddedArchiveFileProvider`
normalises paths (`./foo` -> `foo`) which is the right call for
relative lookups, but `ConfigManager` computes a base path from the
config file's parent dir. We need to confirm that base-path
computation works (or doesn't trip) when the config came from
`embed://flapi.yaml`.
Acceptance
3 new pytest cases in `test/integration/test_self_packaging_http.py`
(or extend `test_self_packaging.py` if simpler).
The bundled binary serves at least one endpoint from a clean cwd.
The `read_csv('embed://...')` query returns expected rows over the
REST surface.
Tests added to the existing `integration-tests` CI job (Linux
amd64) so they run on every PR.
Activity
fix(self-packaging #62): bundled-mode HTTP serving end-to-end (#69)