mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-11 19:25:54 +00:00
CI: Test modules against different Ansible versions.
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.
This commit is contained in:
@@ -1,43 +1,41 @@
|
||||
# Using Ansible 2.10.0a1 under Azure there might happen that the output of a
|
||||
# task is changed if a module uses no_log = True for an attribute.
|
||||
#
|
||||
# For example, if the output of the module should contain "changed: True", and
|
||||
# an attribute with no_log set contains the value `hang` it might happen that
|
||||
# the output is modified to "c******ed: True", and if this output is further
|
||||
# processed (registering the result and comparing the value of `changed`),
|
||||
# the test might fail, but not because of module code, but because of unexpected
|
||||
# output processing.
|
||||
#
|
||||
# This behavior was, currently, only reproduced with Ansible 2.10.0a1 running
|
||||
# under Azure.
|
||||
---
|
||||
trigger:
|
||||
- master
|
||||
|
||||
pool:
|
||||
vmImage: 'ubuntu-20.04'
|
||||
vmImage: 'ubuntu-latest'
|
||||
|
||||
stages:
|
||||
- stage: Centos7
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/group_tests.yml
|
||||
parameters:
|
||||
build_number: $(Build.BuildNumber)
|
||||
scenario: centos-7
|
||||
|
||||
- stage: Centos8
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/group_tests.yml
|
||||
parameters:
|
||||
build_number: $(Build.BuildNumber)
|
||||
scenario: centos-8
|
||||
# Fedora
|
||||
|
||||
- stage: FedoraLatest
|
||||
- stage: FedoraLatest_Ansible_2_9
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/group_tests.yml
|
||||
parameters:
|
||||
build_number: $(Build.BuildNumber)
|
||||
scenario: fedora-latest
|
||||
ansible_version: ">=2.9,<2.10"
|
||||
|
||||
# CentOS 8
|
||||
|
||||
- stage: CentOS8_Ansible_2_9
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/group_tests.yml
|
||||
parameters:
|
||||
build_number: $(Build.BuildNumber)
|
||||
scenario: centos-8
|
||||
ansible_version: ">=2.9,<2.10"
|
||||
|
||||
# CentOS 7
|
||||
|
||||
- stage: CentOS7_Ansible_2_9
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/group_tests.yml
|
||||
parameters:
|
||||
build_number: $(Build.BuildNumber)
|
||||
scenario: centos-7
|
||||
ansible_version: ">=2.9,<2.10"
|
||||
|
||||
Reference in New Issue
Block a user