Skip to content

Commit

Permalink
Fixing
Browse files Browse the repository at this point in the history
Signed-off-by: gabriel-farache <[email protected]>
  • Loading branch information
gabriel-farache committed Nov 5, 2024
1 parent 7309f69 commit 411ded2
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 21 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/create-ocp-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
\"name\": \"orchestrator-postgresql\",
\"port\": 5432,
\"databaseName\": \"postgres\",
\"databaseSchema\": \"mta\"
\"databaseSchema\": \"create-ocp-project\"
}
}
}
Expand Down Expand Up @@ -100,6 +100,7 @@ jobs:
}
}
'
kubectl scale deploy "${WORKFLOW_NAME}" --replicas=0
kubectl get pod -A
kubectl wait --for=condition=Ready=true pods -l app="${WORKFLOW_NAME}" --timeout=1m
Expand All @@ -108,14 +109,19 @@ jobs:
kubectl expose "$(kubectl get pod -o name | grep create-ocp-project)" --type="NodePort" --port=8080 --name=create-ocp-project-svc
kubectl port-forward svc/create-ocp-project-svc 8080:8080 &
status_code=$(curl s -o /dev/null -w '%{http_code}' -XGET --location 'http://localhost:8080/create-ocp-project' --header 'Accept: application/json, text/plain, */*' --header 'Content-Type: application/json')
if [ "$status_code" -ne 200 ]; then;
sleep 3
if [ "$status_code" -ne 200 ]; then
echo "$status_code"
exit 1
fi
- name: Export kind Logs
if: always()
run: kind export logs ./kind_logs
run: |
kubectl get pod -A
kubectl get deploy -A
kubectl get sonataflow -A
kind export logs ./kind_logs
- name: Upload Kind Logs
uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/extendable-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
\"name\": \"orchestrator-postgresql\",
\"port\": 5432,
\"databaseName\": \"postgres\",
\"databaseSchema\": \"mta\"
\"databaseSchema\": \"extendable-workflow\"
}
}
}
Expand All @@ -69,7 +69,7 @@ jobs:
kubectl port-forward svc/extendable-workflow-svc 8080:8080 &
sleep 3
status_code=$(curl s -o /dev/null -w '%{http_code}' -XGET --location 'http://localhost:8080/extendable-workflow' --header 'Accept: application/json, text/plain, */*' --header 'Content-Type: application/json')
if [ "$status_code" -ne 200 ]; then;
if [ "$status_code" -ne 200 ]; then
echo "$status_code"
exit 1
fi
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/greeting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
\"name\": \"orchestrator-postgresql\",
\"port\": 5432,
\"databaseName\": \"postgres\",
\"databaseSchema\": \"mta\"
\"databaseSchema\": \"greeting\"
}
}
}
Expand All @@ -68,14 +68,19 @@ jobs:
kubectl expose "$(kubectl get pod -o name | grep greeting)" --type="NodePort" --port=8080 --name=greeting-svc
kubectl port-forward svc/greeting-svc 8080:8080 &
status_code=$(curl s -o /dev/null -w '%{http_code}' -XGET --location 'http://localhost:8080/greeting' --header 'Accept: application/json, text/plain, */*' --header 'Content-Type: application/json')
if [ "$status_code" -ne 200 ]; then;
sleep 3
if [ "$status_code" -ne 200 ]; then
echo "$status_code"
exit 1
fi
- name: Export kind Logs
if: always()
run: kind export logs ./kind_logs
run: |
kubectl get pod -A
kubectl get deploy -A
kubectl get sonataflow -A
kind export logs ./kind_logs
- name: Upload Kind Logs
uses: actions/upload-artifact@v4
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/modify-vm-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ jobs:
}
}
'
kubectl scale deploy "${WORKFLOW_NAME}" --replicas=0
kubectl get pod -A
kubectl wait --for=condition=Ready=true pods -l app="${WORKFLOW_NAME}" --timeout=1m
Expand All @@ -108,14 +109,19 @@ jobs:
kubectl expose "$(kubectl get pod -o name | grep modify-vm-resources)" --type="NodePort" --port=8080 --name=modify-vm-resources-svc
kubectl port-forward svc/modify-vm-resources-svc 8080:8080 &
status_code=$(curl s -o /dev/null -w '%{http_code}' -XGET --location 'http://localhost:8080/modify-vm-resources' --header 'Accept: application/json, text/plain, */*' --header 'Content-Type: application/json')
if [ "$status_code" -ne 200 ]; then;
sleep 3
if [ "$status_code" -ne 200 ]; then
echo "$status_code"
exit 1
fi
- name: Export kind Logs
if: always()
run: kind export logs ./kind_logs
run: |
kubectl get pod -A
kubectl get deploy -A
kubectl get sonataflow -A
kind export logs ./kind_logs
- name: Upload Kind Logs
uses: actions/upload-artifact@v4
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/mta-v7.x-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,19 @@ jobs:
kubectl expose "$(kubectl get pod -o name | grep mta)" --type="NodePort" --port=8080 --name=mta-svc
kubectl port-forward svc/mta-svc 8080:8080 &
status_code=$(curl s -o /dev/null -w '%{http_code}' -XGET --location 'http://localhost:8080/mta-analysis-v7' --header 'Accept: application/json, text/plain, */*' --header 'Content-Type: application/json')
if [ "$status_code" -ne 200 ]; then;
sleep 3
if [ "$status_code" -ne 200 ]; then
echo "$status_code"
exit 1
fi
- name: Export kind Logs
if: always()
run: kind export logs ./kind_logs
run: |
kubectl get pod -A
kubectl get deploy -A
kubectl get sonataflow -A
kind export logs ./kind_logs
- name: Upload Kind Logs
uses: actions/upload-artifact@v4
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/mtv-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
\"name\": \"orchestrator-postgresql\",
\"port\": 5432,
\"databaseName\": \"postgres\",
\"databaseSchema\": \"mta\"
\"databaseSchema\": \"mtv-migration\"
}
}
}
Expand Down Expand Up @@ -87,6 +87,7 @@ jobs:
}
}
'
kubectl scale deploy "${WORKFLOW_NAME}" --replicas=0
kubectl get pod -A
kubectl wait --for=condition=Ready=true pods -l app="${WORKFLOW_NAME}" --timeout=1m
Expand All @@ -95,14 +96,19 @@ jobs:
kubectl expose "$(kubectl get pod -o name | grep mtv-migration)" --type="NodePort" --port=8080 --name=mtv-migration-svc
kubectl port-forward svc/mtv-migration-svc 8080:8080 &
status_code=$(curl s -o /dev/null -w '%{http_code}' -XGET --location 'http://localhost:8080/mtv-migration' --header 'Accept: application/json, text/plain, */*' --header 'Content-Type: application/json')
if [ "$status_code" -ne 200 ]; then;
sleep 3
if [ "$status_code" -ne 200 ]; then
echo "$status_code"
exit 1
fi
- name: Export kind Logs
if: always()
run: kind export logs ./kind_logs
run: |
kubectl get pod -A
kubectl get deploy -A
kubectl get sonataflow -A
kind export logs ./kind_logs
- name: Upload Kind Logs
uses: actions/upload-artifact@v4
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/mtv-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
\"name\": \"orchestrator-postgresql\",
\"port\": 5432,
\"databaseName\": \"postgres\",
\"databaseSchema\": \"mta\"
\"databaseSchema\": \"mtv-plan\"
}
}
}
Expand Down Expand Up @@ -87,6 +87,7 @@ jobs:
}
}
'
kubectl scale deploy "${WORKFLOW_NAME}" --replicas=0
kubectl get pod -A
kubectl wait --for=condition=Ready=true pods -l app="${WORKFLOW_NAME}" --timeout=1m
Expand All @@ -95,14 +96,19 @@ jobs:
kubectl expose "$(kubectl get pod -o name | grep mtv-plan)" --type="NodePort" --port=8080 --name=mtv-plan-svc
kubectl port-forward svc/mtv-plan-svc 8080:8080 &
status_code=$(curl s -o /dev/null -w '%{http_code}' -XGET --location 'http://localhost:8080/mtv-plan' --header 'Accept: application/json, text/plain, */*' --header 'Content-Type: application/json')
if [ "$status_code" -ne 200 ]; then;
sleep 3
if [ "$status_code" -ne 200 ]; then
echo "$status_code"
exit 1
fi
- name: Export kind Logs
if: always()
run: kind export logs ./kind_logs
run: |
kubectl get pod -A
kubectl get deploy -A
kubectl get sonataflow -A
kind export logs ./kind_logs
- name: Upload Kind Logs
uses: actions/upload-artifact@v4
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/request-vm-cnv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
\"name\": \"orchestrator-postgresql\",
\"port\": 5432,
\"databaseName\": \"postgres\",
\"databaseSchema\": \"mta\"
\"databaseSchema\": \"request-vm-cnv\"
}
}
}
Expand Down Expand Up @@ -100,6 +100,7 @@ jobs:
}
}
'
kubectl scale deploy "${WORKFLOW_NAME}" --replicas=0
kubectl get pod -A
kubectl wait --for=condition=Ready=true pods -l app="${WORKFLOW_NAME}" --timeout=1m
Expand All @@ -108,14 +109,17 @@ jobs:
kubectl expose "$(kubectl get pod -o name | grep request-vm-cnv)" --type="NodePort" --port=8080 --name=request-vm-cnv-svc
kubectl port-forward svc/request-vm-cnv-svc 8080:8080 &
status_code=$(curl s -o /dev/null -w '%{http_code}' -XGET --location 'http://localhost:8080/request-vm-cnv' --header 'Accept: application/json, text/plain, */*' --header 'Content-Type: application/json')
if [ "$status_code" -ne 200 ]; then;
sleep 3
if [ "$status_code" -ne 200 ]; then
echo "$status_code"
exit 1
fi
- name: Export kind Logs
if: always()
run: kind export logs ./kind_logs
run: |
kubectl get pod -A
kind export logs ./kind_logs
- name: Upload Kind Logs
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 411ded2

Please sign in to comment.