Committed by
Gerrit Code Review
Adding net-prerequisites.xml scenario - included in fast & smoke scenarios.
Adding net-setup.xml dependency on arping (sudo apt-get install iputils-arping) Change-Id: I3276247dc8ae2a2c4ed47801385eb8e50be8f244
Showing
4 changed files
with
34 additions
and
4 deletions
| ... | @@ -15,9 +15,10 @@ | ... | @@ -15,9 +15,10 @@ |
| 15 | --> | 15 | --> |
| 16 | <scenario name="fast" description="ONOS fast smoke test"> | 16 | <scenario name="fast" description="ONOS fast smoke test"> |
| 17 | <import file="${ONOS_SCENARIOS}/prerequisites.xml"/> | 17 | <import file="${ONOS_SCENARIOS}/prerequisites.xml"/> |
| 18 | + <import file="${ONOS_SCENARIOS}/net-prerequisites.xml"/> | ||
| 18 | 19 | ||
| 19 | <import file="${ONOS_SCENARIOS}/setup.xml"/> | 20 | <import file="${ONOS_SCENARIOS}/setup.xml"/> |
| 20 | - <dependency name="Setup" requires="Prerequisites"/> | 21 | + <dependency name="Setup" requires="Prerequisites,Net-Prerequisites"/> |
| 21 | 22 | ||
| 22 | <import file="${ONOS_SCENARIOS}/net-fast.xml"/> | 23 | <import file="${ONOS_SCENARIOS}/net-fast.xml"/> |
| 23 | <dependency name="Net-Fast" requires="Setup"/> | 24 | <dependency name="Net-Fast" requires="Setup"/> | ... | ... |
tools/test/scenarios/net-prerequisites.xml
0 → 100644
| 1 | +<!-- | ||
| 2 | + ~ Copyright 2016 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 | +<scenario name="net-prerequisites" description="Network setup prerequisites check"> | ||
| 17 | + <group name="Net-Prerequisites"> | ||
| 18 | + <step name="Check-mininet" exec="ssh ${ONOS_USER}@${OCN} type mn"/> | ||
| 19 | + <step name="Check-screen" exec="ssh ${ONOS_USER}@${OCN} type screen"/> | ||
| 20 | + <step name="Check-arping" exec="ssh ${ONOS_USER}@${OCN} type arping"/> | ||
| 21 | + </group> | ||
| 22 | +</scenario> |
| ... | @@ -34,8 +34,14 @@ | ... | @@ -34,8 +34,14 @@ |
| 34 | <step name="Wait-For-Mininet" requires="Start-Mininet" | 34 | <step name="Wait-For-Mininet" requires="Start-Mininet" |
| 35 | exec="onos-mininet wait 10"/> | 35 | exec="onos-mininet wait 10"/> |
| 36 | 36 | ||
| 37 | - <step name="Check-Summary" requires="Wait-For-Mininet" | 37 | + <step name="Show-Network" requires="Wait-For-Mininet" |
| 38 | - exec="onos-check-summary ${OC1} [0-9]* 25 140 0"/> | 38 | + exec="onos-mininet sendAndExpect net --expect ."/> |
| 39 | + | ||
| 40 | + <step name="Discover-Hosts" requires="Show-Network" | ||
| 41 | + exec="onos-mininet sendAndExpect py [ h.cmd('arping -U -c 1 ' + h.IP()) for h in net.hosts ] --expect ."/> | ||
| 42 | + | ||
| 43 | + <step name="Check-Summary" requires="Discover-Hosts" | ||
| 44 | + exec="onos-check-summary ${OC1} [0-9]* 25 140 25"/> | ||
| 39 | 45 | ||
| 40 | <step name="Balance-Masters" requires="~Check-Summary" if="${OC2}" | 46 | <step name="Balance-Masters" requires="~Check-Summary" if="${OC2}" |
| 41 | exec="onos ${OC1} balance-masters"/> | 47 | exec="onos ${OC1} balance-masters"/> | ... | ... |
| ... | @@ -15,9 +15,10 @@ | ... | @@ -15,9 +15,10 @@ |
| 15 | --> | 15 | --> |
| 16 | <scenario name="smoke" description="ONOS smoke test"> | 16 | <scenario name="smoke" description="ONOS smoke test"> |
| 17 | <import file="${ONOS_SCENARIOS}/prerequisites.xml"/> | 17 | <import file="${ONOS_SCENARIOS}/prerequisites.xml"/> |
| 18 | + <import file="${ONOS_SCENARIOS}/net-prerequisites.xml"/> | ||
| 18 | 19 | ||
| 19 | <import file="${ONOS_SCENARIOS}/setup.xml"/> | 20 | <import file="${ONOS_SCENARIOS}/setup.xml"/> |
| 20 | - <dependency name="Setup" requires="Prerequisites"/> | 21 | + <dependency name="Setup" requires="Prerequisites,Net-Prerequisites"/> |
| 21 | 22 | ||
| 22 | <import file="${ONOS_SCENARIOS}/net-smoke.xml"/> | 23 | <import file="${ONOS_SCENARIOS}/net-smoke.xml"/> |
| 23 | <dependency name="Net-Smoke" requires="Setup"/> | 24 | <dependency name="Net-Smoke" requires="Setup"/> | ... | ... |
-
Please register or login to post a comment