blob: cbfba369bf0ae491a9691527be26d881d347eabc [file] [log] [blame]
Boyuan Yan1c27bc72019-02-15 19:22:19 +00001<?xml version="1.0"?>
Andrea Campanella6d774232018-12-21 12:18:21 +01002<!--
3 ~ Copyright 2015-present Open Networking Foundation
4 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
16 -->
Boyuan Yan1c27bc72019-02-15 19:22:19 +000017<scenario name="net-odtn-restconf" description="ODTN RESTCONF API test">
18 <group name="Net-ODTN-Restconf">
19 <!-- Verify the correct topology is present -->
20 <step name="Net-ODTN-Restconf.Tapi-context" exec="execute-tapi-context-get-call.py ${OC1} empty"/>
21 <!-- Verify empty connectivity service -->
Boyuan Yan0cf3ef72019-04-08 14:10:53 -070022 <step name="Net-ODTN-Restconf.Confirm-conn-empty" requires="Net-ODTN-Restconf.Tapi-context" exec="${ONOS_SCENARIOS}/bin/execute-tapi-post-call.py ${OC1} tapi-connectivity:get-connectivity-service-list empty"/>
Boyuan Yan1c27bc72019-02-15 19:22:19 +000023 <!-- Push the line-side connectivity service request -->
24 <group name="Net-ODTN-Restconf.Line-side-test" requires="Net-ODTN-Restconf.Confirm-conn-empty">
Boyuan Yan0cf3ef72019-04-08 14:10:53 -070025 <step name="Net-ODTN-Restconf.Create-line-side" exec="${ONOS_SCENARIOS}/bin/execute-tapi-post-call.py ${OC1} tapi-connectivity:create-connectivity-service line-side"/>
26 <step name="Net-ODTN-Restconf.Check-line-side" requires="Net-ODTN-Restconf.Create-line-side" exec="${ONOS_SCENARIOS}/odtn/checkUntilSucc.sh 'python ${ONOS_SCENARIOS}/bin/execute-tapi-post-call.py+${OC1}+tapi-connectivity:get-connectivity-service-list+empty+|+grep+'tapi-connectivity:output'+|+grep+connection-uuid+-o+|+wc+-l' 1" />
27 <step name="Net-ODTN-Restconf.Delete-line-conn" requires="Net-ODTN-Restconf.Check-line-side" exec="${ONOS_SCENARIOS}/bin/execute-tapi-delete-call.py ${OC1} line"/>
28 <step name="Net-ODTN-Restconf.Confirm-conn-empty-2" requires="Net-ODTN-Restconf.Delete-line-conn" exec="${ONOS_SCENARIOS}/bin/execute-tapi-post-call.py ${OC1} tapi-connectivity:get-connectivity-service-list empty"/>
Boyuan Yan1c27bc72019-02-15 19:22:19 +000029 <group name="Net-ODTN-Restconf.Verify-Logs" requires="Net-ODTN-Restconf.Confirm-conn-empty-2">
30 <parallel var="${OC#}">
31 <step name="Check-Logs-Restconf-1-${#}" exec="onos-check-logs ${OC#}"/>
32 </parallel>
33 </group>
Andrea Campanella6d774232018-12-21 12:18:21 +010034 </group>
Boyuan Yan1c27bc72019-02-15 19:22:19 +000035 <!-- Push the client-side connectivity service request -->
36 <group name="Net-ODTN-Restconf.Client-side-test" requires="Net-ODTN-Restconf.Line-side-test" delay="10" >
Boyuan Yan0cf3ef72019-04-08 14:10:53 -070037 <step name="Net-ODTN-Restconf.Create-client-side" exec="${ONOS_SCENARIOS}/bin/execute-tapi-post-call.py ${OC1} tapi-connectivity:create-connectivity-service client-side"/>
38 <step name="Net-ODTN-Restconf.Check-client-side" requires="Net-ODTN-Restconf.Create-client-side" exec="${ONOS_SCENARIOS}/odtn/checkUntilSucc.sh 'python ${ONOS_SCENARIOS}/bin/execute-tapi-post-call.py+${OC1}+tapi-connectivity:get-connectivity-service-list+empty+|+grep+'tapi-connectivity:output'+|+grep+connection-uuid+-o+|+wc+-l' 1" />
39 <step name="Net-ODTN-Restconf.Delete-client-conn" requires="Net-ODTN-Restconf.Check-client-side" exec="${ONOS_SCENARIOS}/bin/execute-tapi-delete-call.py ${OC1} both"/>
40 <step name="Net-ODTN-Restconf.Confirm-conn-empty-3" requires="Net-ODTN-Restconf.Delete-client-conn" exec="${ONOS_SCENARIOS}/bin/execute-tapi-post-call.py ${OC1} tapi-connectivity:get-connectivity-service-list empty"/>
Boyuan Yan1c27bc72019-02-15 19:22:19 +000041 <group name="Net-ODTN-Restconf.Verify-Logs-2" requires="Net-ODTN-Restconf.Confirm-conn-empty-3">
42 <parallel var="${OC#}">
43 <step name="Check-Logs-Restconf-2-${#}" exec="onos-check-logs ${OC#}"/>
44 </parallel>
45 </group>
46 </group>
47 </group>
Andrea Campanella6d774232018-12-21 12:18:21 +010048</scenario>