Skip to content

Commit

Permalink
fix: xiaoya test remove unnecessary 302 judgments
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Jan 22, 2025
1 parent 93c3508 commit 40c99b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions all_in_one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1560,14 +1560,14 @@ function test_xiaoya_status() {
get_docker0_url

INFO "测试xiaoya的联通性..."
if curl -siL -m 10 http://127.0.0.1:5678/d/README.md | grep -v 302 | grep -e "x-oss-" -e "x-115-request-id"; then
if curl -siL -m 10 http://127.0.0.1:5678/d/README.md | grep -e "x-oss-" -e "x-115-request-id"; then
xiaoya_addr="http://127.0.0.1:5678"
elif curl -siL -m 10 http://${docker0}:5678/d/README.md | grep -v 302 | grep -e "x-oss-" -e "x-115-request-id"; then
elif curl -siL -m 10 http://${docker0}:5678/d/README.md | grep -e "x-oss-" -e "x-115-request-id"; then
xiaoya_addr="http://${docker0}:5678"
else
if [ -s ${CONFIG_DIR}/docker_address.txt ]; then
docker_address=$(head -n1 ${CONFIG_DIR}/docker_address.txt)
if curl -siL -m 10 ${docker_address}/d/README.md | grep -v 302 | grep -e "x-oss-" -e "x-115-request-id"; then
if curl -siL -m 10 ${docker_address}/d/README.md | grep -e "x-oss-" -e "x-115-request-id"; then
xiaoya_addr=${docker_address}
else
__xiaoya_connectivity_detection=$(cat ${DDSREM_CONFIG_DIR}/xiaoya_connectivity_detection.txt)
Expand Down

0 comments on commit 40c99b3

Please sign in to comment.