andrea | 669ada4 | 2015-10-21 09:03:50 -0700 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright 2015 Open Networking Laboratory |
| 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 | |
| 21 | <!--<import file="${ONOS_SCENARIOS}/setup.xml"/> |
| 22 | <dependency name="Setup" requires="Prerequisites"/>--> |
| 23 | |
| 24 | <step name="Distributed-App" |
| 25 | requires="Setup" |
| 26 | exec="onos ${OCI} app activate org.onosproject.distributedprimitives"/> |
| 27 | |
| 28 | <step name="Test-Counter-Increment" |
| 29 | requires="Distributed-App" |
| 30 | exec="onos-execute-expect ${OCI} counter-test-increment fooCounter 5 --expect updated"/> |
| 31 | |
| 32 | <step name="Test-Add" |
| 33 | requires="Distributed-App" |
| 34 | exec="onos-execute-expect ${OCI} set-test-add fooSet foo --expect added"/> |
| 35 | |
| 36 | <step name="Test-Get" |
| 37 | requires="Test-Add" |
| 38 | exec="onos-execute-expect ${OCI} set-test-get fooSet foo --expect contains"/> |
| 39 | |
| 40 | <step name="Test-Remove" |
| 41 | requires="Test-Get" |
| 42 | exec="onos-execute-expect ${OCI} set-test-remove fooSet foo --expect removed"/> |
| 43 | |
| 44 | <step name="Test-Add-Multiple" |
| 45 | requires="Test-Remove" |
| 46 | exec="onos-execute-expect ${OCI} set-test-add fooSet foo foo2 foo3 --expect added"/> |
| 47 | |
| 48 | <step name="Test-Get-Multiple" |
| 49 | requires="Test-Add-Multiple" |
| 50 | exec="onos-execute-expect ${OCI} set-test-get fooSet foo foo2 foo3 --expect contains"/> |
| 51 | |
| 52 | <step name="Test-Remove-Multiple" |
| 53 | requires="Test-Get-Multiple" |
| 54 | exec="onos-execute-expect ${OCI} set-test-remove fooSet foo foo2 foo3 --expect removed"/> |
| 55 | |
| 56 | <step name="Test-Map-Put" |
| 57 | requires="Distributed-App" |
| 58 | exec="onos-execute-expect ${OCI} transactional-map-test-put 1 foo --expect Created"/> |
| 59 | |
| 60 | <step name="Test-Map-Get" |
| 61 | requires="Test-Map-Put" |
| 62 | exec="onos-execute-expect ${OCI} transactional-map-test-get Key1 --expect Key-value"/> |
| 63 | |
| 64 | <!--Check with check logs--> |
| 65 | <step name="Check-Distributed-Exceptions" |
| 66 | exec="onos-check-logs ${OCI}" |
| 67 | requires="Test-Map-Get"/> |
| 68 | </group> |
| 69 | </scenario> |
| 70 | |