Ray Milkey | b0ade29 | 2016-03-08 08:42:11 -0800 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | ~ Copyright 2016-present Open Networking Laboratory |
Ray Milkey | b0ade29 | 2016-03-08 08:42:11 -0800 | [diff] [blame] | 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 | |
Ray Milkey | e685d7d | 2016-08-04 17:00:14 -0700 | [diff] [blame] | 20 | <!-- Check initial state of the Fujitsu driver --> |
| 21 | <step name="DriversTest.FindFujitsuInitial" |
| 22 | exec="onos-find-driver ${OC1} fujitsu-netconf fujitsu" env="!"/> |
Ray Milkey | b0ade29 | 2016-03-08 08:42:11 -0800 | [diff] [blame] | 23 | |
Ray Milkey | e685d7d | 2016-08-04 17:00:14 -0700 | [diff] [blame] | 24 | <!-- Activate Fujitsu driver app --> |
| 25 | <!-- |
| 26 | <step name="DriversTest.ActivateNetconfApp" requires="^" |
| 27 | exec="onos ${OCI} onos:app activate org.onosproject.netconf"/> |
| 28 | <step name="DriversTest.ActivateFujitsuDriverApp" requires="^" |
| 29 | exec="onos ${OCI} onos:app activate org.onosproject.drivers.fujitsu"/> |
| 30 | --> |
Ray Milkey | 3880928 | 2016-07-07 14:36:23 -0700 | [diff] [blame] | 31 | |
Ray Milkey | e685d7d | 2016-08-04 17:00:14 -0700 | [diff] [blame] | 32 | <!-- Check that the activation was successful --> |
| 33 | <!-- |
| 34 | <group name="DriversTest.Check-Fujitsu-App-Activated" requires="DriversTest.ActivateFujitsuDriverApp"> |
| 35 | <parallel var="${OC#}"> |
| 36 | <step name="DriversTest.Check-Fujitsu-App-Activated-${#}" |
| 37 | exec="onos-check-apps ${OC#} drivers,openflow,proxyarp,dhcp,fujitsu includes"/> |
| 38 | </parallel> |
| 39 | </group> |
| 40 | --> |
Ray Milkey | b0ade29 | 2016-03-08 08:42:11 -0800 | [diff] [blame] | 41 | |
Ray Milkey | e685d7d | 2016-08-04 17:00:14 -0700 | [diff] [blame] | 42 | <!-- Check that Fujitsu driver is active. --> |
| 43 | <!-- |
| 44 | <step name="DriversTest.FindFujitsuAfterActivate" requires="^" |
| 45 | exec="onos-find-driver ${OC1} fujitsu-netconf fujitsu" /> |
| 46 | <step name="DriversTest.CheckFujitsuAfterActivate" requires="^" |
| 47 | exec="test '${fujitsuDriver}' != ''"/> |
| 48 | --> |
Ray Milkey | b0ade29 | 2016-03-08 08:42:11 -0800 | [diff] [blame] | 49 | |
Ray Milkey | e685d7d | 2016-08-04 17:00:14 -0700 | [diff] [blame] | 50 | <!-- Deactivate Fujitsu driver app --> |
| 51 | <!-- |
| 52 | <step name="DriversTest.DeactivateFujitsuDriverApp" requires="^" |
| 53 | exec="onos ${OCI} onos:app deactivate org.onosproject.drivers.fujitsu"/> |
| 54 | --> |
Ray Milkey | 3880928 | 2016-07-07 14:36:23 -0700 | [diff] [blame] | 55 | |
Ray Milkey | e685d7d | 2016-08-04 17:00:14 -0700 | [diff] [blame] | 56 | <!-- Check that Fujitsu driver is no longer present --> |
| 57 | <step name="DriversTest.AfterDeactivateFindFujitsu" requires="^" |
| 58 | exec="onos-find-driver ${OC1} fujitsu fujitsuInactive" env="!"/> |
Ray Milkey | b0ade29 | 2016-03-08 08:42:11 -0800 | [diff] [blame] | 59 | |
Ray Milkey | b0ade29 | 2016-03-08 08:42:11 -0800 | [diff] [blame] | 60 | |
| 61 | </group> |
| 62 | </scenario> |