diff options
author | Andreas Geissler <andreas-geissler@telekom.de> | 2022-11-09 09:53:40 +0100 |
---|---|---|
committer | Andreas Geissler <andreas-geissler@telekom.de> | 2022-11-09 09:53:40 +0100 |
commit | d9fa0c044a36a62244e5283109bbd41b23e6ec4a (patch) | |
tree | 16aa5f990745c10361d2b29e218078089115b419 /robot | |
parent | 393a0d486706fd0c338c7025adbc26e30f1c47a0 (diff) |
[ROBOT] Fix DCAEMOD testcase for SM
kubectl exec commands need to be executed on the right container
as default container in SM is the istio-proxy
Issue-ID: INT-2160
Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Change-Id: I54f5bed78d8249b0b8dc6f28f60a012dc830370d
Diffstat (limited to 'robot')
-rw-r--r-- | robot/resources/dcaemod_interface.robot | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/robot/resources/dcaemod_interface.robot b/robot/resources/dcaemod_interface.robot index d018af4f..04aa6ae1 100644 --- a/robot/resources/dcaemod_interface.robot +++ b/robot/resources/dcaemod_interface.robot @@ -80,7 +80,7 @@ Get Pod Yaml Get Content Of Mounted Folder Inside Container [Arguments] ${compSpecName} ${volumeMountPath} - ${mountedFolderContent} = Run And Return Rc And Output kubectl -n onap exec $(kubectl get pod -n onap | grep ${compSpecName} | awk '{print $1}') -- ls ${volumeMountPath} + ${mountedFolderContent} = Run And Return Rc And Output kubectl -n onap exec $(kubectl get pod -n onap | grep ${compSpecName} | awk '{print $1}') -c ${compSpecName} -- ls ${volumeMountPath} Should Be Equal As Integers ${mountedFolderContent[0]} 0 ${mountedFolderContent} = Set Variable ${mountedFolderContent[1]} @@ -101,14 +101,14 @@ Verify If Mounted Folder Is Empty Verify If Mounted Folder Contains File [Arguments] ${compSpecName} ${fileName} ${configMapDir} - ${dirContent} = Run And Return Rc And Output kubectl -n onap exec $(kubectl get pod -n onap | grep ${compSpecName} | awk '{print $1}') -- ls ${configMapDir} + ${dirContent} = Run And Return Rc And Output kubectl -n onap exec $(kubectl get pod -n onap | grep ${compSpecName} | awk '{print $1}') -c ${compSpecName} -- ls ${configMapDir} Should Be Equal As Integers ${dirContent[0]} 0 Should Contain ${dirContent[1]} ${fileName} Verify File Content [Arguments] ${compSpecName} ${configMapFilePath} ${content} - ${fileContent} = Run And Return Rc And Output kubectl -n onap exec $(kubectl get pod -n onap | grep ${compSpecName} | awk '{print $1}') -- cat ${configMapFilePath} + ${fileContent} = Run And Return Rc And Output kubectl -n onap exec $(kubectl get pod -n onap | grep ${compSpecName} | awk '{print $1}') -c ${compSpecName} -- cat ${configMapFilePath} Should Be Equal As Integers ${fileContent[0]} 0 Should Contain ${fileContent[1]} ${content} |