removed test-release
This commit is contained in:
parent
95be95ceec
commit
c6eca7c4b3
1 changed files with 0 additions and 40 deletions
40
.github/workflows/smoke-tests.yml
vendored
40
.github/workflows/smoke-tests.yml
vendored
|
@ -63,43 +63,3 @@ jobs:
|
||||||
if [[ "$RESULT" != " HTTP/1.1 200 OK" ]]; then
|
if [[ "$RESULT" != " HTTP/1.1 200 OK" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue