- ${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]} ${docker_number}
+ [Arguments] ${need_to_restart_pods}=${False} ${set_new_timestamp}=${True}
+ Init logs
+ Flush And Populate DB ${set_new_timestamp}
+ Run keyword if ${need_to_restart_pods}==${True} Restart RM and GNB Simulator
+ Wait until keyword succeeds 1 min 10 sec Validate Required Dockers
+
+Restart RM and GNB Simulator
+ Restart routing manager
+ Wait until keyword succeeds 1 min 10 sec Validate Required Dockers
+ Restart simulator
+
+
+Init logs
+ ${starting_timestamp} Evaluate datetime.datetime.now(datetime.timezone.utc).isoformat("T") modules=datetime
+ ${e2t_log_filename} Evaluate "e2t.${SUITE NAME}.log".replace(" ","-")
+ ${e2mgr_log_filename} Evaluate "e2mgr.${SUITE NAME}.log".replace(" ","-")
+ ${gnb_log_filename} Evaluate "gnb.${SUITE NAME}.log".replace(" ","-")
+ ${Save_sim_log} Evaluate "kubectl -n ricplt logs --since-time=${starting_timestamp} $(${gnbe2_sim_pod}) > ${gnb_log_filename}"
+ ${Save_e2mgr_log} Evaluate "kubectl -n ricplt logs --since-time=${starting_timestamp} $(${e2mgr_pod}) > ${e2mgr_log_filename}"
+ ${Save_e2t_log} Evaluate "kubectl -n ricplt logs --since-time=${starting_timestamp} $(${e2term_pod}) > ${e2t_log_filename}"
+
+ Set Suite Variable ${e2t_log_filename}
+ Set Suite Variable ${e2mgr_log_filename}
+ Set Suite Variable ${gnb_log_filename}
+ Set Suite Variable ${Save_sim_log}
+ Set Suite Variable ${Save_e2mgr_log}
+ Set Suite Variable ${Save_e2t_log}
+
+Validate Required Dockers
+ [Arguments] ${required_number_of_dockers}=${pods_number}
+ Log To Console Validating all required dockers are up
+ ${result}= Run And Return Rc And Output ${verify_all_pods_are_ready_command}
+ Should Be Equal As Integers ${result[1]} ${required_number_of_dockers}