summaryrefslogtreecommitdiffstats
path: root/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py
blob: 675b3fc687b025162563c2547cd0266c3d94f9ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""
Description: This test is to run onos Teston VTN scripts

List of test cases:
CASE1 - Northbound NBI test network/subnet/ports
CASE2 - Ovsdb test&Default configuration&Vm go online

lanqinglong@huawei.com
"""
from adapters.client import client

if __name__=="__main__":

    main = client()
    main.getdefaultpara()

    #scripts to run
    runhandle = main.onosstart()
    main.RunScript(runhandle, "FUNCvirNetNB")
#    main.RunScript(runhandle, "FUNCovsdbtest")
    main.RunScript(runhandle, "FUNCvirNetNBL3")
#    main.RunScript(runhandle, "FUNCovsdbtestL3")
    main.onosclean( runhandle )
    main.push_results_to_db(main.GetResult())