2 Library XnfSimulatorLibrary
3 Library VesHvContainersUtilsLibrary
7 Configure xNF Simulators Using Valid Certificates On Ports
8 [Arguments] ${XNF_PORTS_LIST}
9 ${VALID_XNF_SIMULATORS_ADDRESSES}= Configure xNF Simulators ${XNF_PORTS_LIST}
10 Set Suite Variable ${VALID_XNF_SIMULATORS_ADDRESSES}
12 Configure xNF Simulators
13 [Arguments] ${XNF_PORTS_LIST}
14 ... ${should_use_valid_certs}=${true}
15 ... ${should_disable_ssl}=${false}
16 ... ${should_connect_to_unencrypted_hv_ves}=${false}
17 ${XNF_SIMULATORS_ADDRESSES}= Start Xnf Simulators ${XNF_PORTS_LIST}
18 ... ${should_use_valid_certs}
19 ... ${should_disable_ssl}
20 ... ${should_connect_to_unencrypted_hv_ves}
21 [Return] ${XNF_SIMULATORS_ADDRESSES}
23 Get xNF Simulators Using Valid Certificates
24 [Arguments] ${AMOUNT}=1
25 ${SIMULATORS}= Get Slice From List ${VALID_XNF_SIMULATORS_ADDRESSES} 0 ${AMOUNT}
26 [Return] ${SIMULATORS}
29 Send Messages From xNF Simulators
30 [Arguments] ${XNF_HOSTS_LIST} ${MESSAGE_FILEPATH}
31 :FOR ${HOST} IN @{XNF_HOSTS_LIST}
32 \ ${XNF_SIM_API_ACCESS}= Get xNF Sim Api Access Url ${HTTP_METHOD_URL} ${HOST}
33 \ ${XNF_SIM_API_URL}= Catenate SEPARATOR= ${XNF_SIM_API_ACCESS} ${XNF_SIM_API_PATH}
34 \ Send messages ${XNF_SIM_API_URL} ${MESSAGE_FILEPATH}
37 VES-HV Collector Test Shutdown
38 Reset DCAE App Simulator ${DCAE_APP_API_MESSAGE_RESET_URL}
41 VES-HV Collector Suite Teardown
42 Stop And Remove All Xnf Simulators ${SUITE NAME}
45 ${HTTP_METHOD_URL} http://
47 ${XNF_SIM_API_PATH} /simulator/async