- Jul 21, 2023
-
-
Rafael Guterres Jeffman authored
Some test failures requires more information than just the playbook simple output. By increasing verbosity, the used parameters and the failed line will be visible in the test error report, making it easier to identify, reproduce and fix the issue.
-
- May 05, 2023
-
-
Thomas Woerner authored
Due to https://github.com/docker/docker-py/issues/3113 requests need to be pinned below 2.29 as a temporary solution.
-
- Apr 27, 2023
-
-
Thomas Woerner authored
The docker driver is not part of molecule 5.0.0 anymore. molecule-plugins need to be installed to get the driver.
-
- Jan 23, 2023
-
-
Rafael Guterres Jeffman authored
Due to DNS issues and the increase number of tests, the timeout setting used for upstream tests was being reached. As we still have room for running the tests using Azure infrastructure, this patch increases the timeout to 240 minutes (4h), per worker.
-
- Dec 26, 2022
-
-
Rafael Guterres Jeffman authored
Some tasks used to setup Azure environment might fail to temporary errors like timeouts and connection failures. Allowing the tasks to retry a few times will allow the test to be correctly executed rather than returning an error that is not related to the feature tested.
-
- Aug 24, 2022
-
-
Rafael Guterres Jeffman authored
Sometimes, mostly due do differences in package versions, there are some tests that fail on a single distribution which cannot be fixed by ansible-freeipa, requiring that the offending package is fixed. To keep tests running succesfully we have options to disable the failing tests, but this changes are globally applied, meaning that, by disabling a test, it is disable in all tested distributions. This patch allows tests to be enabled or disabled for a specific distribution, by setting the configuration on the 'variable' template for the specific testing scenario.
-
- Jun 15, 2022
-
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
pytest provide the means to skip tests based on patterns, but writing these patterns for ansible-freeipa might not be feasible. This PR allows the selection of playbook tests and modules that will be executed with pytest using the environmentt variables IPA_ENABLED_TESTS IPA_ENABLED_MODULES, IPA_DISABLED_TESTS or IPA_DISABLED_MODULES. When using IPA_ENABLED_MODULES, all modules will be disabled, and only the modules in the enabled list will be tested. If using the test filter, IPA_ENABLED_TESTS, all tests are disabled, unless they are in the enabled test lists. If the IPA_DISABLED_* version is used, tests and modules are enabled by default, and the list is used to disable the module or specific test. To disable a test or module in Azure CI, edit the file `tests/azure/variables` and add the desired tests or modules to the parameter variables `enabled_modules`, 'enabled_tests`, `disabled_tests` or `disable_modules`. Note that, if added to the `master` branch, this will affect the tests for every pipeline that it is include (including 'nightly'), so it should be used with care. It can be used with TEMP commits to enable only the desired tests, speeding up upstream tests.
-
- Feb 15, 2022
-
-
Rafael Guterres Jeffman authored
With the removal of CentOS 8 container, the available Fedora latest image will be used for tests, if a specific container is not given.
-
- Dec 10, 2021
-
-
Rafael Guterres Jeffman authored
This patch modifies the Python version used to be the latest available, and add stages to execute the tests using ansible-core 2.12. As we use Ubuntu 20.04, Python version 3.8 is avaiable. Previously, ansible-core 2.12 was not available as it cannot be installed with Python 3.6, which was the version used.
-
- Nov 16, 2021
-
-
Rafael Guterres Jeffman authored
Currently, upstream CI test documentation against different Ansible versions, but playbook tests are only executed with Ansible 2.9 series. This patch add support for running playbook tests against Ansible 2.9, ansible-core 2.11, and against latest version of Ansible. As running all the tests for every PR would take too long, the tests for every PR use only Anisble 2.9, and are executed on Fedora-latest and CentOS 7 and 8. A new pipeline for nightly tests was added, which runs the tests in the same distros, using Ansible 2.9, latest and Ansible-core 2.11.
-
- Sep 29, 2021
-
-
Rafael Guterres Jeffman authored
-
- May 25, 2021
-
-
Thomas Woerner authored
The test preparation failed with "the connection plugin 'community.docker.docker' was not found" in "Setup test container". "ansible-galaxy collection install community.docker" has been added to tests/azure/templates/playbook_tests.yml and tests/azure/templates/pytest_tests.yml
-
- May 03, 2021
-
-
Thomas Woerner authored
The ANSIBLE_LIBRARY environment variable needs to point to molecule directory.
-
- Aug 31, 2020
-
-
Sergio Oliveira Campos authored
Until now ansible-freeipa repository only had playbook tests. This commit introduces the ability of creating TestCase classes connected to the master host. This connection can be used to run commands in the managed host after the ansible playbook execution is the allowing the verification of the machine state.
-