Skip to content

Commit 8b3f375

Browse files
test(e2e): run a VM driver testkit suite on the host lane
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
1 parent e0c35cf commit 8b3f375

8 files changed

Lines changed: 4937 additions & 2 deletions

File tree

‎.github/workflows/branch-checks.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ jobs:
268268
cargo fmt --manifest-path tests/suites/continuity/Cargo.toml --all -- --check
269269
cargo fmt --manifest-path tests/suites/drivers/podman/Cargo.toml --all -- --check
270270
cargo fmt --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --all -- --check
271+
cargo fmt --manifest-path tests/suites/drivers/vm/Cargo.toml --all -- --check
271272
cargo fmt --manifest-path tests/suites/features/Cargo.toml --all -- --check
272273
cargo fmt --manifest-path tests/support/Cargo.toml --all -- --check
273274
@@ -331,6 +332,7 @@ jobs:
331332
cargo clippy --locked --manifest-path tests/suites/continuity/Cargo.toml --workspace --all-targets -- -D warnings
332333
cargo clippy --locked --manifest-path tests/suites/drivers/podman/Cargo.toml --workspace --all-targets -- -D warnings
333334
cargo clippy --locked --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --workspace --all-targets -- -D warnings
335+
cargo clippy --locked --manifest-path tests/suites/drivers/vm/Cargo.toml --workspace --all-targets -- -D warnings
334336
cargo clippy --locked --manifest-path tests/suites/features/Cargo.toml --workspace --all-targets -- -D warnings
335337
cargo clippy --locked --manifest-path tests/support/Cargo.toml --all-targets -- -D warnings
336338

‎e2e/rust/e2e-vm.sh‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,13 @@ if [ "${E2E_FEATURES}" = "e2e-conformance-only" ]; then
470470
exit 0
471471
fi
472472

473+
if [ -z "${E2E_TEST_OVERRIDE}" ]; then
474+
# The conformance helper exports this lane's OPENSHELL_TEST_UNSUPPORTED.
475+
echo "==> Running the VM driver suite"
476+
OPENSHELL_TEST_PYTHON_IMAGE="${OPENSHELL_TEST_PYTHON_IMAGE:-${E2E_PULLABLE_PYTHON_IMAGE}}" \
477+
cargo test --locked --manifest-path "${ROOT}/tests/suites/drivers/vm/Cargo.toml" --tests -- --nocapture
478+
fi
479+
473480
# Seed the catalog once for the whole lane. The profiles live in the gateway
474481
# for as long as it runs, and the import is create-only: a second import of
475482
# the same directory fails with "custom provider profile '<id>' already

‎tasks/rust.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ run = [
4343
"cargo clippy --manifest-path tests/suites/continuity/Cargo.toml --workspace --all-targets -- -D warnings",
4444
"cargo clippy --manifest-path tests/suites/drivers/podman/Cargo.toml --workspace --all-targets -- -D warnings",
4545
"cargo clippy --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --workspace --all-targets -- -D warnings",
46+
"cargo clippy --manifest-path tests/suites/drivers/vm/Cargo.toml --workspace --all-targets -- -D warnings",
4647
"cargo clippy --manifest-path tests/suites/features/Cargo.toml --workspace --all-targets -- -D warnings",
4748
"cargo clippy --manifest-path tests/support/Cargo.toml --all-targets -- -D warnings",
4849
]
@@ -64,6 +65,7 @@ run = [
6465
"cargo fmt --manifest-path tests/suites/continuity/Cargo.toml --all",
6566
"cargo fmt --manifest-path tests/suites/drivers/podman/Cargo.toml --all",
6667
"cargo fmt --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --all",
68+
"cargo fmt --manifest-path tests/suites/drivers/vm/Cargo.toml --all",
6769
"cargo fmt --manifest-path tests/suites/features/Cargo.toml --all",
6870
"cargo fmt --manifest-path tests/support/Cargo.toml --all",
6971
]
@@ -84,6 +86,7 @@ run = [
8486
"cargo fmt --manifest-path tests/suites/continuity/Cargo.toml --all -- --check",
8587
"cargo fmt --manifest-path tests/suites/drivers/podman/Cargo.toml --all -- --check",
8688
"cargo fmt --manifest-path tests/suites/drivers/kubernetes/Cargo.toml --all -- --check",
89+
"cargo fmt --manifest-path tests/suites/drivers/vm/Cargo.toml --all -- --check",
8790
"cargo fmt --manifest-path tests/suites/features/Cargo.toml --all -- --check",
8891
"cargo fmt --manifest-path tests/support/Cargo.toml --all -- --check",
8992
]

‎tasks/scripts/check_cargo_lockfile_alignment.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"tests/suites/continuity",
4242
"tests/suites/drivers/kubernetes",
4343
"tests/suites/drivers/podman",
44+
"tests/suites/drivers/vm",
4445
"tests/suites/features",
4546
)
4647

0 commit comments

Comments
 (0)