Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/e2e-docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ on:
required: false
type: string
default: >-
[{"suite":"oidc-pkce-docker","cmd":"mise run --no-deps --skip-deps e2e:oidc-pkce:docker","apt_packages":"openssh-client","mcp":false},{"suite":"rust-docker","cmd":"mise run --no-deps --skip-deps e2e:rust","apt_packages":"openssh-client","mcp":false},{"suite":"rust-docker-push","cmd":"mise run --no-deps --skip-deps e2e:rust:push","apt_packages":"openssh-client","mcp":false},{"suite":"oci-image","cmd":"mise run --no-deps --skip-deps e2e:oci-image","apt_packages":"openssh-client","mcp":false},{"suite":"additional-ca","cmd":"OPENSHELL_E2E_DOCKER_TEST=additional_ca mise run --no-deps --skip-deps e2e:docker","apt_packages":"openssh-client","mcp":false},{"suite":"middleware-http-hooks","cmd":"mise run --no-deps --skip-deps e2e:middleware-http-hooks","apt_packages":"","mcp":false},{"suite":"mcp","cmd":"mise run --no-deps --skip-deps e2e:mcp","apt_packages":"","mcp":true}]
[{"suite":"oidc-pkce-docker","cmd":"mise run --no-deps --skip-deps e2e:oidc-pkce:docker","apt_packages":"openssh-client","mcp":false},{"suite":"rust-docker","cmd":"mise run --no-deps --skip-deps e2e:rust","apt_packages":"openssh-client","mcp":false},{"suite":"oci-image","cmd":"mise run --no-deps --skip-deps e2e:oci-image","apt_packages":"openssh-client","mcp":false},{"suite":"additional-ca","cmd":"OPENSHELL_E2E_DOCKER_TEST=additional_ca mise run --no-deps --skip-deps e2e:docker","apt_packages":"openssh-client","mcp":false},{"suite":"middleware-http-hooks","cmd":"mise run --no-deps --skip-deps e2e:middleware-http-hooks","apt_packages":"","mcp":false},{"suite":"mcp","cmd":"mise run --no-deps --skip-deps e2e:mcp","apt_packages":"","mcp":true}]

permissions:
actions: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/e2e-suites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:
{"environment":"fedora-podman-rootless","installer":"rpm","family":"conformance","package":"conformance","gateway":"openshell","runner":"ubuntu-24.04","test_threads":4},
{"environment":"ubuntu-k3s","installer":"k3s","family":"conformance","package":"conformance","gateway":"tmachine","runner":"ubuntu-24.04","test_threads":4},
{"environment":"ubuntu-k3s","installer":"k3s-ha","family":"conformance","package":"conformance","gateway":"tmachine","runner":"ubuntu-24.04","test_threads":4},
{"environment":"ubuntu-docker-rootful-config-push","installer":"deb","family":"conformance","package":"conformance","gateway":"openshell","runner":"ubuntu-24.04","test_threads":4},
{"environment":"ubuntu-k3s-ipv6","installer":"k3s-ha","family":"conformance","package":"conformance","gateway":"tmachine","runner":"ubuntu-24.04","test_threads":4},
{"environment":"ubuntu-docker-rootful-cdi","installer":"deb","family":"features","package":"cdi","gateway":"openshell","runner":"ubuntu-24.04"},
{"environment":"fedora-podman-rootful-cdi","installer":"rpm","family":"features","package":"cdi","gateway":"openshell","runner":"ubuntu-24.04"},
Expand Down
1 change: 0 additions & 1 deletion TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,6 @@ Suites:
the selected deployment.
- Docker suite (`--features e2e-docker`) - includes Docker-only coverage such as Dockerfile image builds, Docker preflight checks, and managed Docker gateway start.
- Docker GPU suite (`--features e2e-docker-gpu`) - Docker suite plus GPU sandbox smoke coverage.
- Configuration push suite (`--features e2e-config-push`) - conformance and the policy tests against a Docker gateway with `config_delivery_mode = "push"`. Run it with `mise run e2e:rust:push`.
- VM suite (`--features e2e-vm`) - runs e2e tests on a VM.
- Kubernetes credential-driver suite (`--features e2e-kubernetes-credential-drivers`) - targeted Kubernetes Secrets and Vault provider credential storage coverage.

