blob: 9dfd262b669722214371dfb866c27778e66c828c [file] [log] [blame]
Thomas Vachuska4bfccd542015-05-30 00:35:25 -07001<!--
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 ~ Copyright 2015-present Open Networking Laboratory
Thomas Vachuska4bfccd542015-05-30 00:35:25 -07003 ~
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 Vachuska969d6bc2015-07-29 11:56:57 -070016<scenario name="archetypes" description="ONOS archetypes test">
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070017 <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 Vachuska18571b02015-05-31 22:30:06 -070021 <step name="Create-App" cwd="${WORKSPACE}/tmp" requires="^"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070022 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 Vachuska18571b02015-05-31 22:30:06 -070024 <step name="Install-App" requires="^"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070025 exec="onos-app ${OCI} install! target/test-app-1.2.3.oar"/>
Thomas Vachuska731193d2015-12-10 11:41:46 -080026 <step name="Verify-App" requires="^" delay="5"
Thomas Vachuska0cec5482015-12-10 13:40:07 -080027 exec="onos ${OCI} scr:details org.test.app.AppComponent"
28 FIXME="onos-check-components ${OCI} org.test.app.AppComponent"/>
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070029
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 Vachuska18571b02015-05-31 22:30:06 -070032 <step name="Build-App-With-CLI" requires="^"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070033 exec="mvn clean install"/>
Thomas Vachuska18571b02015-05-31 22:30:06 -070034 <step name="Reinstall-App-With-CLI" requires="^,~Verify-App"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070035 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
Thomas Vachuska731193d2015-12-10 11:41:46 -080036 <step name="Verify-CLI" requires="^" delay="2"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070037 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 Vachuska18571b02015-05-31 22:30:06 -070041 <step name="Build-App-With-UI" requires="^"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070042 exec="mvn clean install"/>
Thomas Vachuska18571b02015-05-31 22:30:06 -070043 <step name="Reinstall-App-With-UI" requires="^,~Verify-CLI"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070044 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
Thomas Vachuska731193d2015-12-10 11:41:46 -080045 <step name="Verify-UI" requires="^" delay="2"
Thomas Vachuska87e50d92015-09-28 13:33:07 -070046 exec="onos-check-views ${OCI} id=sample"/>
Thomas Vachuska2b0fc462015-09-28 12:04:06 -070047
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 Vachuska731193d2015-12-10 11:41:46 -080054 <step name="Verify-UI-Table" requires="^" delay="2"
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070055 exec="onos-check-views ${OCI} id=sample"/>
56
Thomas Vachuska76679752015-09-29 13:14:53 -070057 <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 Vachuska731193d2015-12-10 11:41:46 -080063 <step name="Verify-UI-Topo" requires="^" delay="2"
Thomas Vachuska76679752015-09-29 13:14:53 -070064 exec="onos-check-views ${OCI} id=sample"/>
Thomas Vachuska2b0fc462015-09-28 12:04:06 -070065
Thomas Vachuska36be65f2015-12-08 12:36:15 -080066 <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 Vachuska731193d2015-12-10 11:41:46 -080072 <step name="Verify-REST-CLI" requires="^" delay="2"
73 exec="onos ${OCI} sample"/>
Thomas Vachuska664f29e2015-12-08 12:58:16 -080074 <step name="Verify-REST-App" requires="^" delay="2"
Thomas Vachuska36be65f2015-12-08 12:36:15 -080075 exec="curl --fail -isS --user ${ONOS_WEB_USER}:${ONOS_WEB_PASS} http://${OCI}:8181/onos/test-app/sample"/>
76
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070077 <step name="Uninstall-App" requires="^"
78 exec="onos-app ${OCI} uninstall org.foo.app"/>
Thomas Vachuskae965b3d2016-03-03 11:42:48 -080079
80 <parallel var="${OC#}">
Thomas Vachuska283a7852016-06-06 11:34:26 -070081 <step name="Archetypes-Check-Logs-${#}" requires="Uninstall-App"
82 exec="onos-check-logs ${OC#}"/>
Thomas Vachuskae965b3d2016-03-03 11:42:48 -080083 </parallel>
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070084 </group>
85</scenario>