-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
verdi config list
errors when no profile is configured
#5920
Comments
Fair point. I already fixed a similar issue you reported some time ago #5543 . The infrastructure to easily test these is there, we just have to come up with the list of commands to test like this. I will start a PR and we can add them there. |
Turns out adding a test is not so easy. The problem is that the One solution would be to run the test through an actual subprocess. I started this approach in #5846 . But then we cannot use the Long story short, I removed the good-first-issue label for now. |
Thanks for the investigation - indeed, in that case not a good-first issue ;-)
Could we just tell |
Anyhow, it's not a priority; no need to lose a lot of time over this. |
I just run into the same issue, is #5846 will fix this? Regardless of the test, adding |
|
I am not sure, I think it depends on if there are any config settings store in the DB, if not it shouldn't require. |
No, the command definitely doesn't need the storage backend and so shouldn't have the decorator. The issue is not fixed by #5846 but I am working on a fix that requires that PR first. Almost done and will open the PR with the fix soon, but we will need to review/merge #5846 first |
Describe the bug
When no profile is configured, I get
Steps to reproduce
Run
verdi config list
when no profile is configuredExpected behavior
The command should exit gracefully, and probably even show the available options
Your environment
main
Other relevant software versions, e.g. Postres & RabbitMQ
Additional context
@sphuber This is one of a class of issues that have to do with cli behavior when no profile is configured.
This is currently not tested since the profile is always already configured.
We may want to add a few "profile-free" tests for commands that we expect to still work when no profile is around.
The text was updated successfully, but these errors were encountered: