EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit cd002d90 authored by Mussab Abdalla's avatar Mussab Abdalla
Browse files

using 127.0.0.1 instead of localhost

parent c151351e
No related branches found
No related tags found
1 merge request!87Client test
Pipeline #22987 failed
{
"baseUrl": "http://localhost:80"
"baseUrl": "127.0.0.1:80"
}
......@@ -33,8 +33,12 @@ done
kubectl cp default/`kubectl get po -l app.kubernetes.io/name=registrar -o name | cut -d'/' -f2 `:/mnt/ /mnt/registrar
# run tests (i.e. verification of output of above commands)
# expose database, renderer and client ports externally
kubectl port-forward svc/my-helm-release-database 5432:5432 &
kubectl port-forward svc/my-helm-release-client 80:80 &
kubectl port-forward svc/my-helm-release-renderer 81:81 &
KUBECTL_PORT_FORWARD_PID=$!
pytest test_preprocessor.py test_registrar.py
......@@ -53,10 +57,6 @@ kubectl exec deployment/my-helm-release-ingestor -- ls /var/ingestor/success > s
kubectl exec deployment/my-helm-release-ingestor -- ls /var/ingestor/fail > failure_list.csv
# client testing
wget 127.0.0.1:80
docker run --name cypress --network host -v ${PWD}:/mnt/ --rm -t --user 1000:1000 cypress/browsers:node16.14.0-slim-chrome99-ff97 bash -c "cd /mnt && npm ci && npm run e2e"
# fetch logs for ingestor tests
kubectl logs $(kubectl get po -l app.kubernetes.io/name=ingestor -o name | cut -d'/' -f2) > ingestor_log.txt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment