Skip to content
Snippets Groups Projects
  1. Jul 21, 2023
    • Rafael Guterres Jeffman's avatar
      ci: Increase verbosity for Ansible playbook runs · ed3a0d5a
      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.
      ed3a0d5a
  2. May 05, 2023
  3. Apr 27, 2023
  4. Jan 23, 2023
    • Rafael Guterres Jeffman's avatar
      upstream CI: increase Azure test timeout. · 683a8948
      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.
      683a8948
  5. Dec 26, 2022
  6. Aug 24, 2022
    • Rafael Guterres Jeffman's avatar
      upstream ci: Add support for distro specific test configuration. · edccf70b
      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.
      edccf70b
  7. Jun 15, 2022
    • Rafael Guterres Jeffman's avatar
    • Rafael Guterres Jeffman's avatar
      Add support to define which playbook tests to execute with pytest. · 13cff635
      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.
      13cff635
  8. Feb 15, 2022
  9. Dec 10, 2021
    • Rafael Guterres Jeffman's avatar
      upstream CI: Enable nightly tests using ansible-core 2.12. · 41679822
      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.
      41679822
  10. Nov 16, 2021
    • Rafael Guterres Jeffman's avatar
      CI: Test modules against different Ansible versions. · 612b6076
      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.
      612b6076
  11. Sep 29, 2021
  12. May 25, 2021
    • Thomas Woerner's avatar
      tests/azure: Install community.docker Ansible collection · 7192b6fd
      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
      7192b6fd
  13. May 03, 2021
  14. Aug 31, 2020
    • Sergio Oliveira Campos's avatar
      Added ability to add pytest tests · af7060d3
      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.
      af7060d3
Loading