Skip to content

Commit

Permalink
TEST: run tests with Ubuntu 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Oct 13, 2023
1 parent bc8d128 commit ec18c96
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
10 changes: 5 additions & 5 deletions tests/azure/pr-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ stages:
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
ansible_version: "-core >=2.14,<2.15"
ansible_version: "-core"

# Galaxy on Fedora

Expand All @@ -27,7 +27,7 @@ stages:
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-latest
ansible_version: "-core >=2.14,<2.15"
ansible_version: "-core <2.16"

# CentOS 9 Stream

Expand All @@ -49,7 +49,7 @@ stages:
parameters:
build_number: $(Build.BuildNumber)
scenario: c8s
ansible_version: "-core >=2.14,<2.15"
ansible_version: "-core"

# CentOS 7

Expand All @@ -60,7 +60,7 @@ stages:
parameters:
build_number: $(Build.BuildNumber)
scenario: centos-7
ansible_version: "-core >=2.14,<2.15"
ansible_version: "-core"

# Rawhide

Expand All @@ -71,4 +71,4 @@ stages:
parameters:
build_number: $(Build.BuildNumber)
scenario: fedora-rawhide
ansible_version: "-core >=2.14,<2.15"
ansible_version: "-core"
2 changes: 1 addition & 1 deletion tests/azure/templates/fast_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
number_of_groups: 3
build_number: ${{ parameters.build_number }}
scenario: ${{ parameters.scenario }}
ansible_version: ${{ parameters.ansible_version }}z
ansible_version: ${{ parameters.ansible_version }}

# - template: pytest_tests.yml
# parameters:
Expand Down
45 changes: 23 additions & 22 deletions tests/azure/templates/playbook_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ jobs:
retryCountOnTaskFailure: 5
displayName: Install dependencies

- script: |
rm -rf ~/ansible
mkdir -p ~/.ansible/roles ~/.ansible/library ~/.ansible/module_utils
cp -a roles/* ~/.ansible/roles
cp -a plugins/modules/* ~/.ansible/library
cp -a plugins/module_utils/* ~/.ansible/module_utils
molecule create -s ${{ parameters.scenario }}
retryCountOnTaskFailure: 5
displayName: Setup test container
env:
ANSIBLE_LIBRARY: ./molecule
# - script: |
# rm -rf ~/ansible
# mkdir -p ~/.ansible/roles ~/.ansible/library ~/.ansible/module_utils
# cp -a roles/* ~/.ansible/roles
# cp -a plugins/modules/* ~/.ansible/library
# cp -a plugins/module_utils/* ~/.ansible/module_utils
# molecule create -s ${{ parameters.scenario }}
# retryCountOnTaskFailure: 5
# displayName: Setup test container
# env:
# ANSIBLE_LIBRARY: ./molecule

- script: |
. utils/set_test_modules
Expand All @@ -65,17 +65,18 @@ jobs:
- script: |
. utils/set_test_modules
if ! pytest \
-m "playbook" \
--verbose \
--color=yes \
--suppress-no-test-exit-code \
--splits=${{ parameters.number_of_groups }} \
--group=${{ parameters.group_number }} \
--junit-xml=TEST-results-group-${{ parameters.group_number }}.xml
then
[ $? -eq 5 ] && true || false
fi
utils/run-tests.sh -s user
# if ! pytest \
# -m "playbook" \
# --verbose \
# --color=yes \
# --suppress-no-test-exit-code \
# --splits=${{ parameters.number_of_groups }} \
# --group=${{ parameters.group_number }} \
# --junit-xml=TEST-results-group-${{ parameters.group_number }}.xml
# then
# [ $? -eq 5 ] && true || false
# fi
displayName: Run playbook tests
env:
IPA_SERVER_HOST: ${{ parameters.scenario }}
Expand Down

0 comments on commit ec18c96

Please sign in to comment.