-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
ansible-test integration: AttributeError docker flag #8683
Comments
Files identified in the description: If these files are incorrect, please update the |
@MatthiasKunnen I think this will solve your issue. |
cc @mattclay |
tl;dr - For 2.17 - Valid images are -
|
resolved_by_pr ansible/ansible#83677 |
ahhh, yes it does. I had a look at the PR. It would seem to me like there is still room for improvement. If people see the error and go to https://github.com/ansible/ansible/blob/devel/test/lib/ansible_test/_data/completion/docker.txt as instructed by the documentation, they will end up where I ended up, scratching their head because they are giving one of the options that should work. Instead, what if the ansible-test command could get a list-images/list-environments flag/command that would print the supported images for the installed version. That way, everything remains in sync. The change in the PR you mentioned could then mention this flag/option. |
Generally |
Then shouldn't https://docs.ansible.com/ansible/latest/dev_guide/testing_integration.html#id7 be updated to refer to the --help flag? It is that documentation that misinformed me. Additionally, can't a reference to the --help flag be added to the new error message added in the referenced PRs? |
That documentation is out-of-date and should instruct the user to use |
You can install |
Summary
Running
ansible-test integration --python 3.12 --docker fedora40 -v locale_gen
in the community.general repo results in an error related to the docker flag.Issue Type
Bug Report
Component Name
ansible-test integration
Ansible Version
Community.general Version
52126b8
Configuration
OS / Environment
Arch 2024-07-26
Steps to Reproduce
Running
ansible-test integration --python 3.12 --docker fedora40 -v locale_gen
Also tried and failed: ubuntu2404.
Works: default.
Sidenote, I also had to specify the python version with --python otherwise I would get
FATAL: A Python version was not specified for environment --docker fedora40. Use the --python option to specify a Python version.
. I don't know if this is an issue in the first place or a documentation problem.Expected Results
The documentation at https://docs.ansible.com/ansible/latest/dev_guide/testing_integration.html#id7 states to use this flag with any of the following values:
https://github.com/ansible/ansible/blob/a3a92bcc13d84049fce48ab528aef057246639ff/test/lib/ansible_test/_data/completion/docker.txt
I expect the image to be downloaded and run.
Actual Results
The command fails with:
Code of Conduct
The text was updated successfully, but these errors were encountered: