Skip to content

Commit fde04f6

Browse files
committed
TEST: Fix grpc test URL used for upload
1 parent 32b3d2a commit fde04f6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/eos-grpc-test

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ prefix=${prefix%/}
66
host=${2-"localhost"}
77
grpc_port=${3-"50051"}
88
grpc_endpoint="${host}:${grpc_port}"
9-
url=root://$host
109
host_ips=($(hostname -i))
1110

1211
test -z "$1" && echo "error: must specify test directory " && exit -1
@@ -215,7 +214,7 @@ eos-grpc-ns --endpoint ${grpc_endpoint} --force-ssl --token $authkey --uid 99 re
215214
eos-grpc-ns --endpoint ${grpc_endpoint} --force-ssl --token $authkey --uid 99 recycle restore -p invalid | grep "\"code\": \"22\"" || exit -13
216215
eos-grpc-ns --endpoint ${grpc_endpoint} --force-ssl --token $authkey --uid 99 recycle restore 2>&1 | grep "failed to parse recycle command restore" || exit -13
217216
eos recycle config --add-bin $prefix/t_grpc/recycle
218-
xrdcp -f /etc/passwd "$url/$prefix/t_grpc/recycle/file1.dat?eos.ruid=11&eos.rgid=11" || exit -2
217+
xrdcp -f /etc/passwd "root://localhost/$prefix/t_grpc/recycle/file1.dat?eos.ruid=11&eos.rgid=11" || exit -2
219218
eos rm $prefix/t_grpc/recycle/file1.dat
220219
eos-grpc-ns --endpoint ${grpc_endpoint} --force-ssl --token $authkey --uid 99 recycle ls --uid | grep "$prefix/t_grpc/recycle/file1.dat" && exit -15
221220
eos-grpc-ns --endpoint ${grpc_endpoint} --force-ssl --token $authkey --uid 11 recycle ls --uid | grep "$prefix/t_grpc/recycle/file1.dat" || exit -16

0 commit comments

Comments
 (0)