forked from envoyproxy/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathverify.sh
executable file
·61 lines (52 loc) · 1.7 KB
/
verify.sh
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash -e
export NAME=skywalking
export PORT_PROXY="${SKYWALKING_PORT_PROXY:-11910}"
export PORT_UI="${SKYWALKING_PORT_UI:-11911}"
# NB: This allows ES to run in a low-resource environment,
# dont do this in a production environment.
export ES_MAX_HEADROOM=1GB
export ES_WATERMARK_FLOOD_FROZEN=99%
export ES_WATERMARK_FLOOD=99%
export ES_WATERMARK_HIGH=99%
export ES_WATERMARK_LOW=99%
# shellcheck source=verify-common.sh
. "$(dirname "${BASH_SOURCE[0]}")/../verify-common.sh"
run_log "Make a request to service-1"
responds_with \
"Hello from behind Envoy (service 1)!" \
"http://localhost:${PORT_PROXY}/trace/1"
run_log "Make a request to service-2"
responds_with \
"Hello from behind Envoy (service 2)!" \
"http://localhost:${PORT_PROXY}/trace/2"
run_log "View the traces in Skywalking UI"
responds_with \
"<!DOCTYPE html>" \
"http://localhost:${PORT_UI}"
run_log "Test OAP Server"
responds_with \
"getEndpoints" \
"http://localhost:${PORT_UI}/graphql" \
-X POST \
-H "Content-Type:application/json" \
-d "{ \"query\": \"query queryEndpoints(\$serviceId: ID!, \$keyword: String!) {
getEndpoints: searchEndpoint(serviceId: \$serviceId, keyword: \$keyword, limit: 100) {
key: id
label: name
}
}\",
\"variables\": { \"serviceId\": \"\", \"keyword\": \"\" }
}"
responds_with \
"currentTimestamp" \
"http://localhost:${PORT_UI}/graphql" \
-X POST \
-H "Content-Type:application/json" \
-d "{ \"query\": \"query queryOAPTimeInfo {
getTimeInfo {
timezone
currentTimestamp
}
}\",
\"variables\": {}
}"