Skip to content

test(e2e): port gateway-configuration tests that need no restart to feature suites - #5792

Draft
matthewgrossman wants to merge 20 commits into
test/5728-share-environment-helpers/matthewgrossmanfrom
test/5729-port-gateway-config-tests/matthewgrossman
Draft

matthewgrossman wants to merge 20 commits into
test/5728-share-environment-helpers/matthewgrossmanfrom
test/5729-port-gateway-config-tests/matthewgrossman

Conversation

@matthewgrossman

@matthewgrossman matthewgrossman commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Port the #5729 gateway-configuration tests that need no gateway restart from e2e/rust to testkit feature suites, and remove the legacy tests and their wrapper wiring. Each suite runs on a tmachine environment that sets the gateway configuration it needs, so no test edits gateway config.

This stacks on #5780 (#5728) and uses its gateway_overrides role, host TLS recorder and typed Profile/Credential/install_provider testkit API. #5907 adds the GitHub App provider test to features/provider-refresh on top of this PR.

Related Issue

Closes #5729
Part of #5281

Changes

  • features/provider-refresh: the refresh-managed credential handle test. Adds cx.provider_refresh(provider, key) (configure, rotate, status) to the testkit context. It matches the legacy test as feat(provider): add a refresh strategy for github app installations #3676 strengthened it: the probe runs after every rotation, sends the token as both Bearer and Basic x-access-token, and after reconfiguring the test rotates again, waits for a fresh process to succeed and checks that the old handle stays revoked.
  • features/otlp-relay: the agent trace relay tests, with an OTLP collector fixture in tests/support and a fedora-podman-rootless-otlp environment that points the gateway at it.
  • features/provider-token-exchange: the SPIFFE token exchange tests, with a SPIFFE Workload API fixture in tests/support and SPIFFE environments.
  • features/provider-rotation: provider_readiness and stable_external_placeholders. The TLS servers now run on the test host, signed by a new additional-CA environment (<base>-additional-ca). Before, they ran in containers on the e2e network, with a supervisor image rebuilt to trust their CA. The wrong-host checks use the host's primary IPv4 address, and the tests check that it differs from the address host.openshell.internal reaches.
  • e2e-suites.yml: rows for the new suites, plus an optional per-row filter (a nextest filterset). It lets the inert OTLP test run on ubuntu-docker-rootful while the collector tests run on fedora-podman-rootless-otlp.
  • Profiles: the refresh-handle and readiness profiles use testkit::Profile, and every suite creates providers with install_provider. The stable-placeholder and token-exchange profiles stay YAML because Profile has no stable_placeholder or token_grant setter yet.
  • Test targets: each target uses harness = false with testkit::main() (test(testkit): support per-environment skips in all suites #5789).
  • e2e/rust: removes the five legacy tests, their [[test]] entries and dependencies, the PODMAN_CI_TESTS entries, and the SPIFFE and OTLP wiring in the Docker and Podman wrappers. provider_github_app (feat(provider): add a refresh strategy for github app installations #3676) and its support files stay for test(e2e): port the tests added to e2e/rust after the migration inventory #5907 to port.

Pending

Driver coverage

Test Before Now
provider refresh handle Podman (full task only) Docker rootful, Podman rootful, Podman rootless
OTLP relay, collector Podman Podman rootless
OTLP relay, inert Docker Docker rootful
provider token exchange Podman Podman rootless (SPIFFE)
provider readiness, stable placeholders Docker Docker rootful, Podman rootful (additional CA)

Testing

Each suite ran locally through openshell-test-runner on tmachine:

  • provider-refresh: 3/3 on ubuntu-docker-rootful/deb and fedora-podman-rootful/rpm
  • provider-rotation: 3/3 on ubuntu-docker-rootful-additional-ca/deb and fedora-podman-rootful-additional-ca/rpm (one more Podman run never started because of a VM SSH login failure)
  • otlp-relay: collector tests on fedora-podman-rootless-otlp/rpm, inert test on ubuntu-docker-rootful/deb
  • provider-token-exchange: fedora-podman-rootless-spiffe/rpm

After the rebase onto #5780, only the checks below ran locally, not the tmachine suites. Branch E2E covers those. Rendered typed profiles were checked to produce the same gateway proto as the old YAML.

Also run: cargo fmt --check and cargo clippy --all-targets --locked -D warnings for the tests/testkit, tests/support and tests/suites/features workspaces; cargo test in tests/support; cargo check of e2e/rust with the Docker and Podman features; check-cargo-lockfiles.sh and check_cargo_lockfile_alignment.py.

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated (if applicable)
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

@copy-pr-bot

copy-pr-bot Bot commented Nov 20, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 20, 2026
@matthewgrossman
matthewgrossman force-pushed the test/5728-share-environment-helpers/matthewgrossman branch from d1cf453 to 8005863 Compare November 20, 2026 05:50
@matthewgrossman matthewgrossman added the test:e2e Requires end-to-end coverage label Nov 20, 2026
@matthewgrossman

Copy link
Copy Markdown
Member Author

/ok to test 4b82ab0

@github-actions

Copy link
Copy Markdown

Label test:e2e applied for 4b82ab0. Open Branch E2E Checks, find the run for commit 4b82ab0, and click Re-run all jobs to execute with the label set. The run will execute the standard E2E suite after building the required gateway, sandbox, and supervisor images once. The matching required CI gate status on this PR will flip green automatically once the run finishes.

@matthewgrossman

Copy link
Copy Markdown
Member Author

/ok to test 702e06f

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
…ay at a test collector

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
…ress

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
…the Podman archive filter

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Each test target now has a unique name, harness = false and a testkit
main, so tests/suites/unsupported.yaml can skip a test per environment.
The manifests also point at the ai-openshell repository.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
…efresh test

Build the refresh-handle and readiness profiles with testkit::Profile and
the probe policy with policy::allow, and create every provider with
install_provider. The stable-placeholder and token-exchange profiles stay
YAML because Profile has no stable_placeholder or token_grant setter.

The legacy refresh-handle test now waits for the probe after each
rotation, sends the token as Bearer and as Basic x-access-token, and after
reconfiguring rotates again, waits for a new process to succeed and checks
the old handle stays revoked. Do the same here.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@matthewgrossman
matthewgrossman force-pushed the test/5729-port-gateway-config-tests/matthewgrossman branch from ad0f0cd to 6eca7f3 Compare November 24, 2026 06:05

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:accepted A maintainer decided OpenShell should pursue this issue test:e2e Requires end-to-end coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant