Skip to content
Snippets Groups Projects
  1. 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
  2. Dec 26, 2022
  3. Aug 31, 2022
    • Rafael Guterres Jeffman's avatar
      tests: Drop pytest-split-tests in favor of pytest-split · b3ee4f9b
      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.
      b3ee4f9b
  4. Aug 24, 2022
    • Rafael Guterres Jeffman's avatar
      upstream ci: Add step to display scenario configuration · abef329b
      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.
      abef329b
    • 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
  5. Jun 21, 2022
    • Rafael Guterres Jeffman's avatar
      upstream CI: Add support for testing ansible-freeipa as a collection. · f44dc55b
      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.
      f44dc55b
  6. 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
  7. Feb 15, 2022
  8. 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
  9. 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
  10. Sep 29, 2021
  11. 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
  12. May 03, 2021
  13. 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.
      Unverified
      af7060d3
  14. Aug 21, 2020
    • Thomas Woerner's avatar
      tests/user/test_users*.yml: Use extended dynamic users.json · b7e1a99b
      Thomas Woerner authored
      test_users_absent.yml was using users_absent.json. It has been adapted to
      use users.json instead with an additional json_query to get only the names
      from users_present.json.
      
      create_users_json.yml has been added to create users.json if it is missing
      containing 500 users. It is included by test_users_present.yml and
      test_users_absent.yml.
      
      users_present.sh has been renamed to users.sh and modified to create by
      default users.json with 1000 users and additional with password and
      passwordexpiration in two years.
      
      jmespath has been added to pip install list in
      tests/azure/templates/playbook_tests.yml to emable the use of json_query.
      
      The requirement for jmespath has been added to tests/README.md.
      b7e1a99b
    • Sergio Oliveira Campos's avatar
      Testing build matrix · d6afa976
      Sergio Oliveira Campos authored
      Changes azure-pipelines to have 3 different stages: fedora-latest,
      centos-7 and centos-8.
      Unverified
      d6afa976
  15. Jul 28, 2020
Loading