Skip to content

Commit

Permalink
fixup! STILL NEED SOME WORK
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Oct 30, 2024
1 parent cada6d1 commit 2b263d7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 49 deletions.
55 changes: 11 additions & 44 deletions infra/azure/templates/group_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,48 +16,15 @@ parameters:
default: false

jobs:
- template: run_tests.yml
parameters:
group_number: 1
number_of_groups: 3
build_number: ${{ parameters.build_number }}
distro: ${{ parameters.distro }}
ansible_version: ${{ parameters.ansible_version }}
python_version: '< 3.12'
skip_git_test: ${{ parameters.skip_git_test }}
test_galaxy: ${{ parameters.test_galaxy }}

- template: run_tests.yml
parameters:
group_number: 2
number_of_groups: 3
build_number: ${{ parameters.build_number }}
distro: ${{ parameters.distro }}
ansible_version: ${{ parameters.ansible_version }}
python_version: '< 3.12'
skip_git_test: ${{ parameters.skip_git_test }}
test_galaxy: ${{ parameters.test_galaxy }}

- template: run_tests.yml
parameters:
group_number: 3
number_of_groups: 3
build_number: ${{ parameters.build_number }}
distro: ${{ parameters.distro }}
ansible_version: ${{ parameters.ansible_version }}
python_version: '< 3.12'
skip_git_test: ${{ parameters.skip_git_test }}
test_galaxy: ${{ parameters.test_galaxy }}

# Temporarily disabled due to ansible docker plugin issue.
# - template: run_tests.yml
# parameters:
# group_number: 1
# number_of_groups: 1
# build_number: ${{ parameters.build_number }}
# distro: ${{ parameters.distro }}
# ansible_version: ${{ parameters.ansible_version }}
# python_version: '< 3.12'
# skip_git_test: ${{ parameters.skip_git_test }}
# test_type: "not playbook"
# test_galaxy: ${{ parameters.test_galaxy }}
- ${{ each group in split('1,2,3', ',') }}:
- template: run_tests.yml
parameters:
group_number: ${{ group }}
number_of_groups: 3
build_number: ${{ parameters.build_number }}
distro: ${{ parameters.distro }}
ansible_version: ${{ parameters.ansible_version }}
python_version: '< 3.12'
skip_git_test: ${{ parameters.skip_git_test }}
test_galaxy: ${{ parameters.test_galaxy }}
11 changes: 6 additions & 5 deletions infra/azure/templates/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
python_version: ${{ parameters.python_version }}

- bash: echo "##vso[task.setvariable variable=TOPDIR]${PWD}"

- script: |
. "${TOPDIR}/utils/set_test_modules"
python3 utils/check_test_configuration.py ${{ parameters.distro }}
Expand All @@ -54,7 +54,6 @@ jobs:
- script: |
git fetch --unshallow
utils/build-galaxy-release.sh -i
cd ~/.ansible/collections/ansible_collections/freeipa/ansible_freeipa
retryCountOnTaskFailure: 5
displayName: Build Galaxy release
condition: ${{ parameters.test_galaxy }}
Expand All @@ -66,6 +65,7 @@ jobs:
echo "LIBRARY: ${ANSIBLE_LIBRARY}"
echo "MODULE_UTILS: ${ANSIBLE_MODULE_UTILS}"
. "${TOPDIR}/utils/set_test_modules"
[ "${{ parameters.test_galaxy }}" == "True" ] && cd ~/.ansible/collections/ansible_collections/freeipa/ansible_freeipa
pytest \
-m "${{ parameters.test_type }}" \
--verbose \
Expand All @@ -78,9 +78,10 @@ jobs:
displayName: Run playbook tests
env:
SKIP_GIT_TEST: ${{ parameters.skip_git_test }}
ANSIBLE_ROLES_PATH: "${PWD}/roles"
ANSIBLE_LIBRARY: "${PWD}/plugins"
ANSIBLE_MODULE_UTILS: "${PWD}/plugins/module_utils"
${{ if not(parameters.test_galaxy) }}:
ANSIBLE_ROLES_PATH: "${PWD}/roles"
ANSIBLE_LIBRARY: "${PWD}/plugins"
ANSIBLE_MODULE_UTILS: "${PWD}/plugins/module_utils"
IPA_SERVER_HOST: ansible-freeipa-tests
RUN_TESTS_IN_DOCKER: podman
IPA_DISABLED_MODULES: ${{ variables.ipa_disabled_modules }}
Expand Down

0 comments on commit 2b263d7

Please sign in to comment.