Skip to content

Commit

Permalink
tests: Improve CI tests, don't skip minikube load balancer
Browse files Browse the repository at this point in the history
  • Loading branch information
michaljurecko committed Jun 21, 2024
1 parent 11e0a64 commit 760d06e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test-k8s-service-stream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,15 @@ jobs:
- name: Check API response
if: always()
run: |
kubectl port-forward --address 0.0.0.0 --namespace $KUBERNETES_NAMESPACE service/stream-api 30001:80 &
curl --fail -s --max-time 5 --retry 5 --retry-connrefused "localhost:30001/health-check"
hostPort=$(minikube service --url stream-api --namespace $KUBERNETES_NAMESPACE)
echo "$hostPort"
curl --fail -s --max-time 5 --retry 5 --retry-connrefused "$hostPort/health-check"
- name: Check HTTP source response
if: always()
run: |
kubectl port-forward --address 0.0.0.0 --namespace $KUBERNETES_NAMESPACE service/stream-http-source 30002:80 &
curl --fail -s --max-time 5 --retry 5 --retry-connrefused "localhost:30002/health-check"
hostPort=$(minikube service --url stream-http-source --namespace $KUBERNETES_NAMESPACE)
curl --fail -s --max-time 5 --retry 5 --retry-connrefused "$hostPort/health-check"
- name: Test etcd defragmentation cron job
if: always()
Expand Down
8 changes: 6 additions & 2 deletions provisioning/stream/local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,9 @@ echo "To clear the MiniKube:"
echo "MINIKUBE_PROFILE=${MINIKUBE_PROFILE} minikube delete --purge"
echo
echo "Run port-forwarding to access services:"
echo "API: kubectl port-forward --address 0.0.0.0 --namespace $NAMESPACE service/stream-api :80"
echo "HTTP source: kubectl port-forward --address 0.0.0.0 --namespace $NAMESPACE service/stream-http-source :80"
echo "API:"
echo " kubectl port-forward --address 0.0.0.0 --namespace $NAMESPACE service/stream-api :80"
echo " OR "
echo "HTTP source:"
echo " kubectl port-forward --address 0.0.0.0 --namespace $NAMESPACE service/stream-http-source :80"
echo " OR "

0 comments on commit 760d06e

Please sign in to comment.