Feature 10908: Update charm in running VNF instance
Adding robot test Basic 25
This test instantiates NS, updates the VNFD, update the VNF instance
by upgrading charm. Then it executes the new added action on this VNF.
Change-Id: I68140f01fadf791a512870ff0f6b0babfcb67e0c
Signed-off-by: aticig <gulsum.atici@canonical.com>
diff --git a/robot-systest/lib/ssh_lib.robot b/robot-systest/lib/ssh_lib.robot
index 23e5ae4..216cd59 100644
--- a/robot-systest/lib/ssh_lib.robot
+++ b/robot-systest/lib/ssh_lib.robot
@@ -30,6 +30,16 @@
Close All Connections
Should Be Equal As Integers ${rc} 0
+Check If Remote Folder Exists
+ [Arguments] ${host} ${username} ${password} ${privatekey} ${folder}
+
+ Open Connection ${host}
+ Run Keyword If '${password}'!='${EMPTY}' Login ${username} ${password}
+ ... ELSE Login With Public Key ${username} ${privatekey}
+ ${output}= Execute Command ls -d ${folder}
+ Close All Connections
+ Should Be Equal As Strings ${output} ${folder}
+
Get Remote File Content
[Arguments] ${host} ${username} ${password} ${privatekey} ${file}