X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Automation%2FTests%2FResource%2FKeywords.robot;h=29b933b7a6290fa519f1323d27332efd8d11b2f0;hb=a9f0b72dc94c2f0b1196b4f5bd13ef463298b017;hp=6d1fdd8b84b20e17d40721459a50be7454a9e50b;hpb=dbc719cd2dfa73363386114c9e85c8c42a441489;p=ric-plt%2Fe2mgr.git diff --git a/Automation/Tests/Resource/Keywords.robot b/Automation/Tests/Resource/Keywords.robot index 6d1fdd8..29b933b 100644 --- a/Automation/Tests/Resource/Keywords.robot +++ b/Automation/Tests/Resource/Keywords.robot @@ -29,9 +29,6 @@ Library OperatingSystem Library Process Variables ../Scripts/variables.py -*** Variables *** -${e2adapter} ${e2adapter_pod_name} - *** Keywords *** Get Request nodeb [Arguments] ${nodeb_name}=${ranName} @@ -176,6 +173,11 @@ Stop e2adapter Run And Return Rc And Output ${stop_e2adapter} Sleep 5s +Restart e2adapter + Log to Console Restarting e2adapter + Stop e2adapter + Start e2adapter + Flush And Populate DB [Arguments] ${set_new_timestamp}=${True} Log To Console Flushing and populating DB @@ -192,8 +194,10 @@ Stop All Pods Except Simulator Send eNB Setup Request Log To Console Sending eNB setup request form e2adapter - ${send_enb_setup} Evaluate "kubectl -n ricplt exec -it ${e2adapter} cli send-e2setup-req 10.0.2.15" - Sleep 3s + Restart e2adapter + Wait until keyword succeeds 2 min 3 sec Validate Required Dockers + ${e2adapter_pod} = Run And Return Rc And Output kubectl get pods -n ricplt | /bin/grep e2adapter | /bin/grep Running | awk '{{print $1}}' + ${send_enb_setup} Evaluate "kubectl -n ricplt exec -it ${e2adapter_pod[1]} cli send-e2setup-req 10.0.2.15" Run And Return Rc And Output ${send_enb_setup} Start Redis Monitor