blob: c0b45296318616a11ba18bf03ff74ab3f5cfec6c [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
Jon Hallda9fd4a2017-02-16 14:23:38 -080021 <step name="Distributed-Primitive-WorkQueue.Test-Queue-AddOne"
22 requires="Distributed-Primitives-Setup"
Madan Jampanice240732016-09-02 10:42:58 -070023 exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue add foo --expect Done"/>
24
Jon Hallda9fd4a2017-02-16 14:23:38 -080025 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-Pending-1"
26 requires="^"
Madan Jampanice240732016-09-02 10:42:58 -070027 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalPending --expect 1"/>
28
Jon Hallda9fd4a2017-02-16 14:23:38 -080029 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-InProgress-1"
30 requires="^"
Madan Jampanice240732016-09-02 10:42:58 -070031 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalInProgress --expect 0"/>
32
Jon Hallda9fd4a2017-02-16 14:23:38 -080033 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-TotalCompleted-1"
34 requires="^"
Madan Jampanid4684b42016-09-02 22:26:31 -070035 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalCompleted --expect 0"/>
36
Jon Hallda9fd4a2017-02-16 14:23:38 -080037 <step name="Distributed-Primitive-WorkQueue.Test-Queue-AddMultiple"
38 requires="^"
Madan Jampanice240732016-09-02 10:42:58 -070039 exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue addMultiple bar car --expect Done"/>
40
Jon Hallda9fd4a2017-02-16 14:23:38 -080041 <step name="Distributed-Primitive-WorkQueue.Test-Queue-TakeAndComplete"
42 requires="^"
Madan Jampanice240732016-09-02 10:42:58 -070043 exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue takeAndComplete 3 --expect Done"/>
44
Jon Hallda9fd4a2017-02-16 14:23:38 -080045 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-Pending-2"
46 requires="^"
Madan Jampanice240732016-09-02 10:42:58 -070047 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalPending --expect 0"/>
48
Jon Hallda9fd4a2017-02-16 14:23:38 -080049 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-InProgress-2"
50 requires="^"
Madan Jampanice240732016-09-02 10:42:58 -070051 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalInProgress --expect 0"/>
52
Jon Hallda9fd4a2017-02-16 14:23:38 -080053 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-TotalCompleted-2"
54 requires="^"
Madan Jampanid4684b42016-09-02 22:26:31 -070055 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalCompleted --expect 3"/>
56
Jon Hallda9fd4a2017-02-16 14:23:38 -080057 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Destroy"
58 requires="^"
Madan Jampanid4684b42016-09-02 22:26:31 -070059 exec="onos ${OCI} work-queue-test stc-test-work-queue destroy"/>
Madan Jampanice240732016-09-02 10:42:58 -070060
61 <!--Check with check logs-->
Jon Hallda9fd4a2017-02-16 14:23:38 -080062 <step name="Distributed-Primitive-WorkQueue.Check-Log-Exceptions"
63 requires="^"
Madan Jampanice240732016-09-02 10:42:58 -070064 exec="onos-check-logs ${OCI}"/>
65
Madan Jampanice240732016-09-02 10:42:58 -070066 </group>
67</scenario>
68