Skip to content

Commit 9ba749e

Browse files
committed
Update the end point call
Signed-off-by: kunal-511 <[email protected]>
1 parent da8c757 commit 9ba749e

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/centraldb_angular_integration_test.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,20 @@ jobs:
9191
9292
- name: Test Dashboard Web Interface
9393
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
95108
96109
- name: Test Dashboard Performance
97110
run: |

.github/workflows/centraldb_integration_test.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ jobs:
8989
sleep 5
9090
done
9191
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+
9297
kubectl get profile test-dashboard-profile
9398
kubectl get namespace test-dashboard-profile
9499
@@ -115,6 +120,7 @@ jobs:
115120
echo "Dashboard is serving content: ${RESPONSE:0:50}..."
116121
else
117122
echo "Dashboard is not serving content"
123+
exit 1
118124
fi
119125
120126
kubectl get service centraldashboard -n kubeflow

0 commit comments

Comments
 (0)