Madan Jampani | ce24073 | 2016-09-02 10:42:58 -0700 | [diff] [blame] | 1 | <!-- |
| 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 Hall | 4ad86cf | 2017-02-16 14:23:38 -0800 | [diff] [blame] | 21 | <step name="Distributed-Primitive-WorkQueue.Test-Queue-AddOne" |
| 22 | requires="Distributed-Primitives-Setup" |
Madan Jampani | ce24073 | 2016-09-02 10:42:58 -0700 | [diff] [blame] | 23 | exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue add foo --expect Done"/> |
| 24 | |
Jon Hall | 4ad86cf | 2017-02-16 14:23:38 -0800 | [diff] [blame] | 25 | <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-Pending-1" |
| 26 | requires="^" |
Madan Jampani | ce24073 | 2016-09-02 10:42:58 -0700 | [diff] [blame] | 27 | exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalPending --expect 1"/> |
| 28 | |
Jon Hall | 4ad86cf | 2017-02-16 14:23:38 -0800 | [diff] [blame] | 29 | <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-InProgress-1" |
| 30 | requires="^" |
Madan Jampani | ce24073 | 2016-09-02 10:42:58 -0700 | [diff] [blame] | 31 | exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalInProgress --expect 0"/> |
| 32 | |
Jon Hall | 4ad86cf | 2017-02-16 14:23:38 -0800 | [diff] [blame] | 33 | <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-TotalCompleted-1" |
| 34 | requires="^" |
Madan Jampani | d4684b4 | 2016-09-02 22:26:31 -0700 | [diff] [blame] | 35 | exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalCompleted --expect 0"/> |
| 36 | |
Jon Hall | 4ad86cf | 2017-02-16 14:23:38 -0800 | [diff] [blame] | 37 | <step name="Distributed-Primitive-WorkQueue.Test-Queue-AddMultiple" |
| 38 | requires="^" |
Madan Jampani | ce24073 | 2016-09-02 10:42:58 -0700 | [diff] [blame] | 39 | exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue addMultiple bar car --expect Done"/> |
| 40 | |
Jon Hall | 4ad86cf | 2017-02-16 14:23:38 -0800 | [diff] [blame] | 41 | <step name="Distributed-Primitive-WorkQueue.Test-Queue-TakeAndComplete" |
| 42 | requires="^" |
Madan Jampani | ce24073 | 2016-09-02 10:42:58 -0700 | [diff] [blame] | 43 | exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue takeAndComplete 3 --expect Done"/> |
| 44 | |
Jon Hall | 4ad86cf | 2017-02-16 14:23:38 -0800 | [diff] [blame] | 45 | <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-Pending-2" |
| 46 | requires="^" |
Madan Jampani | ce24073 | 2016-09-02 10:42:58 -0700 | [diff] [blame] | 47 | exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalPending --expect 0"/> |
| 48 | |
Jon Hall | 4ad86cf | 2017-02-16 14:23:38 -0800 | [diff] [blame] | 49 | <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-InProgress-2" |
| 50 | requires="^" |
Madan Jampani | ce24073 | 2016-09-02 10:42:58 -0700 | [diff] [blame] | 51 | exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalInProgress --expect 0"/> |
| 52 | |
Jon Hall | 4ad86cf | 2017-02-16 14:23:38 -0800 | [diff] [blame] | 53 | <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-TotalCompleted-2" |
| 54 | requires="^" |
Madan Jampani | d4684b4 | 2016-09-02 22:26:31 -0700 | [diff] [blame] | 55 | exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalCompleted --expect 3"/> |
| 56 | |
Jon Hall | 4ad86cf | 2017-02-16 14:23:38 -0800 | [diff] [blame] | 57 | <step name="Distributed-Primitive-WorkQueue.Test-Queue-Destroy" |
| 58 | requires="^" |
Madan Jampani | d4684b4 | 2016-09-02 22:26:31 -0700 | [diff] [blame] | 59 | exec="onos ${OCI} work-queue-test stc-test-work-queue destroy"/> |
Madan Jampani | ce24073 | 2016-09-02 10:42:58 -0700 | [diff] [blame] | 60 | |
Jon Hall | 3cf41a5 | 2017-02-16 18:37:02 -0800 | [diff] [blame] | 61 | <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 Jampani | ce24073 | 2016-09-02 10:42:58 -0700 | [diff] [blame] | 68 | |
Madan Jampani | ce24073 | 2016-09-02 10:42:58 -0700 | [diff] [blame] | 69 | </group> |
| 70 | </scenario> |
| 71 | |