Enhancement: update dockerimage for s3test

Signed-off-by: zhuzhengyi001 <zhuzhengyi001@ke.com>
Signed-off-by: slasher <shenjie1@oppo.com>
This commit is contained in:
zhuzhengyi001 2021-08-24 11:26:34 +08:00 committed by 梁曟風
parent 6bf2882c53
commit 9f968b373d
6 changed files with 8 additions and 18 deletions

View File

@ -25,6 +25,7 @@ ltptest:
tags:
- cfs
script:
- docker/run_docker.sh --clean
- rm -rf docker/docker_data/*
- docker/run_docker.sh -l

View File

@ -352,7 +352,7 @@ services:
ipv4_address: 192.168.0.43
lcnode1:
image: ghcr.io/cubefs/cbfs-base:1.0-golang-1.16.12
image: ${IMAGE}
ports:
- "17410"
- 9500
@ -372,7 +372,7 @@ services:
lcnode2:
image: ghcr.io/cubefs/cbfs-base:1.0-golang-1.16.12
image: ${IMAGE}
ports:
- "17410"
- 9500
@ -391,7 +391,7 @@ services:
ipv4_address: 192.168.0.62
lcnode3:
image: ghcr.io/cubefs/cbfs-base:1.0-golang-1.16.12
image: ${IMAGE}
ports:
- "17410"
- 9500

View File

@ -264,6 +264,7 @@ delete_volumes() {
test_bucket() {
BUCKET=${bucket} python3 -m unittest2 discover ${work_path} "*.py" -v
if [[ $? -ne 0 ]]; then
echo -e "\033[31mS3 unittest FAILED\033[0m"
exit 1
fi
echo "Test bucket ${bucket} succeeded!"
@ -276,18 +277,6 @@ run_s3_test() {
echo " S3 compatibility tests ";
echo "******************************";
# install system requirements
echo -n "Installing system requirements ... "
apt-get update &>> /dev/null && apt-get install -y \
sudo \
python3 \
python3-pip &>> /dev/null
if [[ $? -ne 0 ]] ; then
echo -e "\033[31mfail\033[0m"
exit 1
fi
echo -e "\033[32mdone\033[0m"
# install python requirements
echo -n "Installing python requirements ... "
pip3 install -r ${work_path}/requirements.txt &>> /dev/null

View File

@ -140,7 +140,7 @@ start_client() {
sta=$(stat $MntPoint 2>/dev/null | tr ":" " " | awk '/Inode/{print $4}')
if [[ "x$sta" == "x1" ]] ; then
ok=1
echo -e "\033[32mdone\033[0m"
echo -e "\033[32mdone\033[0m"
exit 0
fi
done

2
docker/script/start_client_auth.sh Normal file → Executable file
View File

@ -100,7 +100,7 @@ start_client() {
sta=$(stat $MntPoint 2>/dev/null | tr ":" " " | awk '/Inode/{print $4}')
if [[ "x$sta" == "x1" ]] ; then
ok=1
echo "ok"
echo "ok"
exit 0
fi
done

0
docker/script/start_lcnode.sh Normal file → Executable file
View File