blob: 15627d18699f204c0d835c4ab42efd617610d67a [file] [log] [blame]
andrea669ada42015-10-21 09:03:50 -07001<!--
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 ~ Copyright 2015-present Open Networking Laboratory
andrea669ada42015-10-21 09:03:50 -07003 ~
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 Halle8d06bf2017-03-14 13:25:53 -070025 <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}">
andrea669ada42015-10-21 09:03:50 -070029
30 <step name="Test-Counter-Increment-${#}"
Jon Halle8d06bf2017-03-14 13:25:53 -070031 requires="Distributed-App-Activate"
andrea669ada42015-10-21 09:03:50 -070032 exec="onos-execute-expect ${OC#} counter-test-increment fooCounter 5 --expect updated"/>
33
34 <step name="Test-Add-${#}"
Jon Halle8d06bf2017-03-14 13:25:53 -070035 requires="Test-Counter-Increment-${#}"
andrea669ada42015-10-21 09:03:50 -070036 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 Jampani145623d2016-07-22 14:55:57 -070067</scenario>