forked from openshift/origin-aggregated-logging
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathe2e-test.sh
More file actions
executable file
·24 lines (20 loc) · 824 Bytes
/
e2e-test.sh
File metadata and controls
executable file
·24 lines (20 loc) · 824 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
#!/bin/bash
if [[ $# -ne 1 ]]; then
# assuming not using OPS cluster
CLUSTER="false"
else
CLUSTER="$1"
fi
KIBANA_CLUSTER_SIZE=${KIBANA_CLUSTER_SIZE:=1}
KIBANA_OPS_CLUSTER_SIZE=${KIBANA_OPS_CLUSTER_SIZE:=1}
ES_CLUSTER_SIZE=${ES_CLUSTER_SIZE:=1}
ES_OPS_CLUSTER_SIZE=${ES_OPS_CLUSTER_SIZE:=1}
echo "Checking installation of the EFK stack..."
KIBANA_CLUSTER_SIZE=$KIBANA_CLUSTER_SIZE KIBANA_OPS_CLUSTER_SIZE=$KIBANA_OPS_CLUSTER_SIZE ES_CLUSTER_SIZE=$ES_CLUSTER_SIZE ES_OPS_CLUSTER_SIZE=$ES_OPS_CLUSTER_SIZE ./check-EFK-running.sh "$CLUSTER"
if [[ $? -eq 0 ]]; then
echo "Checking for log entry matches between ES and their sources..."
./check-logs.sh "$CLUSTER"
else
echo "Errors found when checking installation of the EFK stack -- not checking log entry matches. Please resolve errors and retest."
exit 1
fi