Madan Jampani | 9e1a8c1 | 2016-06-27 11:19:10 -0700 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright 2016-present 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="distributed value test" |
| 18 | description="ONOS AtomicValue distributed primitive Test"> |
| 19 | <group name="Distributed-Primitive-Value"> |
| 20 | |
| 21 | <!--<import file="${ONOS_SCENARIOS}/setup.xml"/> |
| 22 | <dependency name="Setup" requires="Prerequisites"/>--> |
| 23 | |
| 24 | <step name="Activate-Distributed-Primitives-App" |
| 25 | exec="onos ${OCI} app activate org.onosproject.distributedprimitives"/> |
| 26 | |
| 27 | <step name="Test-Value-Initial-Value" requires="^" |
| 28 | exec="onos-execute-expect ${OCI} value-test test-value get --expect null"/> |
| 29 | |
| 30 | <step name="Test-Value-Set" requires="^" |
| 31 | exec="onos ${OCI} value-test test-value set v0"/> |
| 32 | |
| 33 | <step name="Test-Value-Get" requires="^" |
| 34 | exec="onos-execute-expect ${OCI} value-test test-value get --expect v0"/> |
| 35 | |
| 36 | <step name="Test-Value-CompareAndSet-False" requires="^" |
| 37 | exec="onos-execute-expect ${OCI} value-test test-value compareAndSet v1 v2 --expect false"/> |
| 38 | |
| 39 | <step name="Test-Value-Not-Updated-After-CAS" requires="^" |
| 40 | exec="onos-execute-expect ${OCI} value-test test-value get --expect v0"/> |
| 41 | |
| 42 | <step name="Test-Value-CompareAndSet-True" requires="^" |
| 43 | exec="onos-execute-expect ${OCI} value-test test-value compareAndSet v0 v1 --expect true"/> |
| 44 | |
| 45 | <step name="Test-Value-Updated-After-CAS" requires="^" |
| 46 | exec="onos-execute-expect ${OCI} value-test test-value get --expect v1"/> |
| 47 | |
| 48 | <!--Check with check logs--> |
| 49 | <step name="Check-Log-Exceptions" requires="^" |
| 50 | exec="onos-check-logs ${OCI}"/> |
| 51 | |
| 52 | <step name="Teardown-Distributed-Primitives-Test-App" requires="^" |
| 53 | exec="onos ${OCI} app deactivate org.onosproject.distributedprimitives"/> |
| 54 | </group> |
| 55 | </scenario> |
| 56 | |