Skip to content

test: run a real gateway plugin in live services #656

Closed

Description

@uniqueg

Problem

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

  1. added this to the v0.21.0 milestone on Nov 3, 2026
  2. added
    priority: medium
    status: in progress
    type: testing
    workload: hours
    on Nov 3, 2026
  3. removed
    status: in progress
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype: testingworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions