Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
3237856
advanced reporting
elek Jul 17, 2020
ef725df
execute only acceptance
elek Jul 17, 2020
becba2a
avoid recursion
elek Jul 17, 2020
0a5cd41
fix naming
elek Jul 18, 2020
798f9be
retrigger ci
elek Jul 20, 2020
4721b0f
fix test execution
elek Jul 20, 2020
1252d3d
report output
elek Jul 21, 2020
28445cb
do not fail if logs output files are missing
elek Jul 22, 2020
ae58789
fix names in loops
elek Jul 26, 2020
e7ee7c3
Merge remote-tracking branch 'origin/master' into acceptance-reporting
elek Jul 26, 2020
4cdaf4e
follow latest changes from master (dirname /home/elek/projects/ozone-…
elek Jul 26, 2020
51f78ff
re-enable all the tests
elek Jul 27, 2020
378b92a
Merge remote-tracking branch 'origi/master' into HDDS-4033
elek Jul 29, 2020
7d7d84c
address code review comments (+reorganize find_tests)
elek Jul 29, 2020
f7398d4
rat fix
elek Jul 29, 2020
62c9780
Update hadoop-ozone/dist/src/test/shell/compose_testlib.bats
elek Jul 29, 2020
c549d46
Update hadoop-ozone/dist/src/test/shell/compose_testlib.bats
elek Jul 29, 2020
1d003b8
Update hadoop-ozone/dist/src/test/shell/compose_testlib.bats
elek Jul 29, 2020
88f3765
Update hadoop-ozone/dist/src/main/compose/ozone-topology/test.sh
elek Jul 29, 2020
2b133a6
Update hadoop-ozone/dist/src/main/compose/ozone-topology/test.sh
elek Jul 29, 2020
674205c
Merge remote-tracking branch 'elek/HDDS-4033' into HDDS-4033
elek Jul 29, 2020
5c53c97
Apply suggestions from code review
elek Jul 29, 2020
05e5f50
Merge remote-tracking branch 'elek/HDDS-4033' into HDDS-4033
elek Jul 29, 2020
712a06c
Merge remote-tracking branch 'origin/master' into HDDS-4033
elek Jul 29, 2020
6a208ad
remove duplicated loads
elek Jul 29, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions hadoop-ozone/dist/src/main/compose/ozone-mr/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )
ALL_RESULT_DIR="$SCRIPT_DIR/result"
set -x
RESULT=0
IFS=$'\n'
# shellcheck disable=SC2044
for test in $(find "$SCRIPT_DIR" -mindepth 2 -maxdepth 2 -name test.sh | grep "${OZONE_TEST_SELECTOR:-""}" |sort); do
TEST_DIR="$(dirname "$test")"
echo "Executing test in $TEST_DIR"

