35d12a3f802f8cb1d8d7c93d0b6f06fbfb47e53d
[it/test.git] / ric_robot_suite / helm / nanobot / configmap-src / public / testsuites / ete.robot
1 #   Copyright (c) 2019 AT&T Intellectual Property.
2 #
3 #   Licensed under the Apache License, Version 2.0 (the "License");
4 #   you may not use this file except in compliance with the License.
5 #   You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #   Unless required by applicable law or agreed to in writing, software
10 #   distributed under the License is distributed on an "AS IS" BASIS,
11 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #   See the License for the specific language governing permissions and
13 #   limitations under the License.
14
15 *** Settings ***
16 Documentation     Executes the End To End Test cases
17 ...
18 Library   Collections
19 Library   OperatingSystem
20
21 Resource         ../resources/appmgr/appmgr_interface.robot
22 Resource         ../resources/appmgr/negative_appmgr_tests.robot
23 Resource         ../resources/e2mgr/e2mgr_interface.robot
24 Resource         ../resources/dashboard/dashboard_interface.robot
25
26 *** Variables ***
27 ${TEST_XAPPNAME}      ${GLOBAL_TEST_XAPP}
28 ${TEST_NODE_B_NAME}   ${GLOBAL_TEST_NODEB_NAME}
29 ${TEST_NODE_B_IP}     ${GLOBAL_TEST_NODEB_ADDRESS}
30 ${TEST_NODE_B_PORT}   ${GLOBAL_TEST_NODEB_PORT}
31
32
33 *** Test Cases ***
34 Test XApp Manager Health
35     [Tags]  etetests  xapptests
36     Run AppMgr Health Check
37 Deploy An XApp    
38     [Tags]  etetests  xapptests  intrusive
39     Deploy XApp       ${TEST_XAPPNAME}
40 Retrieve The Deployed XApp
41     [Tags]  etetests  xapptests
42     Get XApp By Name  ${TEST_XAPPNAME}
43 Attempt To Deploy A Duplicate XApp
44     [Tags]  etetests  xapptests  intrusive
45     Deploy Duplicate XApp And Expect Error
46 Undeploy The Deployed XApp
47     [Tags]  etetests  xapptests  intrusive
48     Undeploy XApp     ${TEST_XAPPNAME}
49 Attempt To Undeploy An Already Undeployed XApp
50     [Tags]  etetests  xapptests  intrusive
51     Undeploy Nondeployed XApp And Expect Error
52 Attempt To Request A Nonexistent XApp
53     [Tags]  etetests  xapptests  intrusive
54     Request Nonexistent XApp And Expect Error
55     
56 Setup RAN Via E2Mgr X2
57     [Tags]   x2setup
58     Run E2Mgr Setup NodeB X2   ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
59     Wait Until Keyword Succeeds   20s   5s   Check NodeB Status    ${TEST_NODE_B_NAME}
60 Setup RAN Via E2Mgr Endc
61     [Tags]   e2setup
62     Run E2Mgr Setup NodeB Endc   ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
63     Wait Until Keyword Succeeds   20s   5s   Check NodeB Status    ${TEST_NODE_B_NAME}
64 Get NodeB via E2Mgr
65     [Tags]   e2setup   x2setup
66     Run E2Mgr Get NodeB Request   ${TEST_NODE_B_NAME}
67 Get All NodeBs Via E2Mgr
68     [Tags]   e2mgrtest   etetests   e2setup   x2setup   ci_tests
69     Run E2Mgr Get All NodeBs Request
70 Setup RAN Via Dashboard Endc
71     [Tags]   e2setup_dash
72     Run Dashboard Setup NodeB Endc   ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
73     Wait Until Keyword Succeeds   20s   5s   Dashboard Check NodeB Status    ${TEST_NODE_B_NAME}
74 Setup RAN Via Dashboard X2
75     [Tags]   x2setup_dash
76     Run Dashboard Setup NodeB X2    ${TEST_NODE_B_NAME}    ${TEST_NODE_B_IP}   ${TEST_NODE_B_PORT}
77     Wait Until Keyword Succeeds   20s   5s   Dashboard Check NodeB Status    ${TEST_NODE_B_NAME}
78 Get NodeB via Dashboard
79     [Tags]   e2setup_dash   x2setup_dash
80     Run Dashboard Get NodeB Request   ${TEST_NODE_B_NAME}
81 Get All NodeBs via Dashboard
82     [Tags]   e2setup_dash   x2setup_dash    ci_tests
83     Run Dashboard Get All NodeBs Request