You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests: Add parameterized integration test infrastructure
This introduces a matrix-based testing approach for integration tests that
need to run against multiple container images. Instead of hardcoding specific
images or manually creating variants for each distribution, tests can now
register as parameterized tests and automatically run once per image in
BCVK_ALL_IMAGES.
Key changes:
- Add ParameterizedIntegrationTest type and PARAMETERIZED_INTEGRATION_TESTS
distributed slice for tests that take an image parameter
- Add BCVK_PRIMARY_IMAGE and BCVK_ALL_IMAGES environment variables to control
which images are tested (set via Justfile)
- Convert run_ephemeral_ssh_cross_distro_compatibility to use the new
parameterized approach, generating 3 test variants (Fedora 42, CentOS
Stream 9, CentOS Stream 10)
- Replace all hardcoded image references with get_test_image() calls
- Add image_to_test_suffix() with robust handling for tagged images,
digest-based images, and hash fallback for uniqueness
- Add validation for empty BCVK_ALL_IMAGES with warning fallback
This enables systematic cross-distribution testing without code duplication
and makes it easy to add or change the test matrix by updating environment
variables rather than modifying test code.
Assisted-by: Claude Code (Sonnet 4.5)
0 commit comments