fix: exo CLI Bug exo config add panics when new first config without it being the default one#798
Merged
natalie-o-perret merged 7 commits intomasterfrom Feb 20, 2026
Conversation
…g without it being the default one
…hout it being the default one
…hout it being the default one
…hout it being the default one
exo config add panics when new first config without it being the default oneexo config add panics when new first config without it being the default one
quentinalbertone
approved these changes
Feb 20, 2026
quentinalbertone
approved these changes
Feb 20, 2026
pierre-emmanuelJ
approved these changes
Feb 20, 2026
Co-authored-by: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request refactors and expands the test coverage for configuration handling in the CLI, especially around edge cases such as missing or broken configuration files and the absence of a default account. It introduces new end-to-end and integration tests to document and reproduce a known panic, and it improves the test infrastructure for easier discovery and execution of test scenarios. Some package renaming and cleanup are also included.
Test coverage improvements for configuration edge cases:
.txtarfiles) to document and reproduce bugs when the config file is missing, when an account exists without a default, and to verify correct output with a valid config file. These tests also demonstrate the workaround using the--use-accountflag.config_panic_test.go) to simulate and verify the panic when adding an account without setting it as default, which cannot be covered by non-interactive e2e tests (prompt-ui-based zone selection).Test infrastructure improvements:
.txtartest scripts, allowing easier addition of new test cases without manual registration.Package and code organization:
integ_testtointegfor consistency and to facilitate internal test suite usage.go.mod, removing unused packages.Checklist
(For exoscale contributors)
Testing