blob: 9c9f37b3ab5f3002098c96157597dc28a5640d13 [file] [log] [blame]
Gilles Depatiec68b3ad2018-08-21 16:29:03 -04001# Copyright 2017-present Open Networking Foundation
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 ***
16Library Process
17Library ../common/auto_test.py
18Library ../common/volthaMngr.py
19Library ../common/preprovisioningTest.py
20
21Test Setup Start Voltha
22Test Teardown Stop Voltha
23
24
25*** Variables ***
26${LOG_DIR} /tmp/voltha_test_results
27${ROOT_DIR} ${EMPTY}
28${VOLTHA_DIR} ${EMPTY}
29${PONSIM_PID} ${EMPTY}
30${ONUS} 3
31${ONOS_SSH_PORT} 8101
32${OLT_IP_ADDR} "172.17.0.1"
33${OLT_PORT_ID} 50060
34
35
36*** Test Cases ***
37Provisioning
38 [Documentation] VOLTHA Pre-provisioning Test
39 ... This test deploys an OLT port and a number of ONU ports
40 ... Then it verifies that all the physical and logical devices are up
41 Configure ${OLT_IP_ADDR} ${OLT_PORT_ID} ${LOG_DIR}
42 Preprovision Olt
43 Query Devices Before Enable
44 Enable
45 Query Devices After Enable
46
47
48*** Keywords ***
49Start Voltha
50 [Documentation] Start Voltha infrastructure to run test(s). This includes starting all
51 ... Docker containers for Voltha and Onos as well as Ponsim. It then start
52 ... Voltha and Onos Cli
53 ${ROOT_DIR} ${VOLTHA_DIR} ${LOG_DIR} Dir Init ${LOG_DIR}
54 Config Dir ${ROOT_DIR} ${VOLTHA_DIR} ${LOG_DIR}
55 Stop Voltha
56 Start Voltha Containers
57 Collect All Logs
58 Enable Bridge
59 ${PONSIM_PID} Start Ponsim ${ONUS}
60 Run Onos
61
62
63Stop Voltha
64 [Documentation] Stop Voltha infrastucture. This includes stopping all Docker containers
65 ... for Voltha and Onos as well stopping Ponsim process.
66 Stop Ponsim
67 Remove Existing Containers
68
69
70