blob: 28836fe3fe173acf9e55e08990f947b7ae281782 [file] [log] [blame]
Madan Jampanice240732016-09-02 10:42:58 -07001<!--
Brian O'Connorce2a03d2017-08-03 19:21:03 -07002 ~ Copyright 2016-present Open Networking Foundation
Madan Jampanice240732016-09-02 10:42:58 -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="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"
Madan Jampanice240732016-09-02 10:42:58 -070022 exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue add foo --expect Done"/>
23
Jon Hallda9fd4a2017-02-16 14:23:38 -080024 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-Pending-1"
25 requires="^"
Madan Jampanice240732016-09-02 10:42:58 -070026 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalPending --expect 1"/>
27
Jon Hallda9fd4a2017-02-16 14:23:38 -080028 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-InProgress-1"
29 requires="^"
Madan Jampanice240732016-09-02 10:42:58 -070030 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalInProgress --expect 0"/>
31
Jon Hallda9fd4a2017-02-16 14:23:38 -080032 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-TotalCompleted-1"
33 requires="^"
Madan Jampanid4684b42016-09-02 22:26:31 -070034 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalCompleted --expect 0"/>
35
Jon Hallda9fd4a2017-02-16 14:23:38 -080036 <step name="Distributed-Primitive-WorkQueue.Test-Queue-AddMultiple"
37 requires="^"
Madan Jampanice240732016-09-02 10:42:58 -070038 exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue addMultiple bar car --expect Done"/>
39
Jon Hallda9fd4a2017-02-16 14:23:38 -080040 <step name="Distributed-Primitive-WorkQueue.Test-Queue-TakeAndComplete"
41 requires="^"
Madan Jampanice240732016-09-02 10:42:58 -070042 exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue takeAndComplete 3 --expect Done"/>
43
Jon Hallda9fd4a2017-02-16 14:23:38 -080044 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-Pending-2"
45 requires="^"
Madan Jampanice240732016-09-02 10:42:58 -070046 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalPending --expect 0"/>
47
Jon Hallda9fd4a2017-02-16 14:23:38 -080048 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-InProgress-2"
49 requires="^"
Madan Jampanice240732016-09-02 10:42:58 -070050 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalInProgress --expect 0"/>
51
Jon Hallda9fd4a2017-02-16 14:23:38 -080052 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-TotalCompleted-2"
53 requires="^"
Madan Jampanid4684b42016-09-02 22:26:31 -070054 exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalCompleted --expect 3"/>
55
Jon Hallda9fd4a2017-02-16 14:23:38 -080056 <step name="Distributed-Primitive-WorkQueue.Test-Queue-Destroy"
57 requires="^"
Madan Jampanid4684b42016-09-02 22:26:31 -070058 exec="onos ${OCI} work-queue-test stc-test-work-queue destroy"/>
Madan Jampanice240732016-09-02 10:42:58 -070059
Jon Halle4a61002017-02-16 18:37:02 -080060 <group name="Distributed-Primitive-WorkQueue.Check-Log-Exceptions"
61 requires="Distributed-Primitive-WorkQueue.Test-Queue-Destroy">
62 <parallel var="${OC#}">
63 <step name="Distributed-Primitive-WorkQueue.Check-Log-Exceptions-${#}"
64 exec="onos-check-logs ${OC#}"/>
65 </parallel>
66 </group>
Madan Jampanice240732016-09-02 10:42:58 -070067
Madan Jampanice240732016-09-02 10:42:58 -070068 </group>
69</scenario>
70