| <!-- |
| ~ Copyright 2016-present Open Networking Foundation |
| ~ |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| ~ you may not use this file except in compliance with the License. |
| ~ You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| |
| <scenario name="distributed-work-queue-test" |
| description="ONOS WorkQueue distributed primitive Test"> |
| <group name="Distributed-Primitive-WorkQueue"> |
| |
| <step name="Distributed-Primitive-WorkQueue.Test-Queue-AddOne" |
| exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue add foo --expect Done"/> |
| |
| <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-Pending-1" |
| requires="^" |
| exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalPending --expect 1"/> |
| |
| <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-InProgress-1" |
| requires="^" |
| exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalInProgress --expect 0"/> |
| |
| <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-TotalCompleted-1" |
| requires="^" |
| exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalCompleted --expect 0"/> |
| |
| <step name="Distributed-Primitive-WorkQueue.Test-Queue-AddMultiple" |
| requires="^" |
| exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue addMultiple bar car --expect Done"/> |
| |
| <step name="Distributed-Primitive-WorkQueue.Test-Queue-TakeAndComplete" |
| requires="^" |
| exec="onos-execute-expect ${OCI} work-queue-test stc-test-work-queue takeAndComplete 3 --expect Done"/> |
| |
| <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-Pending-2" |
| requires="^" |
| exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalPending --expect 0"/> |
| |
| <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-InProgress-2" |
| requires="^" |
| exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalInProgress --expect 0"/> |
| |
| <step name="Distributed-Primitive-WorkQueue.Test-Queue-Check-TotalCompleted-2" |
| requires="^" |
| exec="onos-cluster-execute-expect work-queue-test stc-test-work-queue totalCompleted --expect 3"/> |
| |
| <step name="Distributed-Primitive-WorkQueue.Test-Queue-Destroy" |
| requires="^" |
| exec="onos ${OCI} work-queue-test stc-test-work-queue destroy"/> |
| |
| <group name="Distributed-Primitive-WorkQueue.Check-Log-Exceptions" |
| requires="Distributed-Primitive-WorkQueue.Test-Queue-Destroy"> |
| <parallel var="${OC#}"> |
| <step name="Distributed-Primitive-WorkQueue.Check-Log-Exceptions-${#}" |
| exec="onos-check-logs ${OC#}"/> |
| </parallel> |
| </group> |
| |
| </group> |
| </scenario> |
| |