#required to read the .env file from the right location
cd "$TEST_DIR" || continue
./test.sh || echo "ERROR: Test execution of $TEST_DIR is FAILED!!!!"
RESULT_DIR="$TEST_DIR"/result
rebot -N $(basename $TEST_DIR) -o "$ALL_RESULT_DIR"/$(basename $TEST_DIR).xml "$RESULT_DIR"/*.xml
cp "$RESULT_DIR"/docker-*.log "$RESULT_DIR"/*.out* "$ALL_RESULT_DIR"/ || true
done
4 changes: 2 additions & 2 deletions hadoop-ozone/dist/src/main/compose/ozone/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ execute_robot_test scm gdpr

for scheme in ofs o3fs; do
for bucket in link bucket; do
execute_robot_test scm -v SCHEME:${scheme} -v BUCKET_TYPE:${bucket} ozonefs/ozonefs.robot
execute_robot_test scm -v SCHEME:${scheme} -v BUCKET_TYPE:${bucket} -N ozonefs-${scheme}-${bucket} ozonefs/ozonefs.robot
done
done

execute_robot_test scm security/ozone-secure-token.robot

for bucket in link generated; do
execute_robot_test scm -v BUCKET:${bucket} s3
execute_robot_test scm -v BUCKET:${bucket} -N s3-${bucket} s3
done

execute_robot_test scm recon
Expand Down
4 changes: 2 additions & 2 deletions hadoop-ozone/dist/src/main/compose/ozonesecure/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ execute_robot_test scm security

for scheme in ofs o3fs; do
for bucket in link bucket; do
execute_robot_test scm -v SCHEME:${scheme} -v BUCKET_TYPE:${bucket} ozonefs/ozonefs.robot
execute_robot_test scm -v SCHEME:${scheme} -v BUCKET_TYPE:${bucket} -N ozonefs-${scheme}-${bucket} ozonefs/ozonefs.robot
done
done

for bucket in link generated; do
execute_robot_test s3g -v BUCKET:${bucket} s3
execute_robot_test s3g -v BUCKET:${bucket} -N s3-${bucket} s3
done

#expects 4 pipelines, should be run before
Expand Down
5 changes: 4 additions & 1 deletion hadoop-ozone/dist/src/main/compose/test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ for test in $(find "$SCRIPT_DIR" -name test.sh | grep "${OZONE_TEST_SELECTOR:-""
echo "ERROR: Test execution of $(dirname "$test") is FAILED!!!!"
fi
RESULT_DIR="$(dirname "$test")/result"
cp "$RESULT_DIR"/robot-*.xml "$RESULT_DIR"/docker-*.log "$RESULT_DIR"/*.out* "$ALL_RESULT_DIR"/
rebot -N $(basename $(dirname "$test")) -o "$ALL_RESULT_DIR"/$(basename $(dirname "$test")).xml "$RESULT_DIR"/*.xml
cp "$RESULT_DIR"/docker-*.log "$RESULT_DIR"/*.out* "$ALL_RESULT_DIR"/
done

rebot -N acceptance -d "$ALL_RESULT_DIR" "$ALL_RESULT_DIR"/*.xml

rebot -N "smoketests" -d "$SCRIPT_DIR/result" "$SCRIPT_DIR/result/robot-*.xml"
if [ "$OZONE_WITH_COVERAGE" ]; then
pkill -f JacocoServer
Expand Down
2 changes: 1 addition & 1 deletion hadoop-ozone/dist/src/main/compose/testlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ execute_robot_test(){
OUTPUT_PATH="$RESULT_DIR_INSIDE/${OUTPUT_FILE}"
# shellcheck disable=SC2068
docker-compose exec -T "$CONTAINER" mkdir -p "$RESULT_DIR_INSIDE" \
&& docker-compose exec -T "$CONTAINER" robot -v OM_SERVICE_ID:"${OM_SERVICE_ID}" -v SECURITY_ENABLED:"${SECURITY_ENABLED}" -v OM_HA_PARAM:"${OM_HA_PARAM}" -v KEY_NAME:"${OZONE_BUCKET_KEY_NAME}" ${ARGUMENTS[@]} --log NONE -N "$TEST_NAME" --report NONE "${OZONE_ROBOT_OPTS[@]}" --output "$OUTPUT_PATH" "$SMOKETEST_DIR_INSIDE/$TEST"
&& docker-compose exec -T "$CONTAINER" robot -v OM_SERVICE_ID:"${OM_SERVICE_ID}" -v SECURITY_ENABLED:"${SECURITY_ENABLED}" -v OM_HA_PARAM:"${OM_HA_PARAM}" -v KEY_NAME:"${OZONE_BUCKET_KEY_NAME}" ${ARGUMENTS[@]} --log NONE --report NONE "${OZONE_ROBOT_OPTS[@]}" --output "$OUTPUT_PATH" "$SMOKETEST_DIR_INSIDE/$TEST"
local -i rc=$?

FULL_CONTAINER_NAME=$(docker-compose ps | grep "_${CONTAINER}_" | head -n 1 | awk '{print $1}')
Expand Down