FIX: move some end-to-end test configs to values.yaml for nanobot
[it/test.git] / ric_robot_suite / helm / nanobot / configmap-src / public / testsuites / ete.robot
1 *** Settings ***
2 Documentation     Executes the End To End Test cases
3 ...
4 Library   Collections
5 Library   OperatingSystem
6
7 Resource         ../resources/appmgr/appmgr_interface.robot
8 Resource         ../resources/appmgr/negative_appmgr_tests.robot
9 Resource         ../resources/e2mgr/e2mgr_interface.robot
10 Resource         ../resources/dashboard/dashboard_interface.robot
11
12 *** Variables ***
13 ${TEST_XAPPNAME}      ${GLOBAL_TEST_XAPP}
14 ${TEST_NODE_B_NAME}   ${GLOBAL_TEST_NODEB_NAME}
15 ${TEST_NODE_B_IP}     ${GLOBAL_TEST_NODEB_ADDRESS}
16 ${TEST_NODE_B_PORT}   ${GLOBAL_TEST_NODEB_PORT}
17
18
19 *** Test Cases ***
20 Test XApp Manager Health
21     [Tags]  etetests  xapptests
22     Run AppMgr Health Check
23 Deploy An XApp    
24     [Tags]  etetests  xapptests  intrusive
25     Deploy XApp       ${TEST_XAPPNAME}
26 Retrieve The Deployed XApp
27     [Tags]  etetests  xapptests
28     Get XApp By Name  ${TEST_XAPPNAME}
29 Attempt To Deploy A Duplicate XApp
30     [Tags]  etetests  xapptests  intrusive
31     Deploy Duplicate XApp And Expect Error
32 Undeploy The Deployed XApp
33     [Tags]  etetests  xapptests  intrusive
34     Undeploy XApp     ${TEST_XAPPNAME}
35 Attempt To Undeploy An Already Undeployed XApp
36     [Tags]  etetests  xapptests  intrusive
37     Undeploy Nondeployed XApp And Expect Error
38 Attempt To Request A Nonexistent XApp
39     [Tags]  etetests  xapptests  intrusive
40     Request Nonexistent XApp And Expect Error
41     
42 Setup RAN Via E2Mgr X2
43     [Tags]   x2setup
44     Run E2Mgr Setup NodeB X2   ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
45     Wait Until Keyword Succeeds   20s   5s   Check NodeB Status    ${TEST_NODE_B_NAME}
46 Setup RAN Via E2Mgr Endc
47     [Tags]   e2setup
48     Run E2Mgr Setup NodeB Endc   ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
49     Wait Until Keyword Succeeds   20s   5s   Check NodeB Status    ${TEST_NODE_B_NAME}
50 Get NodeB via E2Mgr
51     [Tags]   e2setup   x2setup
52     Run E2Mgr Get NodeB Request   ${TEST_NODE_B_NAME}
53 Get All NodeBs Via E2Mgr
54     [Tags]   e2mgrtest   etetests   e2setup   x2setup   ci_tests
55     Run E2Mgr Get All NodeBs Request
56 Setup RAN Via Dashboard Endc
57     [Tags]   e2setup_dash
58     Run Dashboard Setup NodeB Endc   ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
59     Wait Until Keyword Succeeds   20s   5s   Dashboard Check NodeB Status    ${TEST_NODE_B_NAME}
60 Setup RAN Via Dashboard X2
61     [Tags]   x2setup_dash
62     Run Dashboard Setup NodeB X2    ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
63     Wait Until Keyword Succeeds   20s   5s   Dashboard Check NodeB Status    ${TEST_NODE_B_NAME}
64 Get NodeB via Dashboard
65     [Tags]   e2setup_dash   x2setup_dash
66     Run Dashboard Get NodeB Request   ${TEST_NODE_B_NAME}
67 Get All NodeBs via Dashboard
68     [Tags]   e2setup_dash   x2setup_dash    ci_tests
69     Run Dashboard Get All NodeBs Request