From 913b7bdb4e127df220acf5a2581bb1b93ec50898 Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman Date: Sat, 29 Jun 2024 20:56:15 +0000 Subject: [PATCH] FIXUP: Azure --- tests/azure/templates/playbook_fast.yml | 28 ++----------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/tests/azure/templates/playbook_fast.yml b/tests/azure/templates/playbook_fast.yml index 476388386d..bbb95232aa 100644 --- a/tests/azure/templates/playbook_fast.yml +++ b/tests/azure/templates/playbook_fast.yml @@ -35,16 +35,7 @@ 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 @@ -52,10 +43,6 @@ jobs: 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 }} @@ -63,18 +50,7 @@ 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 }} \ - --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 }}