blob: 7823ce3513722381b899189a36760d610eac705a [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
Jon Halle4a61002017-02-16 18:37:02 -080061 <group name="Distributed-Primitive-WorkQueue.Check-Log-Exceptions"
62 requires="Distributed-Primitive-WorkQueue.Test-Queue-Destroy">
63 <parallel var="${OC#}">
64 <step name="Distributed-Primitive-WorkQueue.Check-Log-Exceptions-${#}"
65 exec="onos-check-logs ${OC#}"/>
66 </parallel>
67 </group>
Madan Jampanice240732016-09-02 10:42:58 -070068
Madan Jampanice240732016-09-02 10:42:58 -070069 </group>
70</scenario>
71