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
{{ message }}
Repository navigation
test: run a real gateway plugin in live services #656
The integration tests and the chart install use petstore apps, which have no plugins. ci/gateway-values.yaml is about the Gateway API, not plugins, and no CI values file sets pluginStore.existingSecret. So no secret is passed into a running pod, and no real plugin runs in a live service. In-process tests exist (tests/plugins/test_plugin_api.py, tests/plugins/test_plugin_runtime.py) and the chart tests check the rendered secret reference, but a defect that shows only with a real gateway surfaces downstream, after a release.
Found by the pre-release review of 0.20.0.
Proposal
A minimal gateway example, examples/gateway, with a real plugin installed as a distribution with its entry point:
integration job: the example in Docker Compose, with its own tests;
chart install: the example's thin chart over foca-common, with app, worker and broker and pluginStore.existingSecret, checked by helm test.
Acceptance criteria
The plugin runs in the app process and in a Celery worker, in real containers, and changes the request.
ctx.store is shared through MongoDB across requests and processes.
FOCA_PLUGINS_STORE_KEY_SECRET reaches app and worker: ctx.store.key_for() returns the hk: form, with the same value in both.
Provenance names the installed plugin and its build key.
Docs: the example's README, and where examples and integration tests are described.
Activity