Skip to content

Commit

Permalink
FIXUP: Azure
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Jun 30, 2024
1 parent 9da9f15 commit 9c9a63c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/azure/pr-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ stages:
parameters:
build_number: $(Build.BuildNumber)
scenario: c8s
ansible_version: "-core >=2.14,<2.15"
# Python 3.8 does not work with ansible-core >=2.14.0
ansible_version: "-core ==2.13.3"
#ansible_version: "-core ==2.13.3"

# CentOS 7

Expand All @@ -62,6 +63,7 @@ stages:
build_number: $(Build.BuildNumber)
scenario: centos-7
ansible_version: "-core >=2.14,<2.15"
target_python: "/usr/bin/python2"

# Rawhide

Expand Down
4 changes: 4 additions & 0 deletions tests/azure/templates/fast_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ parameters:
- name: ansible_version
type: string
default: ""
- name: target_python
type: string
default: "/usr/bin/python3"

jobs:
- template: playbook_fast.yml
Expand All @@ -18,6 +21,7 @@ jobs:
scenario: ${{ parameters.scenario }}
ansible_version: ${{ parameters.ansible_version }}
python_version: '< 3.12'
target_python: ${{ parameters.target_python }}

# - template: pytest_tests.yml
# parameters:
Expand Down
5 changes: 4 additions & 1 deletion tests/azure/templates/playbook_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ parameters:
default: 3.x
- name: build_number
type: string
- name: target_python
type: string
default: "/usr/bin/python3"

jobs:
- job: Test_Group${{ parameters.group_number }}
Expand Down Expand Up @@ -50,7 +53,7 @@ jobs:
- script: |
. utils/set_test_modules
utils/run-tests.sh -a -i ${{ parameters.scenario }} -c ${{ parameters.scenario }}
utils/run-tests.sh -a -p ${{ parameters.target_python }} -i ${{ parameters.scenario }} -c ${{ parameters.scenario }}
displayName: Run playbook tests
env:
IPA_SERVER_HOST: ${{ parameters.scenario }}
Expand Down

0 comments on commit 9c9a63c

Please sign in to comment.