Run tests against an Azure Linux image
Run tests against an Azure Linux image using a supported test runner.
Currently only the LISA test runner is supported. The image must be in qcow2, vhd, or vhdfixed format. If the image is in vhd/vhdfixed format it is automatically converted to qcow2 before running the tests.
Requirements:
- lisa (Installation instructions: https://github.com/microsoft/lisa/blob/main/INSTALL.md)
- runbook file (YAML format defining the tests to run: https://github.com/microsoft/lisa/blob/main/docs/Runbooks.md)
- qemu-img (for vhd/vhdfixed to qcow2 conversion, if needed)
azldev image test [flags]
# Run LISA tests against a qcow2 image
azldev image test --image-path ./out/image.qcow2 --test-runner lisa --runbook-path ./runbooks/smoke.yml
# Run LISA tests against a vhd image (auto-converted to qcow2)
azldev image test --image-path ./out/image.vhd --test-runner lisa --runbook-path ./runbooks/smoke.yml
-k, --admin-private-key-path string Path to the admin SSH private key file passed to LISA
-h, --help help for test
-i, --image-path string Path to the disk image file to test
-r, --runbook-path string Path to the test runbook file
--test-runner string Test runner to use (currently only 'lisa' is supported)
-y, --accept-all accept all prompts
--color mode output colorization mode {always, auto, never} (default auto)
--config-file stringArray additional TOML config file(s) to merge (may be repeated)
-n, --dry-run dry run only (do not take action)
--network-retries int maximum number of attempts for network operations (minimum 1) (default 3)
--no-default-config disable default configuration
-O, --output-format fmt output format {csv, json, markdown, table} (default table)
--permissive-config do not fail on unknown fields in TOML config files
-C, --project string path to Azure Linux project
-q, --quiet only enable minimal output
-v, --verbose enable verbose output
- azldev image - Manage Azure Linux images