- Dec 02, 2022
-
-
Thomas Woerner authored
Github has been migrating ubuntu-latest from 20.04 to 22.04. 22.04 comes with cgroups version 2. No tests are run at the momens as the setup of the test container always fails with "Failed to create temporary directory" for gathering facts. See also: https://github.com/ansible-collections/news-for-maintainers/issues/28
-
- Sep 16, 2022
-
-
Rafael Guterres Jeffman authored
As the latest versions of FreeIPA contain fixes to set the port on DNS forwarders, this patch re-enables the upstream tests.
-
Rafael Guterres Jeffman authored
Update instuctions on Azure template varible files to reflect the current test configuration behavior.
-
- Sep 09, 2022
-
-
Rafael Guterres Jeffman authored
Since FreeIPA 4.9.8 the 'config_mod' command has parameters to enable and configure SIDs, and set the Netbios name. This patch adds the following parameters to ipaconfig plugin: enable_sids: New users and groups automatically get a SID assigned add_sids: Add SIDs for existing users and groups netbios_name: NetBIOS name of the IPA domain Both add_sids and netbios_name requires 'enable_sid: yes'. 'enable_sid' and 'netbios_name' are returned when querying IPA configuration. 'add_sids' always generate SIDs for users and groups, so, muiltiple executions of the playbook with 'add_sids: yes' will return 'changed', even if users and groups SIDs are not modified. A new test playbook is available: tests/config/test_config_sid.yml New examples playbooks are available: playbooks/config/change-ipa-domain-netbios-name.yml playbooks/config/generate-users-groups-sids.yml Fixes: #781 Related: https://bugzilla.redhat.com/show_bug.cgi?id=2069174 Related: https://bugzilla.redhat.com/show_bug.cgi?id=2069184
-
- Sep 03, 2022
-
-
Rafael Guterres Jeffman authored
The current workflow for bug fixing or new enhancements in ansible-freeipa includes running Ansible playbooks tests for all the available plugins for every pull request, even for contained modifications. This patch creates a new workflow for pull requests where only the affected plugins are tested in the PR. Changes that might affect other parts of the code will trigger tests for the parts affected. A utility script, utils/filter_tests, is used to set the variables IPA_ENABLED_MODULES and IPA_ENABLED_TESTS before executing the tests, effectively limiting which tests are executed. The script uses the python plugin 'utils/filter_plugins.py' which lists all test modules that should be executed for a list of modified source files. Tests are selected for execution based on the plugin name. For example, a change to 'plugins/modules/ipalocation.py' would trigger all playbook tests under 'tests/location'. If a test playbook is modified, it is scheduled to be executed. Changes to any file under 'plugins/module_utils' will force the execution of all tests, since any module might be affected by that change. The nature of the change is not evaluated, so a simple typo fix of a comment in a file under 'plugins/module_utils' would still schedule all test playbooks to be executed. For roles, any file changed under the role directory would set the role to be included in the tests. Playbook tests for roles must be created under 'tests/<rolename>_role', where role name in the name of the role without 'ipa', for example, the 'ipabackup' role test playbooks would be stored under 'tests/backup_role'. Since there is the possibility that the list of tests to be executed might be less than the number of tests groups used (3), a new pytest dependency was added, pytest-custom_exit_code, so that having no tests to run isn't a test failure. A new pipeline on Azure needs to be created to use the new test script.
-
- Aug 31, 2022
-
-
Rafael Guterres Jeffman authored
The plugin pytest-split-tests is used to split the tests in several groups so that the tests can be executed in parallel is upstream CI. The issue is thet pytest-split-tests last release was more that a year ago, upstream developers have not been responsive, and there is a bug when the number of tests to be executed by a group is zero. The patch to fix this issue has been open for a year. This patch deprecates the use of pytest-split-tests, changing the plugin used to split the tests to pytest-split, which is actively mainatined.
-
- Aug 29, 2022
-
-
Thomas Woerner authored
Some DNS tests have been disabled for Fedora latest, but not for Fedora Rawhide. Therefore these tests are filin still in nighty: - dnsforwardzone - test_dnsconfig_forwarders_ports
-
- Aug 24, 2022
-
-
Rafael Guterres Jeffman authored
Since test configuration can vary in different scenarios (test images) this patch adds a script to list the scenarios configuration, and a step to the playbook test jobs to display the scenario configuration.
-
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.
-
- Jul 21, 2022
-
-
Rafael Guterres Jeffman authored
This patch disables only the tests that are failing due to python-dns issue in FreeIPA, allowing other tests in the test suite to be executed.
-
- Jul 07, 2022
-
-
Rafael Guterres Jeffman authored
This patch enable upstream CI to build a testing Fedora Rawhide container and enables its use in nightly and weekly test runs.
-
- Jun 23, 2022
-
-
Rafael Guterres Jeffman authored
As the current latest upstream version of ansible-core is 2.13.0, to test against ansible-core 2.12 series we need to pin the version used on the test. This patch enables the already defined tests for ansible-core 2.12 that were available but commented out.
-
Rafael Guterres Jeffman authored
Ansible 2.9 is EOL, and we should only test with supported upstream versions of Ansible. This patch removes tests against Ansible 2.9.
-
- Jun 21, 2022
-
-
Rafael Guterres Jeffman authored
Provide a pipeline to test ansible-freeipa as an Ansible Galaxy collection. The tests will use 'utils/build-galaxy-release.sh' to create the galaxy release file, install it as a collection, and run the tests in it, which were modified to use FQCN. The tests will run only on 'fedora-latest' for each PR, and on all platforms for nightly and weekly tests.
-
- Jun 15, 2022
-
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
Due to an issue with IPA in Fedora 36, dnsconfig and dnsforwardzone plugin tests must be disabled. See FreeIPA issue: https://pagure.io/freeipa/issue/9158
-
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.
-
- May 12, 2022
-
-
Rafael Guterres Jeffman authored
The current ansible-core available in Fedora and RHEL is 2.12 series. This patch sets the version used for every PR CI to match this series. Other versions should be used only in the nightly/weekly tests.
-
Rafael Guterres Jeffman authored
This patch adds the latest ansible-core as a test target in upstream nightl/weekly CI. As, currently, the latest available ansible-core is still 2.12.z, the current ansible-core 2.12 targets were disabled. They should be enabled when ansible-core 2.13 is available.
-
Rafael Guterres Jeffman authored
CentOS 8 images are not supported anymore, and we are using CentOS 8 Stream images. This patch removes all configuration for CentOS 8 and updates test README to point to the available container images.
-
Rafael Guterres Jeffman authored
As Ansible versions might change, and as we don't need to report which version is used on every test, as the information is avaiable in case it is needed, the jobs labels are changed to easier display which image was used for testing.
-
- Feb 16, 2022
-
-
Rafael Guterres Jeffman authored
Changed scenario from old CentOS 8 (centos-8) to current Centos 8 Stream (c8s).
-
Rafael Guterres Jeffman authored
The correct name for upcoming release of CentOS is CentOS 9 Stream, usually abbreviated to 'c9s'. As we need to differentiate from the stream and the standard versions, this patch modifies the Azure piipelines to use 'c9s' instead of 'CentOS 9'.
-
- 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.
-
Rafael Guterres Jeffman authored
Newer Ansible versions will require at least Python 3.8 to be used, and the build containers pipeline was requiring Python 3.6, which is EOL. This patch requests the latest Python version available for the controller, and allows it to be configured to a specific version if, and when, needed.
-
Rafael Guterres Jeffman authored
Add configuration to build a testing CentOS 8 stream image and to execute upstream tests using that image in pull requests (Ansible 2.9) and on the nightly tests (all supported Ansible versions).
-
Rafael Guterres Jeffman authored
Currently the pipeline used to create test containers is using Python 3.6.15, and Ansible 2.12 requires, at least, Python 3.8. This change adds a new parameter to build container template, `python_version`, which is set by default to '3.x', meaning it will use the latest Python version available (for version 3) if the parameter is not explicitly set.
-
- Feb 03, 2022
-
-
Rafael Guterres Jeffman authored
Enables ansible-core 2.12 for CentOS 9 stream on nightly tests.
-
- 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 30, 2021
-
-
Rafael Guterres Jeffman authored
This patch add support for building testing images for CentOS 9 Stream.
-
- Nov 29, 2021
-
-
Rafael Guterres Jeffman authored
This patch adds support for running upstream tests using Centos-9 stream images. Both pull request and nightly tests are updated.
-
- Nov 26, 2021
-
-
Rafael Guterres Jeffman authored
When using group_tests, the pytest playbook was not receiving the Ansible version to use, executing always with the latest available version. This patch fixes the behavior by passing the Ansible version to use for tests to pytest_tests playbook.
-
- 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
-
- Jul 08, 2021
-
-
Rafael Guterres Jeffman authored
Currently, we rebuild the container images everyday, at midnight, which ensures that we have all the latest changes from every distro supported in CI. This approach works fine for the upstream CI, but if we want to use the CI images to test modules in a local container, for example, as proposed by PR #556, updating the images daily means that there will be much more images download that would not be needed, as the public cloud images of supported distros don't change so often. This patch proposes to change the build rate from daily to weekly, reducing the need to download images by users, while still using a good update window. It should be noted that, if required, the images can be rebuilt manually, so any urgent fix is added to the CI images.
-
- 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.
-
- Jan 26, 2021
-
-
Rafael Guterres Jeffman authored
Without explicit installation, Ansible was failing to run on Azure pipelines. This change explicitly install the latest Ansible version available through `pip`.
-
Rafael Guterres Jeffman authored
In the near future, Github will use Ubuntu 20.04, for workflows, and this change will keep the upstream CI environment consistent between Github and Azure.
-
- Sep 02, 2020
-
-
Rafael Guterres Jeffman authored
This patch disables execution of Python lintes on Azure pipelines, as they are now executed through Github Actions.
-