remove list of container images (#77089)

* remove list of container images
* remove some more centos8
pull/77107/head
Sandra McCann 2 years ago committed by GitHub
parent 92800a04c2
commit b2bafc054e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -67,13 +67,13 @@ You can write two different kinds of integration tests:
For examples, see the `integration tests in community.general <https://github.com/ansible-collections/community.general/tree/master/tests/integration/targets/>`_. See also :ref:`testing_integration` for more details.
Since integration tests can install requirements, and set-up, start and stop services, we recommended running them in docker containers or otherwise restricted environments whenever possible. By default, ``ansible-test`` supports Docker images for several operating systems. See the `list of supported docker images <https://github.com/ansible/ansible/blob/devel/test/lib/ansible_test/_data/completion/docker.txt>`_ for all options. Use the ``default`` image mainly for platform-independent integration tests, such as those for cloud modules. The following examples use the ``centos8`` image.
Since integration tests can install requirements, and set-up, start and stop services, we recommended running them in docker containers or otherwise restricted environments whenever possible. By default, ``ansible-test`` supports Docker images for several operating systems. See the `list of supported docker images <https://github.com/ansible/ansible/blob/devel/test/lib/ansible_test/_data/completion/docker.txt>`_ for all options. Use the ``default`` image mainly for platform-independent integration tests, such as those for cloud modules. The following examples use the ``fedora35`` image.
To execute all integration tests for a collection:
.. code-block:: shell-session
ansible-test integration --docker centos8 -v
ansible-test integration --docker fedora35 -v
If you want more detailed output, run the command with ``-vvv`` instead of ``-v``. Alternatively, specify ``--retry-on-error`` to automatically re-run failed tests with higher verbosity levels.
@ -81,7 +81,7 @@ To execute only the integration tests in a specific directory:
.. code-block:: shell-session
ansible-test integration --docker centos8 -v connection_bar
ansible-test integration --docker fedora35 -v connection_bar
You can specify multiple target names. Each target name is the name of a directory in ``tests/integration/targets/``.

@ -72,7 +72,7 @@ outside of those test subdirectories. They will also not reconfigure or bounce
.. note:: Running integration tests within containers
To protect your system from any potential changes caused by integration tests, and to ensure a sensible set of dependencies are available we recommend that you always run integration tests with the ``--docker`` option, for example ``--docker centos8``. See the `list of supported container images <https://github.com/ansible/ansible/blob/devel/test/lib/ansible_test/_data/completion/docker.txt>`_ for options (the ``default`` image is used for sanity and unit tests, as well as for platform independent integration tests such as those for cloud modules).
To protect your system from any potential changes caused by integration tests, and to ensure a sensible set of dependencies are available we recommend that you always run integration tests with the ``--docker`` option, for example ``--docker ubuntu2004``. See the `list of supported container images <https://github.com/ansible/ansible/blob/devel/test/lib/ansible_test/_data/completion/docker.txt>`_ for options (the ``default`` image is used for sanity and unit tests, as well as for platform independent integration tests such as those for cloud modules).
Run as follows for all POSIX platform tests executed by our CI system in a Fedora 34 container:
@ -177,27 +177,13 @@ For example, to run tests for the ``ping`` module on a Ubuntu 18.04 container:
Container Images
----------------
Python 3
^^^^^^^^
Container images are updated regularly. To see the current list of container images:
Most container images are for testing with Python 3:
.. code-block:: bash
- alpine3
- centos8
- fedora33
- fedora34
- opensuse15
- ubuntu1804
- ubuntu2004
Python 2
^^^^^^^^
To test with Python 2 use the following images:
- centos7
- opensuse15py2
ansible-test integration --help
The list is under the **target docker images and supported python version** heading.
Legacy Cloud Tests
==================

Loading…
Cancel
Save