Skip to content
Snippets Groups Projects
Commit adc0c12e authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

EuCNC24: Updated CI/CD pipeline

parent 71fbd559
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!172Resolve "(CTTC) Extend gNMI-OpenConfig SBI driver"
......@@ -93,13 +93,24 @@ end2end_test eucnc24:
- ./deploy/tfs.sh
- ./deploy/show.sh
# Wait for Context to be subscribed to NATS
- >
while ! kubectl --namespace $TFS_K8S_NAMESPACE logs deployment/contextservice -c server 2>&1 | grep -q 'Subscriber is Ready? True'; do
kubectl --namespace $TFS_K8S_NAMESPACE logs deployment/contextservice -c server 2>&1;
sleep 1;
done
- kubectl --namespace $TFS_K8S_NAMESPACE logs deployment/contextservice -c server
## Wait for Context to be subscribed to NATS
## WARNING: this loop is infinite if there is no subscriber (such as monitoring).
## Investigate if we can use a counter to limit the number of iterations.
## For now, keep it commented out.
#- LOOP_MAX_ATTEMPTS=180
#- LOOP_COUNTER=0
#- >
# while ! kubectl --namespace $TFS_K8S_NAMESPACE logs deployment/contextservice -c server 2>&1 | grep -q 'Subscriber is Ready? True'; do
# echo "Attempt: $LOOP_COUNTER"
# kubectl --namespace $TFS_K8S_NAMESPACE logs deployment/contextservice -c server 2>&1;
# sleep 1;
# LOOP_COUNTER=$((LOOP_COUNTER + 1))
# if [ "$LOOP_COUNTER" -ge "$LOOP_MAX_ATTEMPTS" ]; then
# echo "Max attempts reached, exiting the loop."
# break
# fi
# done
#- kubectl --namespace $TFS_K8S_NAMESPACE logs deployment/contextservice -c server
# Run end-to-end tests
- >
......
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