Modified test [sa-07] forcing webhook to make a 200 OK replay so POL does not hangs 46/9946/2
authorromeromonser <garomero@indra.es>
Wed, 4 Nov 2020 17:50:49 +0000 (18:50 +0100)
committerbeierlm <mark.beierl@canonical.com>
Tue, 10 Nov 2020 18:49:33 +0000 (19:49 +0100)
Change-Id: I680107a7e880eedf642083d6996263665b3f8eeb
Signed-off-by: romeromonser <garomero@indra.es>
robot-systest/testsuite/sa_07-alarms_from_sa-related_vnfs.robot

index 1881e32..1f92e0d 100644 (file)
@@ -75,7 +75,7 @@ Start Webhook Service
 
     Variable Should Exist  ${privatekey}  msg=SSH private key not available
     Sleep   40 seconds   Wait for SSH daemon to be up
-    ${stdout}=   Execute Remote Command Check Rc Return Output   ${ws_vnf_ip_addr}   ${username}   ${password}   ${privatekey}   nc -lkv '${ws_port}' > '${ws_log_file}' 2>&1 &
+    ${stdout}=   Execute Remote Command Check Rc Return Output   ${ws_vnf_ip_addr}   ${username}   ${password}   ${privatekey}   while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; test; } | nc -l '${ws_port}'; done > '${ws_log_file}' 2>&1 &
 
 
 Create VNF Descriptor