| <!-- |
| ~ Copyright 2018-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-lock-test" |
| description="ONOS DistributedLock distributed primitive Test"> |
| <group name="Distributed-Primitive-Lock" if="${OC2}"> |
| |
| <step name="Distributed-Primitive-Lock.Test-Lock-1" |
| exec="onos ${OC1} lock-test test-lock lock"/> |
| |
| <step name="Distributed-Primitive-Lock.Test-Lock-2" |
| exec="onos ${OC2} lock-test test-lock lock" |
| requires="Distributed-Primitive-Lock.Test-Lock-1"/> |
| |
| <step name="Distributed-Primitive-Lock.Test-Unlock-1" |
| exec="onos ${OC1} lock-test test-lock unlock" |
| requires="Distributed-Primitive-Lock.Test-Lock-1"/> |
| |
| <step name="Distributed-Primitive-Lock.Test-TryLock-3" |
| exec="onos-execute-expect ${OC1} lock-test test-lock tryLock --expect false" |
| requires="Distributed-Primitive-Lock.Test-Unlock-1"/> |
| |
| <step name="Distributed-Primitive-Lock.Test-TryLock-4" |
| exec="onos-execute-expect ${OC1} lock-test test-lock tryLock 5000 --expect true" |
| requires="Distributed-Primitive-Lock.Test-TryLock-3"/> |
| |
| <step name="Distributed-Primitive-Lock.Test-Unlock-2" |
| exec="onos ${OC2} lock-test test-lock unlock" |
| requires="Distributed-Primitive-Lock.Test-TryLock-3"/> |
| |
| <step name="Distributed-Primitive-Lock.Test-Unlock-4" |
| exec="onos ${OC2} lock-test test-lock unlock" |
| requires="Distributed-Primitive-Lock.Test-Unlock-2"/> |
| |
| <group name="Distributed-Primitive-Lock.Check-Log-Exceptions" |
| requires="Distributed-Primitive-Lock.Test-Unlock-4"> |
| <parallel var="${OC#}"> |
| <step name="Distributed-Primitive-Lock.Check-Log-Exceptions-${#}" |
| exec="onos-check-logs ${OC#}"/> |
| </parallel> |
| </group> |
| |
| </group> |
| |
| <group name="Single-Node-NA" unless="${OC2}"> |
| <step name="No-Op" exec="echo Scenario not supported for this cell size"/> |
| </group> |
| </scenario> |
| |