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