blob: 8ff1be1aedb76e3e58b8037e13d0d32a739817d7 [file] [log] [blame]
Ray Milkeyb0ade292016-03-08 08:42:11 -08001<!--
2 ~ Copyright 2016 Open Networking Laboratory
3 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15 -->
16<scenario name="drivers-test"
17 description="Driver CLI activate/deactivate test">
18 <group name="Drivers-Test">
19
20 <!-- Check initial state of select drivers -->
21 <step name="DriversTest.FindOvsCorsa"
22 exec="onos-find-driver ${OC1} ovs-corsa ovs" />
23 <step name="DriversTest.CheckOvsCorsa" requires="^"
24 exec="test '${ovsDriver}' != ''"/>
25 <step name="DriversTest.Default" requires="^"
26 exec="onos-find-driver ${OC1} default default" />
27 <step name="DriversTest.CheckDefault" requires="^"
28 exec="test '${defaultDriver}' != ''"/>
29
30 <!-- Deactivate drivers app -->
31 <step name="DriversTest.DeactivateDriversApp" requires="^"
32 exec="onos ${OCI} onos:app deactivate org.onosproject.drivers"/>
33
34 <!-- Check that drivers are no longer present -->
35 <step name="DriversTest.AfterDeactivateFindOvsCorsa" requires="^"
36 exec="onos-find-driver ${OC1} ovs-corsa ovsInactive" env="!"/>
37 <step name="DriversTest.AfterDeactivateFindDefault" requires="^"
38 exec="onos-find-driver ${OC1} default defaultInactive" env="!"/>
39
40 <!-- Reactivate all drivers -->
41 <step name="DriversTest.ActivateDriversApp" requires="^"
42 exec="onos ${OCI} onos:app activate org.onosproject.drivers"/>
43
44 <!-- Check reactivated state of drivers -->
45 <step name="DriversTest.ReactivatedFindOvsCorsa" requires="^"
46 exec="onos-find-driver ${OC1} ovs-corsa ovs" />
47 <step name="DriversTest.ReactivatedCheckOvsCorsa" requires="^"
48 exec="test '${ovsDriver}' != ''"/>
49 <step name="DriversTest.ReactivatedDefault" requires="^"
50 exec="onos-find-driver ${OC1} default default" />
51 <step name="DriversTest.ReactivatedCheckDefault" requires="^"
52 exec="test '${defaultDriver}' != ''"/>
53
54 </group>
55</scenario>