summaryrefslogtreecommitdiffstats
path: root/csit/tests/sdnr/healthcheck
diff options
context:
space:
mode:
authordemskeq8 <alexander.dehn@highstreet-technologies.com>2021-07-21 09:37:41 +0200
committerdemskeq8 <alexander.dehn@highstreet-technologies.com>2021-08-27 09:58:25 +0200
commit00960a3b25697ef06cdfd7534944f7e2cc2e6d06 (patch)
treee7e44ffdc2abf0c81dd159d1394652878258cd1a /csit/tests/sdnr/healthcheck
parent4308ac023373157f4255088efba7cdb34115bff7 (diff)
[SNDC-CSIT] Add tests for device manager
Integration tests for wt feature set Issue-ID: SDNC-1584 Signed-off-by: demskeq8 <alexander.dehn@highstreet-technologies.com> Change-Id: I21de1540a664684d55bdec1172112130cdc2902f Former-commit-id: bdbf1ee7ae34887ca40dcc113d1065ce44da4a89
Diffstat (limited to 'csit/tests/sdnr/healthcheck')
-rw-r--r--csit/tests/sdnr/healthcheck/30_pipeCleanerPNFReg.robot63
1 files changed, 63 insertions, 0 deletions
diff --git a/csit/tests/sdnr/healthcheck/30_pipeCleanerPNFReg.robot b/csit/tests/sdnr/healthcheck/30_pipeCleanerPNFReg.robot
new file mode 100644
index 00000000..0024fb4e
--- /dev/null
+++ b/csit/tests/sdnr/healthcheck/30_pipeCleanerPNFReg.robot
@@ -0,0 +1,63 @@
+*** Settings ***
+Documentation In a new deployment of sdnc, ves collector and message router
+... the first pnf registration request fails.
+... Therefore some requets are send to ensure proper working of the use case
+... VES endpoint details test environemnt variable file <environment>.py
+... as dictionary NETWORK_FUNCTIONS = {}, VESCOLLECTOR ={}
+
+
+Library ConnectLibrary
+Library SDNCBaseLibrary
+Library NTSimManagerNG
+Library ConnectApp
+
+
+Suite Setup global suite setup &{GLOBAL_SUITE_SETUP_CONFIG}
+Suite Teardown global suite teardown
+
+
+*** Variables ***
+${DEVICE_TYPE} O_RAN_FH
+${CHECK_CONNECTION_STATUS} Connected
+${SIM_COUNT} 1
+${PNF_REGISTRATION_TIMEOUT} 60s
+${FAULT_DELAY} 5
+${TIME_PERIOD_SEND_NOTIF} 30s
+
+*** Test Cases ***
+Add Network Function O-RAN-FH in connectApp
+ [Tags] healthcheck sim
+ [Documentation] add nf as network element connection and verifies connection status
+
+ ConnectApp.add_network_element_connection_from_dict ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']} check_connection_status=${CHECK_CONNECTION_STATUS}
+
+Send pnf registration request to VES collector
+ [Tags] healthcheck sim
+ [Documentation] set details for VES endpoint details and
+ ... send pnf registration requests
+
+ NTSimManagerNG.set_ves_endpoint_details_nf ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']['NAME']}
+ ... ves-endpoint-ip=${VESCOLLECTOR}[IP]
+ ... ves-endpoint-port=${VESCOLLECTOR}[PORT]
+ ... ves-endpoint-auth-method=${VESCOLLECTOR}[AUTHMETHOD]
+ ... ves-endpoint-username=${VESCOLLECTOR}[USERNAME]
+ ... ves-endpoint-password=${VESCOLLECTOR}[PASSWORD]
+ NTSimManagerNG.set_ves_config_nf ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']['NAME']}
+ ... pnf-registration=${True}
+
+Send VES notifications
+ [Tags] healthcheck sim
+ [Documentation] send some notifications for VES messages
+ NTSimManagerNG.set_ves_config_nf ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']['NAME']} faults-enabled=${True}
+ NTSimManagerNG.set_fault_delay_list_nf ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']['NAME']} delay-period=${FAULT_DELAY}
+ Log Send notification every ${FAULT_DELAY} sec for ${TIME_PERIOD_SEND_NOTIF} level=INFO html=False console=True repr=False
+ Sleep ${TIME_PERIOD_SEND_NOTIF}
+ NTSimManagerNG.set_fault_delay_list_nf ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']['NAME']} delay-period=${0}
+ NTSimManagerNG.set_ves_config_nf ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']['NAME']} faults-enabled=${False}
+
+Remove mounted devices
+ [Documentation] cleanup all mounted devices
+ [Tags] healthcheck sim
+ NTSimManagerNG.set_ves_config_nf ${NETWORK_FUNCTIONS['${DEVICE_TYPE}']['NAME']}
+ ... pnf-registration=${False}
+ ConnectApp.remove_network_element_connection_filtered validate=${True} node-id=.*