-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from ayushishu/main
Reusable Workflows f csit-1-node test and Improve Workflows naming
- Loading branch information
Showing
5 changed files
with
84 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: CSIT-1-Node-Test-Composed | ||
inputs: | ||
project_name: | ||
description: "repository name" | ||
required: true | ||
DOCKER_REPOSITORY: | ||
description: "image repository name" | ||
required: true | ||
ROBOT_IMAGE: | ||
description: "image name" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
# Checkout the code repository | ||
|
||
- name: Setup Jolokia for AAA | ||
if: ${{ inputs.project_name == 'aaa' }} | ||
run: | | ||
# Configure Jolokia for the 'aaa' test suite | ||
docker exec -i odl-container bash -c \ | ||
'echo "org.jolokia.authMode=basic" >> /home/user/karaf-0.18.1/etc/org.jolokia.osgi.cfg && \ | ||
echo "org.jolokia.user=admin" >> /home/user/karaf-0.18.1/etc/org.jolokia.osgi.cfg && \ | ||
echo "org.jolokia.password=admin" >> /home/user/karaf-0.18.1/etc/org.jolokia.osgi.cfg' | ||
shell: bash | ||
- name: Robot Setup | ||
uses: ayushishu/releng-docker/.github/action/ssh-setup-action@ayush | ||
with: | ||
docker_repository: ${{ inputs.DOCKER_REPOSITORY }} | ||
robot_image: ${{ inputs.ROBOT_IMAGE }} | ||
|
||
- name: Delay for 10 seconds | ||
run: sleep 10 | ||
shell: bash | ||
- name: Run Test | ||
uses: ayushishu/releng-docker/.github/action/robot-test-action@ayush | ||
with: | ||
test_suite: ${{ inputs.project_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# File: run_test.yaml | ||
name: "run-robot-test" | ||
inputs: | ||
test_suite: | ||
description: "test_suite" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Run Test | ||
run: | | ||
test_suite=${{ inputs.test_suite }} | ||
if [ "${test_suite}" == "daexim" ]; then | ||
robot_test_file="./010-special-export.robot 020-import-basic.robot 030-export-basic.robot 040-export-inclusions.robot" | ||
elif [ "${test_suite}" == "distribution" ]; then | ||
robot_test_file="karaf_sequence_install.robot karaf_stop.robot size.robot" | ||
elif [ "${test_suite}" == "aaa" ]; then | ||
robot_test_file="authn" | ||
fi | ||
docker exec robot bash -c "git clone https://github.com/opendaylight/integration-test.git && | ||
cd integration-test/csit/suites/${test_suite} && | ||
robot -L debug --variable USER_HOME:/root \ | ||
--variable WORKSPACE:/home/user \ | ||
-v BUNDLEFOLDER:karaf-0.18.1 \ | ||
-v ODL_STREAM:argon \ | ||
--variable DEFAULT_LINUX_PROMPT:\\\$ \ | ||
--variable ODL_SYSTEM_USER:user \ | ||
--variable ODL_SYSTEM_IP:opendaylight \ | ||
--variable ODL_SYSTEM_1_IP:opendaylight \ | ||
-v IS_KARAF_APPL:True \ | ||
$robot_test_file" | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters