blob: cf9ec3ca4ea02c1f3879b99c810f9a36208bc45a [file] [log] [blame]
Jordan Halterman862d4f92018-01-25 17:19:30 -08001<!--
2 ~ Copyright 2018-present Open Networking Foundation
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-lock-test"
18 description="ONOS DistributedLock distributed primitive Test">
19 <group name="Distributed-Primitive-Lock" if="${OC2}">
20
21 <step name="Distributed-Primitive-Lock.Test-Lock-1"
22 exec="onos ${OC1} lock-test test-lock lock"/>
23
24 <step name="Distributed-Primitive-Lock.Test-Lock-2"
25 exec="onos ${OC2} lock-test test-lock lock"
26 requires="Distributed-Primitive-Lock.Test-Lock-1"/>
27
28 <step name="Distributed-Primitive-Lock.Test-Unlock-1"
29 exec="onos ${OC1} lock-test test-lock unlock"
30 requires="Distributed-Primitive-Lock.Test-Lock-1"/>
31
32 <step name="Distributed-Primitive-Lock.Test-TryLock-3"
33 exec="onos-execute-expect ${OC1} lock-test test-lock tryLock --expect false"
34 requires="Distributed-Primitive-Lock.Test-Unlock-1"/>
35
36 <step name="Distributed-Primitive-Lock.Test-TryLock-4"
37 exec="onos-execute-expect ${OC1} lock-test test-lock tryLock 5000 --expect true"
38 requires="Distributed-Primitive-Lock.Test-TryLock-3"/>
39
40 <step name="Distributed-Primitive-Lock.Test-Unlock-2"
41 exec="onos ${OC2} lock-test test-lock unlock"
42 requires="Distributed-Primitive-Lock.Test-TryLock-3"/>
43
44 <step name="Distributed-Primitive-Lock.Test-Unlock-4"
45 exec="onos ${OC2} lock-test test-lock unlock"
46 requires="Distributed-Primitive-Lock.Test-Unlock-2"/>
47
48 <group name="Distributed-Primitive-Lock.Check-Log-Exceptions"
49 requires="Distributed-Primitive-Lock.Test-Unlock-4">
50 <parallel var="${OC#}">
51 <step name="Distributed-Primitive-Lock.Check-Log-Exceptions-${#}"
52 exec="onos-check-logs ${OC#}"/>
53 </parallel>
54 </group>
55
56 </group>
57
58 <group name="Single-Node-NA" unless="${OC2}">
59 <step name="No-Op" exec="echo Scenario not supported for this cell size"/>
60 </group>
61</scenario>
62