forked from konveyor/go-konveyor-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
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 konveyor#26 from aufi/add-hub-api-tests
Add Hub core API tests execution
- Loading branch information
Showing
3 changed files
with
40 additions
and
1 deletion.
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
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,7 @@ | ||
# Hub API remote tests | ||
|
||
Script ```run-tests.sh``` downloads Hub and executes its tests on running Konveyor. | ||
|
||
Usage: ```./run-tests.sh <branch-name>``` (default to main). | ||
|
||
Environment variables for HUB_BASE_URL and login/password are expected in the same way as common in this repository. |
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,25 @@ | ||
#!/bin/bash | ||
# | ||
# Script for downloading Hub and executing its tests on running Konveyor. | ||
# | ||
# Usage: ./run-tests.sh <branch-name> | ||
# | ||
# ENV variables for HUB_BASE_URL and login/password are expected. | ||
# | ||
|
||
export BRANCH=$1 | ||
export HUB_TMP_DIR="/tmp/tackle2-hub-test" | ||
|
||
if [ -z $BRANCH ]; then | ||
echo "Assuming 'main' branch to be used for Hub." | ||
export BRANCH="main" | ||
fi | ||
|
||
if [ -d $HUB_TMP_DIR ]; then | ||
cd $HUB_TMP_DIR | ||
git pull origin ${BRANCH} | ||
else | ||
git clone --branch ${BRANCH} https://github.com/konveyor/tackle2-hub.git $HUB_TMP_DIR && cd $_ | ||
fi | ||
|
||
make test-api |