File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 91
91
92
92
- name : Test Dashboard Web Interface
93
93
run : |
94
- ./testing/gh-actions/test_service.sh test-dashboard centraldashboard-angular kubeflow 8080
94
+ curl -f "http://localhost:8080/" >/dev/null 2>&1
95
+
96
+ curl -f "http://localhost:8080/healthz" >/dev/null 2>&1
97
+
98
+ RESPONSE=$(curl -s "http://localhost:8080/" | head -c 100)
99
+ if [[ -n "$RESPONSE" ]]; then
100
+ echo "Dashboard is serving content: ${RESPONSE:0:50}..."
101
+ else
102
+ echo "Dashboard is not serving content"
103
+ exit 1
104
+ fi
105
+
106
+ kubectl get service centraldashboard-angular -n kubeflow
107
+ kubectl get pods -n kubeflow -l app=centraldashboard-angular
95
108
96
109
- name : Test Dashboard Performance
97
110
run : |
Original file line number Diff line number Diff line change 89
89
sleep 5
90
90
done
91
91
92
+ if ! kubectl get namespace test-dashboard-profile >/dev/null 2>&1; then
93
+ echo "Failed to create test-dashboard-profile namespace"
94
+ exit 1
95
+ fi
96
+
92
97
kubectl get profile test-dashboard-profile
93
98
kubectl get namespace test-dashboard-profile
94
99
@@ -115,6 +120,7 @@ jobs:
115
120
echo "Dashboard is serving content: ${RESPONSE:0:50}..."
116
121
else
117
122
echo "Dashboard is not serving content"
123
+ exit 1
118
124
fi
119
125
120
126
kubectl get service centraldashboard -n kubeflow
You can’t perform that action at this time.
0 commit comments