IMPLEMENTS: RICPLT-2062, XApp LCM tests
[it/test.git] / ric_robot_suite / robot / 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}      xapp-std
14 ${TEST_XAPPID}        101
15 ${TEST_NODE_B_NAME}   AAAA456789
16 ${TEST_NODE_B_IP}     10.0.0.3
17 ${TEST_NODE_B_PORT}   36422
18
19
20 *** Test Cases ***
21 Test XApp Manager Health
22     [Tags]  etetests  xapptests
23     Run AppMgr Health Check
24 Deploy An XApp    
25     [Tags]  etetests  xapptests
26     Deploy XApp       ${TEST_XAPPNAME}
27 Retrieve The Deployed XApp
28     [Tags]  etetests  xapptests
29     Get XApp By Name  ${TEST_XAPPNAME}
30 Attempt To Deploy A Duplicate XApp
31     [Tags]  etetests  xapptests
32     Deploy Duplicate XApp And Expect Error
33 Undeploy The Deployed XApp
34     [Tags]  etetests  xapptests
35     Undeploy XApp     ${TEST_XAPPNAME}
36 Attempt To Undeploy An Already Undeployed XApp
37     [Tags]  etetests  xapptests
38     Undeploy Nondeployed XApp And Expect Error
39 Attempt To Request A Nonexistent XApp
40     [Tags]  etetests  xapptests
41     Request Nonexistent XApp And Expect Error
42     
43 Setup RAN Via E2Mgr X2
44     [Tags]   x2setup
45     Run E2Mgr Setup NodeB X2   ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
46     Wait Until Keyword Succeeds   20s   5s   Check NodeB Status    ${TEST_NODE_B_NAME}
47 Setup RAN Via E2Mgr Endc
48     [Tags]   e2setup
49     Run E2Mgr Setup NodeB Endc   ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
50     Wait Until Keyword Succeeds   20s   5s   Check NodeB Status    ${TEST_NODE_B_NAME}
51 Get NodeB via E2Mgr
52     [Tags]   e2setup   x2setup
53     Run E2Mgr Get NodeB Request   ${TEST_NODE_B_NAME}
54 Get All NodeBs Via E2Mgr
55     [Tags]   e2mgrtest   etetests   e2setup   x2setup   ci_tests
56     Run E2Mgr Get All NodeBs Request
57 Setup RAN Via Dashboard Endc
58     [Tags]   e2setup_dash
59     Run Dashboard Setup NodeB Endc   ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
60     Wait Until Keyword Succeeds   20s   5s   Dashboard Check NodeB Status    ${TEST_NODE_B_NAME}
61 Setup RAN Via Dashboard X2
62     [Tags]   x2setup_dash
63     Run Dashboard Setup NodeB X2    ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
64     Wait Until Keyword Succeeds   20s   5s   Dashboard Check NodeB Status    ${TEST_NODE_B_NAME}
65 Get NodeB via Dashboard
66     [Tags]   e2setup_dash   x2setup_dash
67     Run Dashboard Get NodeB Request   ${TEST_NODE_B_NAME}
68 Get All NodeBs via Dashboard
69     [Tags]   e2setup_dash   x2setup_dash    ci_tests
70     Run Dashboard Get All NodeBs Request