Skip to content

Commit

Permalink
FIXUP: Azure
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Jun 29, 2024
1 parent c803ec9 commit 913b7bd
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions tests/azure/templates/playbook_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,46 +35,22 @@ jobs:
retryCountOnTaskFailure: 5
displayName: Install Ansible
- 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
retryCountOnTaskFailure: 5
displayName: Setup controller environment
- script: ansible-galaxy collection install containers.podman ansible.posix
- script: ansible-galaxy collection install containers.podman
retryCountOnTaskFailure: 5
displayName: Install Ansible collections

- script: pip install -r requirements-tests.txt
retryCountOnTaskFailure: 5
displayName: Install dependencies

- script: |
utils/setup_test_container.sh -e podman -i ${{ parameters.scenario }} ${{ parameters.scenario }}
displayName: Setup test container
- script: |
. utils/set_test_modules
python utils/check_test_configuration.py ${{ parameters.scenario }}
displayName: Check scenario test configuration
- 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 }} \
--randomly-seed=$(date "+%Y%m%d") \
--junit-xml=TEST-results-group-${{ parameters.group_number }}.xml
then
[ $? -eq 5 ] && true || false
fi
utils/run-tests.sh -e podman -i ${{ parameters.scenario }} -c ${{ parameters.scenario }}
displayName: Run playbook tests
env:
IPA_SERVER_HOST: ${{ parameters.scenario }}
Expand Down

0 comments on commit 913b7bd

Please sign in to comment.