From 597edf16353c49c6029465082c91887cfada347b Mon Sep 17 00:00:00 2001
From: gifrerenom <lluis.gifre@cttc.es>
Date: Sun, 16 Mar 2025 22:14:53 +0000
Subject: [PATCH] OFC25 tests:

- Updated deploy script to wait for Context subscription to be ready
---
 src/tests/ofc25/deploy.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/tests/ofc25/deploy.sh b/src/tests/ofc25/deploy.sh
index d72254191..8bd0b8989 100755
--- a/src/tests/ofc25/deploy.sh
+++ b/src/tests/ofc25/deploy.sh
@@ -104,9 +104,17 @@ mv tfs_runtime_env_vars.sh tfs_runtime_env_vars_e2e.sh
 # ===== Recovering files =========================
 mv manifests/contextservice.yaml.bak manifests/contextservice.yaml
 
+
+# ===== Wait Content for NATS Subscription =========================
+echo "Waiting for E2E Context to have subscriber ready..."
+while ! kubectl --namespace tfs-e2e logs deployment/contextservice -c server 2>&1 | grep -q 'Subscriber is Ready? True'; do sleep 1; done
+kubectl --namespace tfs-e2e logs deployment/contextservice -c server
+
+
 # ===== Onboarding topologies =========================
 # TODO: pending...
 
+
 # ===== Configure subscriptions =========================
 # This should not be needed
 #./src/tests/ofc25/subscription_ws_ip.sh
-- 
GitLab