Skip to content

Commit ee9350b

Browse files
test(features): port driver-config volume and bind mounts to driver-config on Docker and Podman
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
1 parent aa62558 commit ee9350b

13 files changed

Lines changed: 377 additions & 666 deletions

File tree

‎.github/workflows/e2e-suites.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ jobs:
9595
{"environment":"ubuntu-docker-rootful-cdi","installer":"deb","family":"features","package":"cdi","gateway":"openshell","runner":"ubuntu-24.04"},
9696
{"environment":"fedora-podman-rootful-cdi","installer":"rpm","family":"features","package":"cdi","gateway":"openshell","runner":"ubuntu-24.04"},
9797
{"environment":"fedora-podman-rootless-cdi","installer":"rpm","family":"features","package":"cdi","gateway":"openshell","runner":"ubuntu-24.04"},
98+
{"environment":"ubuntu-docker-rootful-driver-config","installer":"deb","family":"features","package":"driver-config","gateway":"openshell","runner":"ubuntu-24.04"},
99+
{"environment":"fedora-podman-rootful-driver-config","installer":"rpm","family":"features","package":"driver-config","gateway":"openshell","runner":"ubuntu-24.04"},
100+
{"environment":"fedora-podman-rootless-driver-config","installer":"rpm","family":"features","package":"driver-config","gateway":"openshell","runner":"ubuntu-24.04"},
98101
{"environment":"ubuntu-docker-rootful-keycloak","installer":"deb","family":"features","package":"keycloak-provider-refresh","gateway":"openshell","runner":"ubuntu-24.04"},
99102
{"environment":"ubuntu-docker-rootful","installer":"deb","family":"features","package":"oci-image","gateway":"openshell","runner":"ubuntu-24.04"},
100103
{"environment":"fedora-podman-rootful","installer":"rpm","family":"features","package":"oci-image","gateway":"openshell","runner":"ubuntu-24.04"},

‎TESTING.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,11 @@ can run the suite. The expectations characterize the sandbox's behavior today,
350350
not a specification, and the `echo-socket` check needs `perl` in the workload
351351
image, which the default image has.
352352

353+
The `<base>-driver-config` environments let callers pass driver config with
354+
volume and bind mounts, and turn off resource admission, which blocks bind
355+
mounts. The driver-config suite (`tests/suites/features/driver-config`) runs
356+
there on Docker and Podman.
357+
353358
### Python E2E (`e2e/python/`)
354359

355360
`mise run e2e:python` builds `openshell/e2e-python:dev` from
@@ -572,8 +577,7 @@ nix run .#generate-podman-e2e-ci-tests
572577
The `e2e-podman` testsuite runs a nextest archive built with the corresponding
573578
Rust feature and preloads its Python workload image into the rootless Podman
574579
store. The E2E archive excludes binaries that still depend on wrapper-owned
575-
gateway controls, SPIFFE fixtures, the caller driver-config setting, or other
576-
guest setup. `tests/tmachine/artifacts.nix` keeps the follow-up exclusions explicit and uses
580+
gateway controls, SPIFFE fixtures, or other guest setup. `tests/tmachine/artifacts.nix` keeps the follow-up exclusions explicit and uses
577581
the same filter for the generated inventory, so excluded binaries cannot appear
578582
as false passes or silently re-enter the archive.
579583

‎e2e/rust/Cargo.lock‎

Lines changed: 0 additions & 113 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎e2e/rust/Cargo.toml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ name = "additional_ca"
103103
path = "tests/additional_ca.rs"
104104
required-features = ["e2e-additional-ca"]
105105

106-
[[test]]
107-
name = "driver_config_volume"
108-
path = "tests/driver_config_volume.rs"
109-
required-features = ["e2e-local-container-driver"]
110-
111106
[[test]]
112107
name = "gateway_start"
113108
path = "tests/gateway_start.rs"
@@ -234,7 +229,6 @@ openshell-crypto = { path = "../../crates/openshell-crypto" }
234229
openshell-otel-test-support = { path = "../../crates/openshell-otel-test-support" }
235230
opentelemetry-proto = { version = "0.33", default-features = false, features = ["gen-tonic", "trace"] }
236231
base64 = "0.22"
237-
bollard = "0.20"
238232
bytes = "1"
239233
futures-util = "0.3"
240234
http-body-util = "0.1"

‎e2e/rust/e2e-podman.sh‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ source "${ROOT}/e2e/support/conformance.sh"
2323
# stabilized and can be added here.
2424
PODMAN_CI_TESTS=(
2525
ephemeral_cleanup
26-
driver_config_volume
2726
edge_tunnel_e2e
2827
host_gateway_alias
2928
local_driver_token_restart

0 commit comments

Comments
 (0)