blob: ce3ed36acbe1f805ab4dbae064767690b8543a69 [file] [log] [blame]
Madan Jampanice240732016-09-02 10:42:58 -07001<!--
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-work-queue-test"
18 description="ONOS WorkQueue distributed primitive Test">
19 <group name="Distributed-Primitive-WorkQueue">
20
21 <step name="Distributed-Primitive-WorkQueue.Activate-Distributed-Primitives-App"
22 exec="onos ${OCI} app activate org.onosproject.distributedprimitives"/>
23
24 <step name="Distributed-Primitive-WorkQueue.Test-Queue-AddOne" requires="^"
25 exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue add foo --expect Done"/>
26
27 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-Pending-1" requires="^"
28 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalPending --expect 1"/>
29
30 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-InProgress-1" requires="^"
31 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalInProgress --expect 0"/>
32
33 <step name="Distributed-Primitive-WorkQueue.Test-Queue-AddMultiple" requires="^"
34 exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue addMultiple bar car --expect Done"/>
35
36 <step name="Distributed-Primitive-WorkQueue.Test-Queue-TakeAndComplete" requires="^"
37 exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue takeAndComplete 3 --expect Done"/>
38
39 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-Pending-2" requires="^"
40 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalPending --expect 0"/>
41
42 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-InProgress-2" requires="^"
43 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalInProgress --expect 0"/>
44
45 <!-- Since totalCompleted is a additive quantity, testing its value breaks when the test is run in a loop -->
46
47 <!--Check with check logs-->
48 <step name="Distributed-Primitive-WorkQueue.Check-Log-Exceptions" requires="^"
49 exec="onos-check-logs ${OCI}"/>
50
51 <step name="Distributed-Primitive-WorkQueue.Teardown-Distributed-Primitives-Test-App" requires="^"
52 exec="onos ${OCI} app deactivate org.onosproject.distributedprimitives"/>
53 </group>
54</scenario>
55