Jordan Halterman | dd68f62 | 2017-05-16 16:08:12 -0700 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | ce2a03d | 2017-08-03 19:21:03 -0700 | [diff] [blame] | 2 | ~ Copyright 2017-present Open Networking Foundation |
Jordan Halterman | dd68f62 | 2017-05-16 16:08:12 -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="distributed-eventually-consistent-map-test" |
| 18 | description="ONOS EventuallyConsistentMap distributed primitive Test"> |
| 19 | <group name="Distributed-Primitive-Ec-Map"> |
| 20 | |
| 21 | <step name="Distributed-Primitive-Ec-Map.Test-Map-Put1" |
| 22 | exec="onos ${OCI} ec-map-test foo put a b"/> |
| 23 | |
| 24 | <step name="Distributed-Primitive-Ec-Map.Test-Map-Put2" |
| 25 | exec="onos ${OCI} ec-map-test foo put b c"/> |
| 26 | |
| 27 | <step name="Distributed-Primitive-Ec-Map.Test-Map-Updated-After-Put1" |
| 28 | requires="Distributed-Primitive-Ec-Map.Test-Map-Put1,Distributed-Primitive-Ec-Map.Test-Map-Put2" |
| 29 | exec="onos-cluster-execute-expect ec-map-test foo get a --expect b"/> |
| 30 | |
| 31 | <step name="Distributed-Primitive-Ec-Map.Test-Map-Updated-After-Put2" |
| 32 | requires="Distributed-Primitive-Ec-Map.Test-Map-Updated-After-Put1" |
| 33 | exec="onos-cluster-execute-expect ec-map-test foo get b --expect c"/> |
| 34 | |
| 35 | <step name="Distributed-Primitive-Ec-Map.Test-Map-Size" |
| 36 | requires="Distributed-Primitive-Ec-Map.Test-Map-Updated-After-Put2" |
| 37 | exec="onos-cluster-execute-expect ec-map-test foo size --expect 2"/> |
| 38 | |
| 39 | <step name="Distributed-Primitive-Ec-Map.Test-Map-IsEmpty" |
| 40 | requires="Distributed-Primitive-Ec-Map.Test-Map-Size" |
| 41 | exec="onos-cluster-execute-expect ec-map-test foo isEmpty --expect false"/> |
| 42 | |
| 43 | <step name="Distributed-Primitive-Ec-Map.Test-Map-Remove" |
| 44 | requires="Distributed-Primitive-Ec-Map.Test-Map-IsEmpty" |
| 45 | exec="onos-execute-expect ${OCI} ec-map-test foo remove a --expect b"/> |
| 46 | |
| 47 | <step name="Distributed-Primitive-Ec-Map.Test-Map-Remove-Key-Value-Does-Not-Match" |
| 48 | requires="Distributed-Primitive-Ec-Map.Test-Map-Remove" |
| 49 | exec="onos ${OCI} ec-map-test foo remove b a"/> |
| 50 | |
| 51 | <step name="Distributed-Primitive-Ec-Map.Test-Map-Not-Updated-After-Remove" |
| 52 | requires="Distributed-Primitive-Ec-Map.Test-Map-Remove-Key-Value-Does-Not-Match" |
| 53 | exec="onos-cluster-execute-expect ec-map-test foo get b --expect c"/> |
| 54 | |
| 55 | <step name="Distributed-Primitive-Ec-Map.Test-Map-Remove-Key-Value-Does-Match" |
| 56 | requires="Distributed-Primitive-Ec-Map.Test-Map-Not-Updated-After-Remove" |
| 57 | exec="onos ${OCI} ec-map-test foo remove b c"/> |
| 58 | |
| 59 | <step name="Distributed-Primitive-Ec-Map.Test-Map-Updated-After-Remove" |
| 60 | requires="Distributed-Primitive-Ec-Map.Test-Map-Remove-Key-Value-Does-Match" |
| 61 | exec="onos-cluster-execute-expect ec-map-test foo get a --expect null"/> |
| 62 | |
| 63 | <step name="Distributed-Primitive-Ec-Map.Test-Map-Size-Updated-After-Remove" |
| 64 | requires="Distributed-Primitive-Ec-Map.Test-Map-Updated-After-Remove" |
| 65 | exec="onos-cluster-execute-expect ec-map-test foo size --expect 0"/> |
| 66 | |
| 67 | <step name="Distributed-Primitive-Ec-Map.Test-Map-IsEmpty-Updated-After-Remove" |
| 68 | requires="Distributed-Primitive-Ec-Map.Test-Map-Size-Updated-After-Remove" |
| 69 | exec="onos-cluster-execute-expect ec-map-test foo isEmpty --expect true"/> |
| 70 | |
| 71 | <group name="Distributed-Primitive-Ec-Map.Check-Log-Exceptions" |
| 72 | requires="Distributed-Primitive-Ec-Map.Test-Map-IsEmpty-Updated-After-Remove"> |
| 73 | <parallel var="${OC#}"> |
| 74 | <step name="Distributed-Primitive-Ec-Map.Check-Log-Exceptions-${#}" |
| 75 | exec="onos-check-logs ${OC#}"/> |
| 76 | </parallel> |
| 77 | </group> |
| 78 | |
| 79 | </group> |
| 80 | </scenario> |
| 81 | |