blob: 865f21835da87614d8c0a1a2658e59fd157822f2 [file] [log] [blame]
Thomas Vachuskae3094a32017-08-29 16:35:02 -07001<!--
2 ~ Copyright 2017-present Open Networking Foundation
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="app-reactivate" description="Application re-activation test">
17 <group name="App-Reactivation">
18 <step name="App-Activate"
19 exec="onos ${OCI} app activate org.onosproject.pathpainter"/>
20 <group name="App-Component-Check" requires="App-Activate">
21 <parallel var="${OC#}">
22 <step name="App-Component-Check-${#}"
23 exec="onos-check-component ${OC#} org.onosproject.pathpainter.PathPainter ACTIVE"/>
24 </parallel>
25 </group>
26
27 <step name="App-Deactivate"
28 exec="onos ${OCI} app deactivate org.onosproject.pathpainter"
29 requires="App-Component-Check"/>
30
31 <step name="App-Reactivate"
32 exec="onos ${OCI} app activate org.onosproject.pathpainter"
33 requires="^"/>
34
35 <group name="App-Component-Check-Again" requires="App-Reactivate">
36 <parallel var="${OC#}">
37 <step name="App-Component-Check-Again-${#}"
38 exec="onos-check-component ${OC#} org.onosproject.pathpainter.PathPainter ACTIVE"/>
39 </parallel>
40 </group>
41
42 <step name="App-Deactivate-Again"
43 exec="onos ${OCI} app deactivate org.onosproject.pathpainter"
44 requires="App-Component-Check-Again"/>
45 </group>
46</scenario>