[VOL-3780] Add Restart Pod By Label keyword and use it in the Restart And Check Onu Adaptor test
Change-Id: I764af63c52a46ab48fd412ca682c7190ebf7a185
diff --git a/libraries/onu_utilities.robot b/libraries/onu_utilities.robot
index b19a9c4..478bc56 100755
--- a/libraries/onu_utilities.robot
+++ b/libraries/onu_utilities.robot
@@ -132,8 +132,9 @@
... - check openonu adaptor is ready again
[Arguments] ${namespace}
${list_openonu_apps} Create List adapter-open-onu
- ${adaptorname}= Set Variable open-onu
- Restart Pod ${namespace} ${adaptorname}
+ ${openonu_label_key} Set Variable app
+ ${openonu_label_value} Set Variable adapter-open-onu
+ Restart Pod By Label ${namespace} ${openonu_label_key} ${openonu_label_value}
Sleep 5s
Wait For Pods Ready ${namespace} ${list_openonu_apps}