Skip to content

Commit

Permalink
FFFFiiixxx
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 b203fdb commit edda214
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-ocp-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ jobs:
run: |
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')
sleep 3
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
echo "$status_code"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/greeting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
run: |
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')
sleep 3
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
echo "$status_code"
exit 1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/modify-vm-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ 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
kubectl wait --for=condition=Ready=true pods -l app="${WORKFLOW_NAME}" --timeout=1m || kubectl describe pod -l app="${WORKFLOW_NAME}"
- name: Test workflow is responsive
run: |
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')
sleep 3
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
echo "$status_code"
exit 1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mtv-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ 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
kubectl wait --for=condition=Ready=true pods -l app="${WORKFLOW_NAME}" --timeout=1m || kubectl describe pod -l app="${WORKFLOW_NAME}"
- name: Test workflow is responsive
run: |
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')
sleep 3
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
echo "$status_code"
exit 1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mtv-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ 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
kubectl wait --for=condition=Ready=true pods -l app="${WORKFLOW_NAME}" --timeout=1m || kubectl describe pod -l app="${WORKFLOW_NAME}"
- name: Test workflow is responsive
run: |
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')
sleep 3
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
echo "$status_code"
exit 1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/request-vm-cnv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ 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
kubectl wait --for=condition=Ready=true pods -l app="${WORKFLOW_NAME}" --timeout=1m || kubectl describe pod -l app="${WORKFLOW_NAME}"
- name: Test workflow is responsive
run: |
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')
sleep 3
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
echo "$status_code"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion e2e/move2kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sleep 3
echo "Proxy Janus-idp port ✅"

echo "Proxy move2kube instance port ⏳"
kubectl -n "${M2K_INSTANCE_NS}" port-forward svc/move2kube-instance-svc 8080:8080 &
kubectl -n "${M2K_INSTANCE_NS}" port-forward svc/move2kube-svc 8080:8080 &
move2kube_port_forward_pid="$!"
sleep 3
echo "Proxy move2kube instance port ✅"
Expand Down

0 comments on commit edda214

Please sign in to comment.