Committed by
Gerrit Code Review
ONOS-3142 Added a fast variant of smoke test.
Change-Id: Ie841aa5bfec52ab0e100d41c7e635520186a9a04
Showing
4 changed files
with
83 additions
and
24 deletions
tools/test/scenarios/fast.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="smoke" description="ONOS smoke test"> | ||
17 | + <import file="${ONOS_SCENARIOS}/prerequisites.xml"/> | ||
18 | + | ||
19 | + <import file="${ONOS_SCENARIOS}/setup.xml"/> | ||
20 | + <dependency name="Setup" requires="Prerequisites"/> | ||
21 | + | ||
22 | + <import file="${ONOS_SCENARIOS}/net-fast.xml"/> | ||
23 | + <dependency name="Net-Fast" requires="Setup"/> | ||
24 | + | ||
25 | + <import file="${ONOS_SCENARIOS}/archetypes.xml"/> | ||
26 | + <dependency name="Archetypes" requires="Setup"/> | ||
27 | + | ||
28 | + <import file="${ONOS_SCENARIOS}/wrapup.xml"/> | ||
29 | + <dependency name="Wrapup" requires="~Archetypes,~Setup,~Net-Fast"/> | ||
30 | +</scenario> |
tools/test/scenarios/net-fast.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-fast" description="Basic network functionality fast test"> | ||
17 | + <group name="Net-Fast"> | ||
18 | + <import file="${ONOS_SCENARIOS}/net-setup.xml"/> | ||
19 | + | ||
20 | + <import file="${ONOS_SCENARIOS}/net-pingall.xml" namespace="Reactive-Forwarding"/> | ||
21 | + <dependency name="Reactive-Forwarding.Net-Pingall" requires="Net-Setup"/> | ||
22 | + | ||
23 | + <import file="${ONOS_SCENARIOS}/net-link-down-up.xml" namespace="Reactive-Forwarding"/> | ||
24 | + <dependency name="Reactive-Forwarding.Net-Link-Down-Up" requires="Net-Setup,~Reactive-Forwarding.Net-Pingall"/> | ||
25 | + | ||
26 | + <import file="${ONOS_SCENARIOS}/net-teardown.xml"/> | ||
27 | + <dependency name="Net-Teardown" requires="~Reactive-Forwarding.Net-Link-Down-Up"/> | ||
28 | + </group> | ||
29 | +</scenario> |
... | @@ -36,13 +36,13 @@ | ... | @@ -36,13 +36,13 @@ |
36 | <dependency name="Net-Create-Flows" requires="Net-Setup,P2P-Intent-Connectivity,Net-REST"/> | 36 | <dependency name="Net-Create-Flows" requires="Net-Setup,P2P-Intent-Connectivity,Net-REST"/> |
37 | 37 | ||
38 | <import file="${ONOS_SCENARIOS}/net-topo.xml"/> | 38 | <import file="${ONOS_SCENARIOS}/net-topo.xml"/> |
39 | - <dependency name="Net-topo" requires="Net-Setup,Net-Create-Flows"/> | 39 | + <dependency name="Net-Topo" requires="Net-Setup,Net-Create-Flows"/> |
40 | 40 | ||
41 | <import file="${ONOS_SCENARIOS}/net-teardown.xml"/> | 41 | <import file="${ONOS_SCENARIOS}/net-teardown.xml"/> |
42 | <dependency name="Net-Teardown" requires="~Host-Intent-Connectivity, | 42 | <dependency name="Net-Teardown" requires="~Host-Intent-Connectivity, |
43 | ~P2P-Intent-Connectivity, | 43 | ~P2P-Intent-Connectivity, |
44 | ~Net-REST, | 44 | ~Net-REST, |
45 | ~Net-Create-Flows, | 45 | ~Net-Create-Flows, |
46 | - ~Net-topo"/> | 46 | + ~Net-Topo"/> |
47 | </group> | 47 | </group> |
48 | </scenario> | 48 | </scenario> | ... | ... |
... | @@ -16,60 +16,60 @@ | ... | @@ -16,60 +16,60 @@ |
16 | <scenario name="net-topo" | 16 | <scenario name="net-topo" |
17 | description="Network topology test"> | 17 | description="Network topology test"> |
18 | <!-- TODO: parametrize this via recipes --> | 18 | <!-- TODO: parametrize this via recipes --> |
19 | - <group name="Net-topo"> | 19 | + <group name="Net-Topo"> |
20 | 20 | ||
21 | <!-- Verify the overall topology using the REST API --> | 21 | <!-- Verify the overall topology using the REST API --> |
22 | - <step name="Net-topo.Query-Topo" | 22 | + <step name="Net-Topo.Query-Topo" |
23 | exec="query-topo.py ${OC1} topo"/> | 23 | exec="query-topo.py ${OC1} topo"/> |
24 | - <step name="Net-topo.Verify-Topo-Devices" requires="Net-topo.Query-Topo" | 24 | + <step name="Net-Topo.Verify-Topo-Devices" requires="Net-Topo.Query-Topo" |
25 | exec="test ${topoDevices} == 25"/> | 25 | exec="test ${topoDevices} == 25"/> |
26 | - <step name="Net-topo.Verify-Topo-Links" requires="Net-topo.Query-Topo" | 26 | + <step name="Net-Topo.Verify-Topo-Links" requires="Net-Topo.Query-Topo" |
27 | exec="test ${topoLinks} == 140"/> | 27 | exec="test ${topoLinks} == 140"/> |
28 | - <step name="Net-topo.Verify-Topo-Clusters" requires="Net-topo.Query-Topo" | 28 | + <step name="Net-Topo.Verify-Topo-Clusters" requires="Net-Topo.Query-Topo" |
29 | exec="test ${topoClusters} == 1"/> | 29 | exec="test ${topoClusters} == 1"/> |
30 | 30 | ||
31 | <!-- Verify the cluster topology using the REST API --> | 31 | <!-- Verify the cluster topology using the REST API --> |
32 | - <step name="Net-topo.Query-Cluster0" | 32 | + <step name="Net-Topo.Query-Cluster0" |
33 | exec="query-cluster.py ${OC1} clusterTopo0 0"/> | 33 | exec="query-cluster.py ${OC1} clusterTopo0 0"/> |
34 | - <step name="Net-topo.Verify-Cluster0-Id" requires="Net-topo.Query-Cluster0" | 34 | + <step name="Net-Topo.Verify-Cluster0-Id" requires="Net-Topo.Query-Cluster0" |
35 | exec="test ${clusterTopo0Id} == 0"/> | 35 | exec="test ${clusterTopo0Id} == 0"/> |
36 | - <step name="Net-topo.Verify-Cluster0-DeviceCount" requires="Net-topo.Query-Cluster0" | 36 | + <step name="Net-Topo.Verify-Cluster0-DeviceCount" requires="Net-Topo.Query-Cluster0" |
37 | exec="test ${clusterTopo0DeviceCount} == 25"/> | 37 | exec="test ${clusterTopo0DeviceCount} == 25"/> |
38 | - <step name="Net-topo.Verify-Cluster0-LinkCount" requires="Net-topo.Query-Cluster0" | 38 | + <step name="Net-Topo.Verify-Cluster0-LinkCount" requires="Net-Topo.Query-Cluster0" |
39 | exec="test ${clusterTopo0LinkCount} == 140"/> | 39 | exec="test ${clusterTopo0LinkCount} == 140"/> |
40 | - <step name="Net-topo.Verify-Cluster0-Root" requires="Net-topo.Query-Cluster0" | 40 | + <step name="Net-Topo.Verify-Cluster0-Root" requires="Net-Topo.Query-Cluster0" |
41 | exec="test '${clusterTopo0Root}' == 'of:000000000000000a'"/> | 41 | exec="test '${clusterTopo0Root}' == 'of:000000000000000a'"/> |
42 | 42 | ||
43 | <!-- Verify the list of devices for the cluster --> | 43 | <!-- Verify the list of devices for the cluster --> |
44 | - <step name="Net-topo.Verify-Cluster0-Devices" | 44 | + <step name="Net-Topo.Verify-Cluster0-Devices" |
45 | exec="verify-topo-devices.py ${OC1} 0 0 24"/> | 45 | exec="verify-topo-devices.py ${OC1} 0 0 24"/> |
46 | 46 | ||
47 | <!-- Spot check some known links in the topology --> | 47 | <!-- Spot check some known links in the topology --> |
48 | - <step name="Net-topo.Verify-Cluster0-Link1" | 48 | + <step name="Net-Topo.Verify-Cluster0-Link1" |
49 | exec="find-link-in-cluster.py ${OC1} link1 0 140 of:000000000000000f 8 of:0000000000000015 3"/> | 49 | exec="find-link-in-cluster.py ${OC1} link1 0 140 of:000000000000000f 8 of:0000000000000015 3"/> |
50 | - <step name="Net-topo.Verify-Cluster0-Link2" | 50 | + <step name="Net-Topo.Verify-Cluster0-Link2" |
51 | exec="find-link-in-cluster.py ${OC1} link2 0 140 of:0000000000000008 3 of:0000000000000005 4"/> | 51 | exec="find-link-in-cluster.py ${OC1} link2 0 140 of:0000000000000008 3 of:0000000000000005 4"/> |
52 | - <step name="Net-topo.Verify-Cluster0-Link3" | 52 | + <step name="Net-Topo.Verify-Cluster0-Link3" |
53 | exec="find-link-in-cluster.py ${OC1} link3 0 140 of:0000000000000011 2 of:0000000000000002 9"/> | 53 | exec="find-link-in-cluster.py ${OC1} link3 0 140 of:0000000000000011 2 of:0000000000000002 9"/> |
54 | - <step name="Net-topo.Verify-Cluster0-Link4" | 54 | + <step name="Net-Topo.Verify-Cluster0-Link4" |
55 | exec="find-link-in-cluster.py ${OC1} link4 0 140 of:000000000000000f 3 of:000000000000000d 10"/> | 55 | exec="find-link-in-cluster.py ${OC1} link4 0 140 of:000000000000000f 3 of:000000000000000d 10"/> |
56 | - <step name="Net-topo.Verify-Cluster0-Link5" | 56 | + <step name="Net-Topo.Verify-Cluster0-Link5" |
57 | exec="find-link-in-cluster.py ${OC1} link5 0 140 of:000000000000000d 13 of:0000000000000010 6"/> | 57 | exec="find-link-in-cluster.py ${OC1} link5 0 140 of:000000000000000d 13 of:0000000000000010 6"/> |
58 | 58 | ||
59 | <!-- Verify the topology infrastructure query --> | 59 | <!-- Verify the topology infrastructure query --> |
60 | - <step name="Net-topo.Query-Cluster0-Infra1" | 60 | + <step name="Net-Topo.Query-Cluster0-Infra1" |
61 | exec="find-topo-infrastructure.py ${OC1} infra1 of:000000000000000f:8"/> | 61 | exec="find-topo-infrastructure.py ${OC1} infra1 of:000000000000000f:8"/> |
62 | - <step name="Net-topo.Verify-Cluster0-Infra1" requires="Net-topo.Query-Cluster0-Infra1" | 62 | + <step name="Net-Topo.Verify-Cluster0-Infra1" requires="Net-Topo.Query-Cluster0-Infra1" |
63 | exec="test '${infra1Infrastructure}' == 'True'"/> | 63 | exec="test '${infra1Infrastructure}' == 'True'"/> |
64 | 64 | ||
65 | - <step name="Net-topo.Query-Cluster0-Infra2" | 65 | + <step name="Net-Topo.Query-Cluster0-Infra2" |
66 | exec="find-topo-infrastructure.py ${OC1} infra2 of:000000000000000d:8"/> | 66 | exec="find-topo-infrastructure.py ${OC1} infra2 of:000000000000000d:8"/> |
67 | - <step name="Net-topo.Verify-Cluster0-Infra2" requires="Net-topo.Query-Cluster0-Infra2" | 67 | + <step name="Net-Topo.Verify-Cluster0-Infra2" requires="Net-Topo.Query-Cluster0-Infra2" |
68 | exec="test '${infra2Infrastructure}' == 'True'"/> | 68 | exec="test '${infra2Infrastructure}' == 'True'"/> |
69 | 69 | ||
70 | - <step name="Net-topo.Query-Cluster0-Infra3" | 70 | + <step name="Net-Topo.Query-Cluster0-Infra3" |
71 | exec="find-topo-infrastructure.py ${OC1} infra3 of:0000000000000012:8"/> | 71 | exec="find-topo-infrastructure.py ${OC1} infra3 of:0000000000000012:8"/> |
72 | - <step name="Net-topo.Verify-Cluster0-Infra3" requires="Net-topo.Query-Cluster0-Infra3" | 72 | + <step name="Net-Topo.Verify-Cluster0-Infra3" requires="Net-Topo.Query-Cluster0-Infra3" |
73 | exec="test '${infra3Infrastructure}' == 'False'"/> | 73 | exec="test '${infra3Infrastructure}' == 'False'"/> |
74 | 74 | ||
75 | </group> | 75 | </group> | ... | ... |
-
Please register or login to post a comment