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 | --> |
Thomas Vachuska | 969d6bc | 2015-07-29 11:56:57 -0700 | [diff] [blame] | 16 | <scenario name="archetypes" description="ONOS archetypes test"> |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 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 | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 26 | <step name="Verify-App" requires="^" delay="5" |
Thomas Vachuska | 0cec548 | 2015-12-10 13:40:07 -0800 | [diff] [blame] | 27 | exec="onos ${OCI} scr:details org.test.app.AppComponent" |
| 28 | FIXME="onos-check-components ${OCI} org.test.app.AppComponent"/> |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 29 | |
| 30 | <step name="Create-App-CLI-Overlay" requires="Install-App" |
| 31 | 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] | 32 | <step name="Build-App-With-CLI" requires="^" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 33 | exec="mvn clean install"/> |
Thomas Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 34 | <step name="Reinstall-App-With-CLI" requires="^,~Verify-App" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 35 | exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/> |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 36 | <step name="Verify-CLI" requires="^" delay="2" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 37 | exec="onos ${OCI} sample"/> |
| 38 | |
| 39 | <step name="Create-App-UI-Overlay" requires="Reinstall-App-With-CLI" |
| 40 | 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] | 41 | <step name="Build-App-With-UI" requires="^" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 42 | exec="mvn clean install"/> |
Thomas Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 43 | <step name="Reinstall-App-With-UI" requires="^,~Verify-CLI" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 44 | exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/> |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 45 | <step name="Verify-UI" requires="^" delay="2" |
Thomas Vachuska | 87e50d9 | 2015-09-28 13:33:07 -0700 | [diff] [blame] | 46 | exec="onos-check-views ${OCI} id=sample"/> |
Thomas Vachuska | 2b0fc46 | 2015-09-28 12:04:06 -0700 | [diff] [blame] | 47 | |
| 48 | <step name="Create-App-UI-Table-Overlay" requires="Reinstall-App-With-UI" |
| 49 | exec="onos-create-app uitab org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/> |
| 50 | <step name="Build-App-With-UI-Table" requires="^" |
| 51 | exec="mvn clean install"/> |
| 52 | <step name="Reinstall-App-With-UI-Table" requires="^,~Verify-UI" |
| 53 | exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/> |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 54 | <step name="Verify-UI-Table" requires="^" delay="2" |
Thomas Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 55 | exec="onos-check-views ${OCI} id=sample"/> |
| 56 | |
Thomas Vachuska | 7667975 | 2015-09-29 13:14:53 -0700 | [diff] [blame] | 57 | <step name="Create-App-UI-Topo-Overlay" requires="Reinstall-App-With-UI-Table" |
| 58 | exec="onos-create-app uitopo org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/> |
| 59 | <step name="Build-App-With-UI-Topo" requires="^" |
| 60 | exec="mvn clean install"/> |
| 61 | <step name="Reinstall-App-With-UI-Topo" requires="^,~Verify-UI-Table" |
| 62 | exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/> |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 63 | <step name="Verify-UI-Topo" requires="^" delay="2" |
Thomas Vachuska | 7667975 | 2015-09-29 13:14:53 -0700 | [diff] [blame] | 64 | exec="onos-check-views ${OCI} id=sample"/> |
Thomas Vachuska | 2b0fc46 | 2015-09-28 12:04:06 -0700 | [diff] [blame] | 65 | |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 66 | <step name="Create-REST-Overlay" requires="^" |
| 67 | exec="onos-create-app rest org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/> |
| 68 | <step name="Build-REST-App" requires="^" |
| 69 | exec="mvn clean install"/> |
| 70 | <step name="Install-REST-App" requires="^,~Verify-UI-Topo" |
| 71 | exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/> |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 72 | <step name="Verify-REST-CLI" requires="^" delay="2" |
| 73 | exec="onos ${OCI} sample"/> |
Thomas Vachuska | 664f29e | 2015-12-08 12:58:16 -0800 | [diff] [blame] | 74 | <step name="Verify-REST-App" requires="^" delay="2" |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 75 | exec="curl --fail -isS --user ${ONOS_WEB_USER}:${ONOS_WEB_PASS} http://${OCI}:8181/onos/test-app/sample"/> |
| 76 | |
Thomas Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 77 | <step name="Uninstall-App" requires="^" |
| 78 | exec="onos-app ${OCI} uninstall org.foo.app"/> |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 79 | </group> |
| 80 | </scenario> |