canonical / canonical/multipass

[az][cli_tests] Tests fail when all AZ have been disabled

Open
#5,236 0 comments 0 reactions 0 assignees View on GitHub
needs triage
Dominant language
C++
Stars
9.2k
Forks
828
Avg merge
3d 1h
Merged PRs (30d)
44

Description

**Describe the bug**
I launched the CLI tests on my machine, and saw that they were almost all failing. Its only at the end when I got the full result that I understood that it was because I had disabled all the AZ earlier.

**To Reproduce**
1. Disable all zones.
2. Launch the CLI tests.
3. Notice how most of them fail.

**Expected behavior**
Either there should be a fail fast (like before actually launching the tests, if the AZ are disabled, it should ask the user to enable them first) or the tests should pre-emptively enable the zones if they require them.

**Logs**
Please provide logs from the daemon, see [Access logs](https://canonical.com/multipass/docs/stable/how-to-guides/troubleshoot/access-logs/) on where to find them on your platform.

**Additional info**
- OS: Win 11 Pro
- CPU architecture or model: x64
- `multipass version`
multipass 1.17.0-dev.ci6331+ga58dcf2e.win
multipassd 1.17.0-dev.ci6331+ga58dcf2e.win

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Start by running the CLI tests with all availability zones disabled and inspect which tests fail and where zone availability is checked. The work is complete when the test run either stops early with a clear request to enable zones or pre-emptively enables the required zones, with the affected tests passing.

Written by the indexing model from the issue text.

Assessment

Domain
cli, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.