Repository navigation
Open
Labels
topic:testingUnit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure.Unit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure.
Description
User Story
As a maintainer retiring e2e/rust, I want the provider tests on testkit, so they run on every conformance row and the legacy files can be deleted.
Description
Conformance destinations are under tests/suites/conformance/src/.
| Legacy test | Action | Destination | Notes |
|---|---|---|---|
provider_files::provider_file_open_update_and_detach |
port | providers.rs |
|
provider_auto_create::auto_created_provider_credential_available_in_sandbox |
port | providers.rs |
Separate CLI path (auto-created providers). |
service_bearer_passthrough::service_bearer_passthrough_preserves_authorization_header |
port | tests/suites/features/service-exposure |
New feature package; other service-exposure tests can join it later. |
Helpers this PR adds
- testkit:
create_provider(..)andinstall_provider(..)take.config(..)(--config). No provider-delete cleanup poll: testkit deletes sandboxes before providers. cx.service_getreaches exposed services through the gateway endpoint, with the service URL's authority asHost. Environments need no extra routing.- testkit:
testkit::Profileandtestkit::Credential, a typed provider profile builder, so tests stop writing profile YAML withformat!. It covers id, display_name, category, credentials (name, env_vars, required, auth_style, header_name, refresh), discovery, endpoints (configured withpolicy::Endpoint, which gainsenforce()andpath()) and binaries.profile.to_yaml()renders it through openshell-providers forimport_profileandinstall_provider. This PR convertsconformance/src/providers.rsandfeatures/keycloak-provider-refresh;credential_gating.rsis converted in test(e2e): port network, L7 and policy-update tests from e2e/rust to conformance #5665 after this merges.
Files deleted
provider_auto_create.rs, provider_files.rs, service_bearer_passthrough.rs.
Context
- After test(conformance): port the credential gating e2e tests #5318 (provider helpers), which has merged.
- The workspace tests from the original PR3 plan (
workspace_lifecycle.rs) are tracked separately in test(e2e): port workspace lifecycle tests from e2e/rust to conformance #5598 (PR test(conformance): port workspace lifecycle tests to testkit #4607). - PR7 and PR8 use
create_providerfrom this PR.
Definition of Done
- Every test in the table is ported as listed.
- The listed files are deleted, and every reference to them in wrapper scripts,
tasks/*.tomland nextest config is removed. - Each ported test runs on at least the drivers its legacy lane covered;
features/service-exposurehas rows in.github/workflows/e2e-suites.yml.
Metadata
Metadata
Assignees
Labels
topic:testingUnit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure.Unit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure.
Activity