Ray Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | ~ Copyright 2016-present Open Networking Foundation |
Ray Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [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="meta-apps" |
| 17 | description="Openflow provider activate/deactivate test"> |
Thomas Vachuska | 32faf2b | 2016-07-05 16:19:01 -0700 | [diff] [blame] | 18 | <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 Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 26 | |
Thomas Vachuska | 32faf2b | 2016-07-05 16:19:01 -0700 | [diff] [blame] | 27 | <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 Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 31 | |
Thomas Vachuska | 32faf2b | 2016-07-05 16:19:01 -0700 | [diff] [blame] | 32 | <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 Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 36 | |
Thomas Vachuska | 32faf2b | 2016-07-05 16:19:01 -0700 | [diff] [blame] | 37 | <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 Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 43 | |
Thomas Vachuska | 32faf2b | 2016-07-05 16:19:01 -0700 | [diff] [blame] | 44 | <!-- Deactivate openflow meta app --> |
| 45 | <step name="MetaAppTest.DeactivateOpenflowMetaApp" requires="MetaAppInitialVerification" |
| 46 | exec="onos ${OCI} onos:app deactivate org.onosproject.openflow"/> |
Ray Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 47 | |
Thomas Vachuska | 32faf2b | 2016-07-05 16:19:01 -0700 | [diff] [blame] | 48 | <!-- 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 Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 55 | |
Thomas Vachuska | 32faf2b | 2016-07-05 16:19:01 -0700 | [diff] [blame] | 56 | <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 Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 60 | |
Thomas Vachuska | 32faf2b | 2016-07-05 16:19:01 -0700 | [diff] [blame] | 61 | <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 Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 65 | |
Thomas Vachuska | 32faf2b | 2016-07-05 16:19:01 -0700 | [diff] [blame] | 66 | <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 Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 72 | |
Thomas Vachuska | 32faf2b | 2016-07-05 16:19:01 -0700 | [diff] [blame] | 73 | <!-- Reactivate openflow meta app --> |
| 74 | <step name="MetaAppTest.ReactivateOpenflowMetaApp" requires="MetaAppInactive" |
| 75 | exec="onos ${OCI} onos:app activate org.onosproject.openflow"/> |
Ray Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 76 | |
Thomas Vachuska | 32faf2b | 2016-07-05 16:19:01 -0700 | [diff] [blame] | 77 | <!-- 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 Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 84 | |
Thomas Vachuska | 32faf2b | 2016-07-05 16:19:01 -0700 | [diff] [blame] | 85 | <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 Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 89 | |
Thomas Vachuska | 32faf2b | 2016-07-05 16:19:01 -0700 | [diff] [blame] | 90 | <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 Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 94 | |
Thomas Vachuska | 32faf2b | 2016-07-05 16:19:01 -0700 | [diff] [blame] | 95 | <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 Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 101 | |
Ray Milkey | 97dfd1e | 2016-06-20 17:04:19 -0700 | [diff] [blame] | 102 | </group> |
| 103 | |
| 104 | </scenario> |