removed test-release

This commit is contained in:
Daniel Sanche 2020-01-27 17:14:40 -08:00
parent 95be95ceec
commit c6eca7c4b3

View file

@ -63,43 +63,3 @@ jobs:
if [[ "$RESULT" != " HTTP/1.1 200 OK" ]]; then
exit 1
fi
test-release:
runs-on: self-hosted
needs: [setup, test-source]
steps:
- uses: actions/checkout@v2
- name: Clean Cluster
run: |
kubectl delete all --all --wait=true --force --grace-period=0
sleep 5
- name: Deploy Release Manifests
run: |
kubectl apply -f ./release/kubernetes-manifests.yaml
- name: Wait For Pods
run: |
sleep 60
kubectl get pods
echo waiting for ready state...
kubectl wait --for=condition=ready pod -l app=adservice --timeout=500s
kubectl wait --for=condition=ready pod -l app=cartservice --timeout=500s
kubectl wait --for=condition=ready pod -l app=checkoutservice --timeout=500s
kubectl wait --for=condition=ready pod -l app=currencyservice --timeout=500s
kubectl wait --for=condition=ready pod -l app=emailservice --timeout=500s
kubectl wait --for=condition=ready pod -l app=frontend --timeout=500s
kubectl wait --for=condition=ready pod -l app=loadgenerator --timeout=500s
kubectl wait --for=condition=ready pod -l app=paymentservice --timeout=500s
kubectl wait --for=condition=ready pod -l app=productcatalogservice --timeout=500s
kubectl wait --for=condition=ready pod -l app=recommendationservice --timeout=500s
kubectl wait --for=condition=ready pod -l app=shippingservice --timeout=500s
- name: Test HTTP
timeout-minutes: 5
run: |
RESULT=" "
while [[ "$RESULT" != " HTTP/1.1 200 OK" ]]; do
sleep 1
RESULT=$(kubectl exec deployments/frontend -- sh -c "wget --spider -S "http://frontend" 2>&1 | grep 'HTTP/'")
echo "front end response: $RESULT"
done
if [[ "$RESULT" != " HTTP/1.1 200 OK" ]]; then
exit 1
fi