Skip to content

Commit 32b3d2a

Browse files
committed
TEST: Add host ips as GRPC gateway
1 parent 230ccab commit 32b3d2a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/eos-grpc-test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ host=${2-"localhost"}
77
grpc_port=${3-"50051"}
88
grpc_endpoint="${host}:${grpc_port}"
99
url=root://$host
10+
host_ips=($(hostname -i))
1011

1112
test -z "$1" && echo "error: must specify test directory " && exit -1
1213
test -z "$2" && echo "error: must specify FQDN of GRPC endpoint" && exit -1
1314

1415
authkey=12345678
1516

17+
for ip in "${host_ips[@]}"; do
18+
eos vid add gateway "$ip" grpc
19+
done
20+
1621
eos vid add gateway "127.0.0.1" grpc
1722
eos vid add gateway "[:1]" grpc
1823
eos vid add gateway "[::1]" grpc

0 commit comments

Comments
 (0)