Madan Jampani | 9e1a8c1 | 2016-06-27 11:19:10 -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 | |
Ray Milkey | 685e34d | 2016-09-01 12:01:09 -0700 | [diff] [blame] | 17 | <scenario name="distributed-leader-elector-test" |
Madan Jampani | 9e1a8c1 | 2016-06-27 11:19:10 -0700 | [diff] [blame] | 18 | description="ONOS LeaderElector distributed primitive Test"> |
Ray Milkey | 685e34d | 2016-09-01 12:01:09 -0700 | [diff] [blame] | 19 | <group name="Distributed-Primitive-Leader"> |
Madan Jampani | 9e1a8c1 | 2016-06-27 11:19:10 -0700 | [diff] [blame] | 20 | |
Jon Hall | da9fd4a | 2017-02-16 14:23:38 -0800 | [diff] [blame] | 21 | <step name="Distributed-Primitive-Leader.Test-Initial-No-Leader" |
Madan Jampani | 145623d | 2016-07-22 14:55:57 -0700 | [diff] [blame] | 22 | exec="onos-cluster-execute-expect leader-test test-elector show foo --expect leader=none#candidates=none"/> |
Madan Jampani | 9e1a8c1 | 2016-06-27 11:19:10 -0700 | [diff] [blame] | 23 | |
Jon Hall | da9fd4a | 2017-02-16 14:23:38 -0800 | [diff] [blame] | 24 | <step name="Distributed-Primitive-Leader.Test-Leader-Run" |
| 25 | requires="Distributed-Primitive-Leader.Test-Initial-No-Leader" |
Ray Milkey | 685e34d | 2016-09-01 12:01:09 -0700 | [diff] [blame] | 26 | exec="onos-execute-expect ${OCI} leader-test test-elector run foo --expect leader=${OCI}#term=[0-9][0-9]*#candidates=${OCI}"/> |
Madan Jampani | 9e1a8c1 | 2016-06-27 11:19:10 -0700 | [diff] [blame] | 27 | |
Jon Hall | da9fd4a | 2017-02-16 14:23:38 -0800 | [diff] [blame] | 28 | <step name="Distributed-Primitive-Leader.Test-Leader-Withdraw" |
| 29 | requires="Distributed-Primitive-Leader.Test-Leader-Run" |
Madan Jampani | 9e1a8c1 | 2016-06-27 11:19:10 -0700 | [diff] [blame] | 30 | exec="onos ${OCI} leader-test test-elector withdraw foo"/> |
| 31 | |
Jon Hall | da9fd4a | 2017-02-16 14:23:38 -0800 | [diff] [blame] | 32 | <step name="Distributed-Primitive-Leader.Test-No-Leader-After-Withdraw" |
| 33 | requires="Distributed-Primitive-Leader.Test-Leader-Withdraw" |
Madan Jampani | 145623d | 2016-07-22 14:55:57 -0700 | [diff] [blame] | 34 | exec="onos-cluster-execute-expect leader-test test-elector show foo --expect leader=none#candidates=none"/> |
Madan Jampani | 9e1a8c1 | 2016-06-27 11:19:10 -0700 | [diff] [blame] | 35 | |
Jon Hall | e4a6100 | 2017-02-16 18:37:02 -0800 | [diff] [blame] | 36 | <group name="Distributed-Primitive-Leader.Check-Log-Exceptions" |
| 37 | requires="Distributed-Primitive-Leader.Test-No-Leader-After-Withdraw"> |
| 38 | <parallel var="${OC#}"> |
| 39 | <step name="Distributed-Primitive-Leader.Check-Log-Exceptions-${#}" |
| 40 | exec="onos-check-logs ${OC#}"/> |
| 41 | </parallel> |
| 42 | </group> |
Madan Jampani | 9e1a8c1 | 2016-06-27 11:19:10 -0700 | [diff] [blame] | 43 | |
Madan Jampani | 9e1a8c1 | 2016-06-27 11:19:10 -0700 | [diff] [blame] | 44 | </group> |
| 45 | </scenario> |
| 46 | |