-
Notifications
You must be signed in to change notification settings - Fork 20
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 #6 from openstack-k8s-operators/decapouple
decouple container changes from operator changes
- Loading branch information
Showing
4 changed files
with
52 additions
and
24 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
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,43 @@ | ||
#!/bin/sh | ||
# NOTE: consider converting it py | ||
set -x | ||
TEMPEST_DIR=$HOME/openshift | ||
OPERATOR_ETC=/etc/test_operator | ||
# NOTE: might be backed with a PV | ||
OUTPUT_PATH=$HOME/output | ||
|
||
cd "$HOME" | ||
|
||
export OS_CLOUD=default | ||
|
||
tempest init openshift | ||
mkdir -p "$OUTPUT_PATH" | ||
|
||
cd "$TEMPEST_DIR" | ||
|
||
# TODO: consider profile support, deployer-input and other args passing | ||
discover-tempest-config --os-cloud "$OS_CLOUD" --debug --create identity.v3_endpoint_type public | ||
|
||
tempest run \ | ||
--include-list ${OPERATOR_ETC}/include.txt \ | ||
--exclude-list ${OPERATOR_ETC}/exclude.txt | ||
|
||
# NOTE: We might not want to fail when tests are executed | ||
RETURN_VALUE=$? | ||
|
||
# NOTE: we have only one run | ||
echo "Generate subunit" | ||
stestr last --subunit > ${OUTPUT_PATH}/testrepository.subunit || true | ||
|
||
# NOTE: can be done in parallel | ||
echo "Generate subunit xml file" | ||
subunit2junitxml "${OUTPUT_PATH}/testrepository.subunit" > "${OUTPUT_PATH}/tempest_results.xml" || true | ||
|
||
echo "Generate html result" | ||
subunit2html "${OUTPUT_PATH}/testrepository.subunit" "${OUTPUT_PATH}/stestr_results.html" || true | ||
|
||
# NOTE: do we really need more files ? | ||
echo Copying logs file | ||
cp -rf ${TEMPEST_DIR}/* ${OUTPUT_PATH} | ||
|
||
exit ${RETURN_VALUE} |
This file was deleted.
Oops, something went wrong.