forked from sloppycoder/bank-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathping
More file actions
executable file
·29 lines (21 loc) · 662 Bytes
/
ping
File metadata and controls
executable file
·29 lines (21 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
EVANS=$(which evans)
if [ -z "$EVANS" ]; then
echo "evans not found. please download from https://github.com/ktr0731/evans/releases"
exit 1
fi
# exit when any command fails
set -e
source $(dirname $0)/common.sh
get_ingress_addr
[ -z "$DEMOBANK_PORT" ] && exit 1
ACCOUNT_ID=$1
[ -z "$ACCOUNT_ID" ] && ACCOUNT_ID="10001000"
echo calling gRPC service at ${DEMOBANK_HOST}:${DEMOBANK_PORT} with account_id = ${ACCOUNT_ID}
echo { \"login_name\": \"${ACCOUNT_ID}\" } | $EVANS \
-r \
--host $DEMOBANK_HOST \
--port $DEMOBANK_PORT \
cli \
call \
demobank.api.DashboardService.GetDashboard