blob: f405ded619a9f55dbadc9314b410674d0c20aca9 [file] [log] [blame]
Ray Milkey97dfd1e2016-06-20 17:04:19 -07001<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 ~ Copyright 2016-present Open Networking Foundation
Ray Milkey97dfd1e2016-06-20 17:04:19 -07003 ~
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="meta-apps"
17 description="Openflow provider activate/deactivate test">
Thomas Vachuska32faf2b2016-07-05 16:19:01 -070018 <group name="Meta-App">
19 <!-- Check initial state of openflow apps -->
20 <group name="MetaAppInitialVerification">
21 <parallel var="${OC#}" starts="MetaAppTest.FindOpenflowInitial-${#}" ends="MetaAppTest.CheckLldpProviderInitial-${#-1}">
22 <step name="MetaAppTest.FindOpenflowInitial-${#}"
23 exec="onos-find-app ${OC#} org.onosproject.openflow openflowAppInitial" />
24 <step name="MetaAppTest.CheckOpenflowInitial-${#}" requires="MetaAppTest.FindOpenflowInitial-${#}"
25 exec="test '${openflowAppInitialState}' == 'active'"/>
Ray Milkey97dfd1e2016-06-20 17:04:19 -070026
Thomas Vachuska32faf2b2016-07-05 16:19:01 -070027 <step name="MetaAppTest.FindOpenflowBaseInitial-${#}"
28 exec="onos-find-app ${OC#} org.onosproject.openflow-base openflowBaseInitial" />
29 <step name="MetaAppTest.CheckOpenflowBaseInitial-${#}" requires="MetaAppTest.FindOpenflowBaseInitial-${#}"
30 exec="test '${openflowBaseInitialState}' == 'active'"/>
Ray Milkey97dfd1e2016-06-20 17:04:19 -070031
Thomas Vachuska32faf2b2016-07-05 16:19:01 -070032 <step name="MetaAppTest.FindHostProviderInitial-${#}"
33 exec="onos-find-app ${OC#} org.onosproject.hostprovider hostProviderInitial" />
34 <step name="MetaAppTest.CheckHostProviderInitial-${#}" requires="MetaAppTest.FindHostProviderInitial-${#}"
35 exec="test '${hostProviderInitialState}' == 'active'"/>
Ray Milkey97dfd1e2016-06-20 17:04:19 -070036
Thomas Vachuska32faf2b2016-07-05 16:19:01 -070037 <step name="MetaAppTest.FindLldpProviderInitial-${#}"
38 exec="onos-find-app ${OC#} org.onosproject.lldpprovider lldpProviderInitial" />
39 <step name="MetaAppTest.CheckLldpProviderInitial-${#}" requires="MetaAppTest.FindLldpProviderInitial-${#}"
40 exec="test '${lldpProviderInitialState}' == 'active'"/>
41 </parallel>
42 </group>
Ray Milkey97dfd1e2016-06-20 17:04:19 -070043
Thomas Vachuska32faf2b2016-07-05 16:19:01 -070044 <!-- Deactivate openflow meta app -->
45 <step name="MetaAppTest.DeactivateOpenflowMetaApp" requires="MetaAppInitialVerification"
46 exec="onos ${OCI} onos:app deactivate org.onosproject.openflow"/>
Ray Milkey97dfd1e2016-06-20 17:04:19 -070047
Thomas Vachuska32faf2b2016-07-05 16:19:01 -070048 <!-- Check that openflow apps are no longer active -->
49 <group name="MetaAppInactive" requires="MetaAppTest.DeactivateOpenflowMetaApp,MetaAppInitialVerification">
50 <parallel var="${OC#}" starts="MetaAppTest.FindOpenflowInactive-${#}" ends="MetaAppTest.CheckLldpProviderInactive-${#-1}">
51 <step name="MetaAppTest.FindOpenflowInactive-${#}"
52 exec="onos-find-app ${OC#} org.onosproject.openflow openflowAppInactive" />
53 <step name="MetaAppTest.CheckOpenflowInactive-${#}" requires="^"
54 exec="test '${openflowAppInactiveState}' == 'inactive'"/>
Ray Milkey97dfd1e2016-06-20 17:04:19 -070055
Thomas Vachuska32faf2b2016-07-05 16:19:01 -070056 <step name="MetaAppTest.FindOpenflowBaseInactive-${#}" requires="^"
57 exec="onos-find-app ${OC#} org.onosproject.openflow-base openflowBaseInactive" />
58 <step name="MetaAppTest.CheckOpenflowBaseInactive-${#}" requires="^"
59 exec="test '${openflowBaseInactiveState}' == 'inactive'"/>
Ray Milkey97dfd1e2016-06-20 17:04:19 -070060
Thomas Vachuska32faf2b2016-07-05 16:19:01 -070061 <step name="MetaAppTest.FindHostProviderInactive-${#}" requires="^"
62 exec="onos-find-app ${OC#} org.onosproject.hostprovider hostProviderInactive" />
63 <step name="MetaAppTest.CheckHostProviderInactive-${#}" requires="^"
64 exec="test '${hostProviderInactiveState}' == 'inactive'"/>
Ray Milkey97dfd1e2016-06-20 17:04:19 -070065
Thomas Vachuska32faf2b2016-07-05 16:19:01 -070066 <step name="MetaAppTest.FindLldpProviderInactive-${#}" requires="^"
67 exec="onos-find-app ${OC#} org.onosproject.lldpprovider lldpProviderInactive" />
68 <step name="MetaAppTest.CheckLldpProviderInactive-${#}" requires="^"
69 exec="test '${lldpProviderInactiveState}' == 'inactive'"/>
70 </parallel>
71 </group>
Ray Milkey97dfd1e2016-06-20 17:04:19 -070072
Thomas Vachuska32faf2b2016-07-05 16:19:01 -070073 <!-- Reactivate openflow meta app -->
74 <step name="MetaAppTest.ReactivateOpenflowMetaApp" requires="MetaAppInactive"
75 exec="onos ${OCI} onos:app activate org.onosproject.openflow"/>
Ray Milkey97dfd1e2016-06-20 17:04:19 -070076
Thomas Vachuska32faf2b2016-07-05 16:19:01 -070077 <!-- Check that openflow apps are now active again -->
78 <group name="MetaAppReactivated" requires="MetaAppTest.ReactivateOpenflowMetaApp,MetaAppInactive,MetaAppInitialVerification">
79 <parallel var="${OC#}" starts="MetaAppTest.FindOpenflowReactivated-${#}" ends="MetaAppTest.CheckLldpProviderRectivated-${#-1}">
80 <step name="MetaAppTest.FindOpenflowReactivated-${#}"
81 exec="onos-find-app ${OC#} org.onosproject.openflow openflowAppReactivated" />
82 <step name="MetaAppTest.CheckOpenflowReactivated-${#}" requires="^"
83 exec="test '${openflowAppReactivatedState}' == 'active'"/>
Ray Milkey97dfd1e2016-06-20 17:04:19 -070084
Thomas Vachuska32faf2b2016-07-05 16:19:01 -070085 <step name="MetaAppTest.FindOpenflowBaseReactivated-${#}" requires="^"
86 exec="onos-find-app ${OC#} org.onosproject.openflow-base openflowBaseReactivated" />
87 <step name="MetaAppTest.CheckOpenflowBaseReactivated-${#}" requires="^"
88 exec="test '${openflowBaseReactivatedState}' == 'active'"/>
Ray Milkey97dfd1e2016-06-20 17:04:19 -070089
Thomas Vachuska32faf2b2016-07-05 16:19:01 -070090 <step name="MetaAppTest.FindHostProviderReactivated-${#}" requires="^"
91 exec="onos-find-app ${OC#} org.onosproject.hostprovider hostProviderReactivated" />
92 <step name="MetaAppTest.CheckHostProviderReactivated-${#}" requires="^"
93 exec="test '${hostProviderReactivatedState}' == 'active'"/>
Ray Milkey97dfd1e2016-06-20 17:04:19 -070094
Thomas Vachuska32faf2b2016-07-05 16:19:01 -070095 <step name="MetaAppTest.FindLldpProviderReactivated-${#}" requires="^"
96 exec="onos-find-app ${OC#} org.onosproject.lldpprovider lldpProviderReactivated" />
97 <step name="MetaAppTest.CheckLldpProviderReactivated-${#}" requires="^"
98 exec="test '${lldpProviderReactivatedState}' == 'active'"/>
99 </parallel>
100 </group>
Ray Milkey97dfd1e2016-06-20 17:04:19 -0700101
Ray Milkey97dfd1e2016-06-20 17:04:19 -0700102 </group>
103
104</scenario>