Skip to content

Commit daf3fe3

Browse files
committed
fixup! start-scenario: Stop after creating compose
1 parent 0f67c63 commit daf3fe3

File tree

2 files changed

+5
-24
lines changed

2 files changed

+5
-24
lines changed

Diff for: infra/azure/templates/run_tests.yml

+3-24
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,20 @@ jobs:
5353
env:
5454
SKIP_GIT_TEST: ${{ parameters.skip_git_test }}
5555
56+
# Deployment of IPA servers/clients is done through the collection
5657
- script: |
5758
git fetch --unshallow
5859
utils/build-galaxy-release.sh -i
5960
retryCountOnTaskFailure: 5
6061
displayName: Build Galaxy release
61-
# condition: ${{ parameters.test_galaxy }}
6262
6363
- script: cat infra/scenarios/ipa-ad-trust.yml
6464
displayName: Debug - Show configuration
6565

6666
- script: |
67-
echo "PWD: ${PWD}"
68-
echo "TOPDIR: ${TOPDIR}"
69-
echo "ROLES: ${ANSIBLE_ROLES_PATH}"
70-
echo "LIBRARY: ${ANSIBLE_LIBRARY}"
71-
echo "MODULE_UTILS: ${ANSIBLE_MODULE_UTILS}"
7267
# [ "${{ parameters.test_galaxy }}" == "True" ] && cd ~/.ansible/collections/ansible_collections/freeipa/ansible_freeipa
7368
#
74-
infra/scenarios/start-scenario -D
69+
infra/scenarios/start-scenario -D infra/scenarios/ipa-ad-trust.yml
7570
# Give a chance for containers to be up
7671
sleep 5
7772
# workaround for 'sudo'
@@ -80,7 +75,7 @@ jobs:
8075
podman exec cli01 chmod u+r /etc/shadow
8176
# Deploy nodes
8277
ansible-playbook -i ansible-freeipa-scenario/inventory.yml ansible-freeipa-scenario/playbooks/deploy_*.yml ||:
83-
ansible-playbook -i ansible-freeipa-scenario/inventory.yml ansible-freeipa-scenario/playbooks/install-cluster.yml
78+
ansible-playbook -i ansible-freeipa-scenario/inventory.yml ansible-freeipa-scenario/playbooks/install-cluster.yml || exit 1
8479
ansible-playbook -i ansible-freeipa-scenario/inventory.yml ansible-freeipa-scenario/playbooks/config_*.yml ||:
8580
# Run tests
8681
infra/scenarios/run_test_scenario.sh -k
@@ -91,24 +86,8 @@ jobs:
9186
ANSIBLE_ROLES_PATH: "${PWD}/roles"
9287
ANSIBLE_LIBRARY: "${PWD}/plugins"
9388
ANSIBLE_MODULE_UTILS: "${PWD}/plugins/module_utils"
94-
# IPA_SERVER_HOST: ansible-freeipa-tests
95-
# RUN_TESTS_IN_DOCKER: podman
9689
IPA_DISABLED_MODULES: ${{ variables.ipa_disabled_modules }}
9790
IPA_DISABLED_TESTS: ${{ variables.ipa_disabled_tests }}
9891
IPA_ENABLED_MODULES: ${{ variables.ipa_enabled_modules }}
9992
IPA_ENABLED_TESTS: ${{ variables.ipa_enabled_tests }}
10093
# IPA_VERBOSITY: "-vvv"
101-
102-
# - script: tar czf run_${{ parameters.build_number }}.tar.gz ansible-freeipa-scenarios
103-
# displayName: Collect configuarion and logs
104-
105-
# - task: PublishPipelineArtifacts@1
106-
# inputs:
107-
# targetPath: run_${{ parameters.build_number }}.tar.gz
108-
# artifactName: RunLogs
109-
110-
# - task: PublishTestResults@2
111-
# inputs:
112-
# mergeTestResults: true
113-
# testRunTitle: PlaybookTests-Build${{ parameters.build_number }}
114-
# condition: succeededOrFailed()

Diff for: infra/scenarios/start-scenario

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ ipalab-config ${distro:-} -o "${LABDIR}" "$(readlink -f "$SCENARIO")"
6767

6868
cd "${LABDIR}"
6969

70+
echo "Starting compose."
71+
7072
# Start compose
7173
[ "${COMPOSE:-"Y"}" == "Y" ] || exit 0
7274

0 commit comments

Comments
 (0)