blob: 7bbb5111bf66af67480d08b9c07b8e9f5413d0e4 [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
Madan Jampanid4684b42016-09-02 22:26:31 -070033 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-TotalCompleted-1" requires="^"
34 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalCompleted --expect 0"/>
35
Madan Jampanice240732016-09-02 10:42:58 -070036 <step name="Distributed-Primitive-WorkQueue.Test-Queue-AddMultiple" requires="^"
37 exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue addMultiple bar car --expect Done"/>
38
39 <step name="Distributed-Primitive-WorkQueue.Test-Queue-TakeAndComplete" requires="^"
40 exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue takeAndComplete 3 --expect Done"/>
41
42 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-Pending-2" requires="^"
43 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalPending --expect 0"/>
44
45 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-InProgress-2" requires="^"
46 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalInProgress --expect 0"/>
47
Madan Jampanid4684b42016-09-02 22:26:31 -070048 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-TotalCompleted-2" requires="^"
49 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalCompleted --expect 3"/>
50
51 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Destroy" requires="^"
52 exec="onos ${OCI} work-queue-test stc-test-work-queue destroy"/>
Madan Jampanice240732016-09-02 10:42:58 -070053
54 <!--Check with check logs-->
55 <step name="Distributed-Primitive-WorkQueue.Check-Log-Exceptions" requires="^"
56 exec="onos-check-logs ${OCI}"/>
57
58 <step name="Distributed-Primitive-WorkQueue.Teardown-Distributed-Primitives-Test-App" requires="^"
59 exec="onos ${OCI} app deactivate org.onosproject.distributedprimitives"/>
60 </group>
61</scenario>
62