Skip to content

Commit

Permalink
extra commits to run container.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Jun 22, 2024
1 parent 1a46d2a commit ad32a87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/azure/pr-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ trigger:
- master

pool:
vmImage: 'ubuntu-22.04'
vmImage: 'ubuntu-20.04'

stages:

Expand Down
10 changes: 7 additions & 3 deletions tests/azure/templates/playbook_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,18 @@ jobs:
cp -a plugins/modules/* ~/.ansible/library
cp -a plugins/module_utils/* ~/.ansible/module_utils
docker pull -q quay.io/ansible-freeipa/upstream-tests:${{ parameters.scenario }}
docker create \
podman create \
--hostname ${HOSTNAME} \
--memory 3g \
--memory-swap -1 \
--add-host ${HOSTNAME}:127.0.0.1 \
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
--tmpfs /run \
--tmpfs /tmp \
--privileged \
--name ${{ parameters.scenario }} \
quay.io/ansible-freeipa/upstream-tests:${{ parameters.scenario }}
docker start ${{ parameters.scenario }}
podman start ${{ parameters.scenario }}
retryCountOnTaskFailure: 5
displayName: Setup test container
env:
Expand Down Expand Up @@ -85,7 +89,7 @@ jobs:
displayName: Run playbook tests
env:
IPA_SERVER_HOST: ${{ parameters.scenario }}
RUN_TESTS_IN_DOCKER: true
RUN_TESTS_IN_DOCKER: podman
IPA_DISABLED_MODULES: ${{ variables.ipa_disabled_modules }}
IPA_DISABLED_TESTS: ${{ variables.ipa_disabled_tests }}
IPA_VERBOSITY: "-vvv"
Expand Down

0 comments on commit ad32a87

Please sign in to comment.