Committed by
Gerrit Code Review
Add point to point intent test scenario
Change-Id: Ie1756bc48445252c3f3e66bcb0225461a17144d9
Showing
2 changed files
with
56 additions
and
1 deletions
tools/test/scenarios/net-point-intent.xml
0 → 100644
| 1 | +<!-- | ||
| 2 | + ~ Copyright 2015 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-point-intent" description="Network point to point intent connectivity test"> | ||
| 17 | + <!-- TODO: parametrize this via recipes --> | ||
| 18 | + <group name="Point-To-Point-Intent-Connectivity"> | ||
| 19 | + <step name="P2P-Uninstall-Reactive-Forwarding" | ||
| 20 | + exec="onos ${OC1} app deactivate org.onosproject.fwd org.onosproject.ifwd"/> | ||
| 21 | + | ||
| 22 | + <step name="P2P-Find-Host-1" requires="^" | ||
| 23 | + exec="onos-mininet sendAndExpect h1 ping -c1 h4 --expect ."/> | ||
| 24 | + <step name="P2PFind-Host-2" requires="^" | ||
| 25 | + exec="onos-mininet sendAndExpect h4 ping -c1 h1 --expect ."/> | ||
| 26 | + | ||
| 27 | + <step name="P2P-Create-Intent-1-To-4" requires="^" | ||
| 28 | + exec="onos ${OC1} add-point-intent of:0000000000000001/1 of:0000000000000004/1"/> | ||
| 29 | + <step name="P2P-Create-Intent-4-To-1" requires="^" | ||
| 30 | + exec="onos ${OC1} add-point-intent of:0000000000000004/1 of:0000000000000001/1"/> | ||
| 31 | + <step name="P2P-Validate-Point-Intents-Installed" exec="onos-check-intent ${OC1} INSTALLED" | ||
| 32 | + requires="P2P-Create-Intent-4-To-1" /> | ||
| 33 | + | ||
| 34 | + <import file="${ONOS_SCENARIOS}/net-link-down-up.xml" namespace="Point-To-Point-Intent"/> | ||
| 35 | + <dependency name="Point-To-Point-Intent.Net-Link-Down-Up" requires="P2P-Validate-Point-Intents-Installed"/> | ||
| 36 | + <step name="P2P-Validate-Intent-Installed-Still" exec="onos-check-intent ${OC1} INSTALLED" | ||
| 37 | + requires="Point-To-Point-Intent.Link-1-Down" /> | ||
| 38 | + | ||
| 39 | + <step name="P2P-Validate-Intent-Failed" exec="onos-check-intent ${OC1} FAILED" | ||
| 40 | + requires="Point-To-Point-Intent.Link-2-Down" /> | ||
| 41 | + | ||
| 42 | + <step name="P2P-Validate-Intent-Installed-Again" exec="onos-check-intent ${OC1} INSTALLED" | ||
| 43 | + requires="Point-To-Point-Intent.Link-1-Up" /> | ||
| 44 | + <dependency name="Point-To-Point-Intent.Ping-4" requires="P2P-Validate-Intent-Installed-Again" /> | ||
| 45 | + | ||
| 46 | + <step name="P2P-Remove-Intent" requires="~Point-To-Point-Intent.Net-Link-Down-Up" | ||
| 47 | + exec="onos ${OC1} remove-intent -p"/> | ||
| 48 | + | ||
| 49 | + | ||
| 50 | + | ||
| 51 | + </group> | ||
| 52 | +</scenario> |
| ... | @@ -26,7 +26,10 @@ | ... | @@ -26,7 +26,10 @@ |
| 26 | <import file="${ONOS_SCENARIOS}/net-host-intent.xml"/> | 26 | <import file="${ONOS_SCENARIOS}/net-host-intent.xml"/> |
| 27 | <dependency name="Host-Intent-Connectivity" requires="Net-Setup,~Reactive-Forwarding.Net-Link-Down-Up"/> | 27 | <dependency name="Host-Intent-Connectivity" requires="Net-Setup,~Reactive-Forwarding.Net-Link-Down-Up"/> |
| 28 | 28 | ||
| 29 | + <import file="${ONOS_SCENARIOS}/net-point-intent.xml"/> | ||
| 30 | + <dependency name="Point-To-Point-Intent-Connectivity" requires="Net-Setup,~Reactive-Forwarding.Net-Link-Down-Up,Host-Intent-Connectivity"/> | ||
| 31 | + | ||
| 29 | <import file="${ONOS_SCENARIOS}/net-teardown.xml"/> | 32 | <import file="${ONOS_SCENARIOS}/net-teardown.xml"/> |
| 30 | - <dependency name="Net-Teardown" requires="~Host-Intent-Connectivity"/> | 33 | + <dependency name="Net-Teardown" requires="~Host-Intent-Connectivity,~Point-To-Point-Intent-Connectivity"/> |
| 31 | </group> | 34 | </group> |
| 32 | </scenario> | 35 | </scenario> | ... | ... |
-
Please register or login to post a comment