Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 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="archetypes-test" description="ONOS archetypes test"> |
| 17 | <group name="Archetypes" cwd="${WORKSPACE}/tmp/test-app"> |
| 18 | <step name="Clean-Up" cwd="${WORKSPACE}/tmp" env="~" |
| 19 | exec="rm -r test-app"/> |
| 20 | |
Thomas Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 21 | <step name="Create-App" cwd="${WORKSPACE}/tmp" requires="^" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 22 | exec="onos-create-app app org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/> |
| 23 | <step name="Build-App" requires="Create-App" exec="mvn clean install"/> |
Thomas Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 24 | <step name="Install-App" requires="^" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 25 | exec="onos-app ${OCI} install! target/test-app-1.2.3.oar"/> |
Thomas Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 26 | <step name="Verify-App" requires="^" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 27 | exec="onos-check-components ${OCI} org.test.app.AppComponent"/> |
| 28 | |
| 29 | <step name="Create-App-CLI-Overlay" requires="Install-App" |
| 30 | exec="onos-create-app cli org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/> |
Thomas Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 31 | <step name="Build-App-With-CLI" requires="^" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 32 | exec="mvn clean install"/> |
Thomas Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 33 | <step name="Reinstall-App-With-CLI" requires="^,~Verify-App" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 34 | exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/> |
Thomas Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 35 | <step name="Verify-CLI" requires="^" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 36 | exec="onos ${OCI} sample"/> |
| 37 | |
| 38 | <step name="Create-App-UI-Overlay" requires="Reinstall-App-With-CLI" |
| 39 | exec="onos-create-app ui org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/> |
Thomas Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 40 | <step name="Build-App-With-UI" requires="^" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 41 | exec="mvn clean install"/> |
Thomas Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 42 | <step name="Reinstall-App-With-UI" requires="^,~Verify-CLI" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 43 | exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/> |
Thomas Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 44 | <step name="Verify-UI" requires="^" |
| 45 | exec="onos-check-views ${OCI} id=sample"/> |
| 46 | |
| 47 | <step name="Uninstall-App" requires="^" |
| 48 | exec="onos-app ${OCI} uninstall org.foo.app"/> |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 49 | </group> |
| 50 | </scenario> |