andrea | 669ada4 | 2015-10-21 09:03:50 -0700 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | ~ Copyright 2015-present Open Networking Foundation |
andrea | 669ada4 | 2015-10-21 09:03:50 -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 | |
| 17 | <scenario name="dist-test" |
| 18 | description="ONOS distributed primitives setup"> |
| 19 | <group name="Distributed-Primitives"> |
| 20 | <!--<import file="${ONOS_SCENARIOS}/prerequisites.xml"/>--> |
| 21 | |
| 22 | <!--<import file="${ONOS_SCENARIOS}/setup.xml"/> |
| 23 | <dependency name="Setup" requires="Prerequisites"/>--> |
| 24 | |
Jon Hall | e8d06bf | 2017-03-14 13:25:53 -0700 | [diff] [blame] | 25 | <step name="Distributed-App-Activate" |
| 26 | exec="onos ${OC1} app activate org.onosproject.distributedprimitives"/> |
| 27 | |
| 28 | <sequential var="${OC#}" starts="Test-Counter-Increment-${#}" ends="Check-Distributed-Exceptions-${#-1}"> |
andrea | 669ada4 | 2015-10-21 09:03:50 -0700 | [diff] [blame] | 29 | |
| 30 | <step name="Test-Counter-Increment-${#}" |
Jon Hall | e8d06bf | 2017-03-14 13:25:53 -0700 | [diff] [blame] | 31 | requires="Distributed-App-Activate" |
andrea | 669ada4 | 2015-10-21 09:03:50 -0700 | [diff] [blame] | 32 | exec="onos-execute-expect ${OC#} counter-test-increment fooCounter 5 --expect updated"/> |
| 33 | |
| 34 | <step name="Test-Add-${#}" |
Jon Hall | e8d06bf | 2017-03-14 13:25:53 -0700 | [diff] [blame] | 35 | requires="Test-Counter-Increment-${#}" |
andrea | 669ada4 | 2015-10-21 09:03:50 -0700 | [diff] [blame] | 36 | exec="onos-execute-expect ${OC#} set-test-add fooSet foo --expect added"/> |
| 37 | |
| 38 | <step name="Test-Get-${#}" |
| 39 | requires="Test-Add-${#}" |
| 40 | exec="onos-execute-expect ${OC#} set-test-get fooSet foo --expect contains"/> |
| 41 | |
| 42 | <step name="Test-Remove-${#}" |
| 43 | requires="Test-Get-${#}" |
| 44 | exec="onos-execute-expect ${OC#} set-test-remove fooSet foo --expect removed"/> |
| 45 | |
| 46 | <step name="Test-Add-Multiple-${#}" |
| 47 | requires="Test-Remove-${#}" |
| 48 | exec="onos-execute-expect ${OC#} set-test-add fooSet foo foo2 foo3 --expect added"/> |
| 49 | |
| 50 | <step name="Test-Get-Multiple-${#}" |
| 51 | requires="Test-Add-Multiple-${#}" |
| 52 | exec="onos-execute-expect ${OC#} set-test-get fooSet foo foo2 foo3 --expect contains"/> |
| 53 | |
| 54 | <step name="Test-Remove-Multiple-${#}" |
| 55 | requires="Test-Get-Multiple-${#}" |
| 56 | exec="onos-execute-expect ${OC#} set-test-remove fooSet foo foo2 foo3 --expect removed"/> |
| 57 | |
| 58 | <step name="Sleep-${#}" |
| 59 | exec="sleep 2" |
| 60 | requires="Test-Remove-Multiple-${#}"/> |
| 61 | <!--Check with check logs--> |
| 62 | <step name="Check-Distributed-Exceptions-${#}" |
| 63 | exec="onos-check-logs ${OC#}" |
| 64 | requires="Sleep-${#}"/> |
| 65 | </sequential> |
| 66 | </group> |
Madan Jampani | 145623d | 2016-07-22 14:55:57 -0700 | [diff] [blame] | 67 | </scenario> |