X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Automation%2FTests%2FResource%2FKeywords.robot;h=6ed56179b3878c6700646dff046381ccf909bd87;hb=5a0ce3e584481922e2fecb39b6d0eac9ce77ccbf;hp=e5af3d3c6a3defc51b7553de0ba22594f93fc78f;hpb=e51ebb1fb4a0bba85577204a28c87365a041f640;p=ric-plt%2Fe2mgr.git diff --git a/Automation/Tests/Resource/Keywords.robot b/Automation/Tests/Resource/Keywords.robot old mode 100755 new mode 100644 index e5af3d3..6ed5617 --- a/Automation/Tests/Resource/Keywords.robot +++ b/Automation/Tests/Resource/Keywords.robot @@ -15,9 +15,14 @@ # limitations under the License. # ############################################################################## +# +# This source code is part of the near-RT RIC (RAN Intelligent Controller) +# platform project (RICP). +# *** Settings *** Documentation Keywords file +Library ../Scripts/cleanup_db.py Resource ../Resource/resource.robot Library OperatingSystem @@ -42,17 +47,66 @@ Get Request node b enb test2 GET /v1/nodeb/test2 +Remove log files + Remove File ${EXECDIR}/${gnb_log_filename} + Remove File ${EXECDIR}/${e2mgr_log_filename} + Remove File ${EXECDIR}/${rsm_log_filename} + Remove File ${EXECDIR}/${e2adapter_log_filename} + +Save logs + Sleep 1s + Run ${Save_sim_log} + Run ${Save_e2mgr_log} + Run ${Save_rsm_log} + Run ${Save_e2adapter_log} + Post Request setup node b endc-setup Set Headers ${header} POST /v1/nodeb/endc-setup ${endcjson} +Stop Simulator + Run And Return Rc And Output ${stop_simu} + Prepare Simulator For Load Information Run And Return Rc And Output ${stop_simu} Run And Return Rc And Output ${docker_Remove} - Run And Return Rc And Output ${run_simu} + ${flush} cleanup_db.flush + Should Be Equal As Strings ${flush} True + Run And Return Rc And Output ${run_simu_load} + ${result}= Run And Return Rc And Output ${docker_command} + Should Be Equal As Integers ${result[1]} ${docker_number} + +Prepare Enviorment + ${flush} cleanup_db.flush + Should Be Equal As Strings ${flush} True + Run And Return Rc And Output ${stop_simu} + Run And Return Rc And Output ${docker_Remove} + Run And Return Rc And Output ${run_simu_regular} + Run And Return Rc And Output ${restart_e2adapter} + Sleep 2s ${result}= Run And Return Rc And Output ${docker_command} - Should Be Equal As Integers ${result[1]} 5 + Should Be Equal As Integers ${result[1]} ${docker_number} + +Start E2 + Run And Return Rc And Output ${start_e2} + ${result}= Run And Return Rc And Output ${docker_command} + Should Be Equal As Integers ${result[1]} ${docker_number} + Sleep 2s + +Start Dbass + Run And Return Rc And Output ${dbass_remove} + Run And Return Rc And Output ${dbass_start} + ${result}= Run And Return Rc And Output ${docker_command} + Should Be Equal As Integers ${result[1]} ${docker_number} + +Stop Dbass + Run And Return Rc And Output ${dbass_stop} + ${result}= Run And Return Rc And Output ${docker_command} + Should Be Equal As Integers ${result[1]} ${docker_number-1} + + +