blob: 15140147e07781b43a5ebe5251b3ab98241295ba [file] [log] [blame]
Ray Milkeyb0ade292016-03-08 08:42:11 -08001<!--
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 ~ Copyright 2016-present Open Networking Laboratory
Ray Milkeyb0ade292016-03-08 08:42:11 -08003 ~
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 -->
Ray Milkey4abe8442016-05-05 11:21:33 -070021 <step name="DriversTest.FindCelesticaCorsa"
22 exec="onos-find-driver ${OC1} celestica celestica" />
23 <step name="DriversTest.CheckCelesticaCorsa" requires="^"
24 exec="test '${celesticaDriver}' != ''"/>
Ray Milkeyb0ade292016-03-08 08:42:11 -080025 <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 -->
Ray Milkey4abe8442016-05-05 11:21:33 -070035 <step name="DriversTest.AfterDeactivateFindCelesticaCorsa" requires="^"
36 exec="onos-find-driver ${OC1} celestica celesticaInactive" env="!"/>
Ray Milkeyb0ade292016-03-08 08:42:11 -080037 <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 -->
Ray Milkey4abe8442016-05-05 11:21:33 -070045 <step name="DriversTest.ReactivatedFindCelesticaCorsa" requires="^"
46 exec="onos-find-driver ${OC1} celestica celestica" />
47 <step name="DriversTest.ReactivatedCheckCelesticaCorsa" requires="^"
48 exec="test '${celesticaDriver}' != ''"/>
Ray Milkeyb0ade292016-03-08 08:42:11 -080049 <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>