diff options
author | Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> | 2022-04-05 09:24:09 +0200 |
---|---|---|
committer | Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> | 2022-04-05 10:16:45 +0200 |
commit | 8d4a71c4ff8fcf9307952a75ca39f83d0d333bcb (patch) | |
tree | 077c6070f4f554f47534513c6903199aabaec18b /robot/resources | |
parent | a2179b661d5f380954ec3cdb70484b7d7413d8e9 (diff) |
[ROBOT] Add timout flag for helm unintsll operation
We've observed a race condition during testing JOB restarts
for 5gbulkpm. Due to restarts of failing xtesting JOBs
there is need to have fully executed teardown by previous
robot xtesting JOBs before starting new one.
Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>
Issue-ID: INT-1895
Change-Id: Id725d68bb845020478716874de0d710d037e9c07
Diffstat (limited to 'robot/resources')
-rw-r--r-- | robot/resources/chart_museum.robot | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/robot/resources/chart_museum.robot b/robot/resources/chart_museum.robot index 173e2347..8969336e 100644 --- a/robot/resources/chart_museum.robot +++ b/robot/resources/chart_museum.robot @@ -62,9 +62,17 @@ Install helm charts from folder Uninstall helm charts [Documentation] Uninstall DCAE Servcie using helm charts [Arguments] ${dcae_service_helm_name} - ${helm_uninstall}= Set Variable helm uninstall ${dcae_service_helm_name} + ${helm_uninstall}= Set Variable helm uninstall ${dcae_service_helm_name} --timeout 5m0s ${helm_uninstall_command_output}= Run And Return Rc And Output ${helm_uninstall} Should Be Equal As Integers ${helm_uninstall_command_output[0]} 0 + ${helm_check}= Set Variable kubectl get pods -n onap | grep ${dcae_service_helm_name} + Wait Until Keyword Succeeds 5 minute 5 sec Helm charts uninstallation check ${helm_check} + +Helm charts uninstallation check + [Arguments] ${helm_check} + ${helm_uninstall_check_output}= Run And Return Rc And Output ${helm_check} + Should Be Equal As Integers ${helm_uninstall_check_output[0]} 1 + Log ${helm_uninstall_check_output[1]} |