Skip to content

Commit f495ae6

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 dd37b27 commit f495ae6

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
@@ -101,11 +101,6 @@ name = "additional_ca"
101101
path = "tests/additional_ca.rs"
102102
required-features = ["e2e-additional-ca"]
103103

104-
[[test]]
105-
name = "driver_config_volume"
106-
path = "tests/driver_config_volume.rs"
107-
required-features = ["e2e-local-container-driver"]
108-
109104
[[test]]
110105
name = "gateway_start"
111106
path = "tests/gateway_start.rs"
@@ -231,7 +226,6 @@ openshell-crypto = { path = "../../crates/openshell-crypto" }
231226
openshell-otel-test-support = { path = "../../crates/openshell-otel-test-support" }
232227
opentelemetry-proto = { version = "0.33", default-features = false, features = ["gen-tonic", "trace"] }
233228
base64 = "0.22"
234-
bollard = "0.20"
235229
bytes = "1"
236230
futures-util = "0.3"
237231
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)