Skip to content

test(e2e): port OTLP relay and SPIFFE token-exchange tests with environment-owned fixtures #5976

In progress

Description

@matthewgrossman

User Story

As a maintainer retiring e2e/rust, I want the OTLP relay and SPIFFE token-exchange tests on testkit with fixtures the environment owns, so they can run alongside other tests on one gateway instead of one at a time.

Description

Split from #5729 (#5792). #5792 keeps provider-refresh and provider-rotation; this issue takes otlp-relay and provider-token-exchange. As written in #5792, both suites bind a service the gateway was configured with at startup, so they can't run concurrently. Rule: the environment owns any service the gateway is configured with at startup; tests check only their own traffic.

Legacy test Destination Notes
otlp_relay::agent_span_reaches_collector_with_attribution tests/suites/features/otlp-relay
otlp_relay::span_emitted_before_exit_is_delivered tests/suites/features/otlp-relay
otlp_relay::relay_is_inert_without_collector tests/suites/features/otlp-relay-inactive Runs on an environment whose default gateway has no OTLP export or agent relay, and fails if OPENSHELL_TEST_OTLP_ENDPOINT is set. Not conformance: it would fail any gateway with the relay configured, and its log read is unreliable on k3s-ha (#5752). No per-row filter.
provider_token_exchange:: independent grants; A/B/A route recovery (2 tests) tests/suites/features/provider-token-exchange
  • OTLP: the OTLP environment runs a collector for its lifetime and publishes its captures (for example OPENSHELL_TEST_OTLP_LOG, JSONL) in place of OPENSHELL_TEST_OTLP_PORT. Tests name spans from the test's unique name, wait for their own spans, and check attribution and duplicate resource keys only on those spans.
  • SPIFFE: the environment owns the Workload API socket stub; tests don't delete or recreate the socket. Tests keep private token servers on ephemeral ports.

Acceptance Criteria

  • Both packages run with more than one worker without interfering, and carry no "can't run at the same time" note.
  • relay_is_inert_without_collector runs in its own features package on a gateway without a collector; e2e-suites.yml has no per-row filter.
  • tests/support/README.md environment contract table matches the new variables.
  • e2e/rust/tests/otlp_relay.rs and provider_token_exchange.rs are deleted with their wrapper wiring.

Context

Part of #5297 (PR6a). Provider profile race #5927 is separate.

Activity

  1. added
    topic:testing
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

topic:testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions