blob: 4b6a16210ffb01f103787180380ad6ef3b6b5b23 [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
25 <sequential var="${OC#}" starts="Distributed-App-${#}" ends="Check-Distributed-Exceptions-${#-1}">
26 <step name="Distributed-App-${#}"
27 requires="Setup"
28 exec="onos ${OC#} app activate org.onosproject.distributedprimitives"/>
29
30 <step name="Test-Counter-Increment-${#}"
31 requires="Distributed-App-${#}"
32 exec="onos-execute-expect ${OC#} counter-test-increment fooCounter 5 --expect updated"/>
33
34 <step name="Test-Add-${#}"
35 requires="Distributed-App-${#}"
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 Jampani145623d2016-07-22 14:55:57 -070067</scenario>