Expand Down
7 changes: 0 additions & 7 deletions e2e/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ e2e-host-gateway = ["e2e"]
e2e-local-container-driver = ["e2e"]
e2e-additional-ca = ["e2e", "e2e-host-gateway"]
e2e-docker = ["e2e", "e2e-host-gateway", "e2e-local-container-driver"]
# Selects tests that need a Docker gateway with config_delivery_mode = "push".
e2e-config-push = ["e2e-docker"]
e2e-gpu = ["e2e"]
e2e-docker-gpu = ["e2e-docker", "e2e-gpu"]
e2e-kubernetes = ["e2e"]
Expand All @@ -53,11 +51,6 @@ e2e-podman-gpu = ["e2e-podman", "e2e-gpu"]
e2e-oidc-pkce = []
e2e-vm = ["e2e", "e2e-host-gateway"]

[[test]]
name = "config_push"
path = "tests/config_push.rs"
required-features = ["e2e-config-push"]

[[test]]
name = "policy_activation"
path = "tests/policy_activation.rs"
Expand Down
190 changes: 0 additions & 190 deletions e2e/rust/tests/config_push.rs

This file was deleted.

5 changes: 0 additions & 5 deletions tasks/test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,6 @@ description = "Run the testkit suites in tests/suites/conformance against a Dock
depends = ["e2e:python-image:build"]
run = "e2e/with-docker-gateway.sh cargo nextest run --locked --manifest-path tests/suites/conformance/Cargo.toml --workspace --test-threads 1 --no-fail-fast"

["e2e:rust:push"]
description = "Run conformance and policy e2e tests against a Docker gateway that pushes configuration"
env = { OPENSHELL_CONFIG_DELIVERY_MODE = "push", OPENSHELL_E2E_DOCKER_FEATURES = "e2e-config-push", OPENSHELL_E2E_DOCKER_TEST = "config_push policy_activation" }
run = "e2e/rust/e2e-docker.sh"

["e2e:python-image:build"]
description = "Build the E2E Python image (openshell/e2e-python:dev) for Docker"
run = "CONTAINER_ENGINE=docker bash tasks/scripts/e2e-build-workload.sh"
Expand Down
32 changes: 32 additions & 0 deletions tests/tmachine/ansible/playbooks/config-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

# Make the gateway push configuration to supervisors.
#
# Adds `[openshell.gateway] config_delivery_mode = "push"` to the gateway
# overrides (the gateway_overrides role), which the `binaries`, `deb` and
# `rpm` installers apply to the gateway's configuration (k3s installers
# ignore it).
---
- name: Gateway configuration push for tests
hosts: all
gather_facts: false
tasks:
- name: Wait for SSH
ansible.builtin.wait_for_connection:

- name: Write the configuration delivery mode
Comment thread
pimlock marked this conversation as resolved.
Resolved
ansible.builtin.include_role:
name: gateway_overrides
vars:
gateway_overrides_name: config-push
gateway_overrides_content: |
[openshell.gateway]
config_delivery_mode = "push"
Comment thread
pimlock marked this conversation as resolved.
Resolved

- name: Publish configuration push test variables
ansible.builtin.include_tasks: test-env.yaml
vars:
test_env_name: config-push
test_env_vars:
OPENSHELL_TEST_CONFIG_DELIVERY_MODE: push
6 changes: 6 additions & 0 deletions tests/tmachine/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ let
bases = dockerBases ++ podmanBases;
setup.playbooks = [ "ansible/playbooks/cdi.yaml" ];
};
# A gateway that pushes configuration to supervisors
# (`config_delivery_mode = "push"`), for the conformance family.
config-push = {
bases = dockerBases;
setup.playbooks = [ "ansible/playbooks/config-push.yaml" ];
};
# Caller driver config with volume and bind mounts, for the driver-config
# suite.
driver-config = {
Expand Down
Loading