Ray Milkey | 9237067 | 2017-02-21 10:30:43 -0800 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright 2017-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 | <scenario name="maps-cli" |
| 17 | description="maps CLI command test"> |
| 18 | <group name="Maps-Cli"> |
| 19 | |
| 20 | <!-- Shell script based checks --> |
| 21 | <!-- Check map known to have 0 entries --> |
| 22 | <step name="Maps-Cli.Find-Intent-Mapping-Shell" |
| 23 | exec="onos-find-map ${OCI} onos-intent-mapping intentMapping"/> |
| 24 | <step name="Maps-Cli.Check-Intent-Mapping-Shell" requires="^" |
| 25 | exec="test ${intentMappingSize} -eq 0"/> |
| 26 | |
| 27 | <!-- Check map known to have at least 50 entries --> |
| 28 | <step name="Maps-Cli.Find-Intent-Mapping2-Shell" |
| 29 | exec="onos-find-map ${OCI} onos-app-ids appIdsMapping"/> |
| 30 | <step name="Maps-Cli.Check-App-Ids-Mapping-Shell" requires="^" |
| 31 | exec="test ${appIdsMappingSize} -gt 50"/> |
| 32 | |
| 33 | <!-- Python based checks --> |
| 34 | <!-- Check map known to have 0 entries --> |
| 35 | <step name="Maps-Cli.Find-Intent-Mapping-Python" |
| 36 | exec="onos-find-and-check-map ${OCI} onos-intent-mapping yes"/> |
| 37 | <!-- Check map known to have more than 0 entries --> |
| 38 | <step name="Maps-Cli.Find-App-Id-Mapping" |
| 39 | exec="onos-find-and-check-map ${OCI} onos-app-ids no"/> |
| 40 | |
| 41 | </group> |
| 42 | </scenario> |