blob: 9a136e3b194141f210285141402333c21f21f0cf [file] [log] [blame]
Thomas Vachuska4bfccd542015-05-30 00:35:25 -07001<!--
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 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 Vachuska18571b02015-05-31 22:30:06 -070026 <step name="Verify-App" requires="^"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070027 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 Vachuska18571b02015-05-31 22:30:06 -070031 <step name="Build-App-With-CLI" requires="^"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070032 exec="mvn clean install"/>
Thomas Vachuska18571b02015-05-31 22:30:06 -070033 <step name="Reinstall-App-With-CLI" requires="^,~Verify-App"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070034 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
Thomas Vachuska18571b02015-05-31 22:30:06 -070035 <step name="Verify-CLI" requires="^"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070036 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 Vachuska18571b02015-05-31 22:30:06 -070040 <step name="Build-App-With-UI" requires="^"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070041 exec="mvn clean install"/>
Thomas Vachuska18571b02015-05-31 22:30:06 -070042 <step name="Reinstall-App-With-UI" requires="^,~Verify-CLI"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070043 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070044 <step name="Verify-UI" requires="^"
Thomas Vachuska87e50d92015-09-28 13:33:07 -070045 exec="onos-check-views ${OCI} id=sample"/>
Thomas Vachuska2b0fc462015-09-28 12:04:06 -070046
47 <step name="Create-App-UI-Table-Overlay" requires="Reinstall-App-With-UI"
48 exec="onos-create-app uitab org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
49 <step name="Build-App-With-UI-Table" requires="^"
50 exec="mvn clean install"/>
51 <step name="Reinstall-App-With-UI-Table" requires="^,~Verify-UI"
52 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
53 <step name="Verify-UI-Table" requires="^"
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070054 exec="onos-check-views ${OCI} id=sample"/>
55
Thomas Vachuska76679752015-09-29 13:14:53 -070056 <step name="Create-App-UI-Topo-Overlay" requires="Reinstall-App-With-UI-Table"
57 exec="onos-create-app uitopo org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
58 <step name="Build-App-With-UI-Topo" requires="^"
59 exec="mvn clean install"/>
60 <step name="Reinstall-App-With-UI-Topo" requires="^,~Verify-UI-Table"
61 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
62 <step name="Verify-UI-Topo" requires="^"
63 exec="onos-check-views ${OCI} id=sample"/>
Thomas Vachuska2b0fc462015-09-28 12:04:06 -070064
Thomas Vachuska36be65f2015-12-08 12:36:15 -080065 <step name="Clean-Up-For-REST-App" cwd="${WORKSPACE}/tmp" env="~" requires="Reinstall-App-With-UI-Topo"
66 exec="rm -r test-app"/>
67
68 <step name="Create-REST-App" cwd="${WORKSPACE}/tmp" requires="^"
69 exec="onos-create-app app org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
70 <step name="Create-REST-Overlay" requires="^"
71 exec="onos-create-app rest org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
72 <step name="Build-REST-App" requires="^"
73 exec="mvn clean install"/>
74 <step name="Install-REST-App" requires="^,~Verify-UI-Topo"
75 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
76 <Xstep name="Verify-REST-App" requires="^" delay="2"
77 exec="curl --fail -isS --user ${ONOS_WEB_USER}:${ONOS_WEB_PASS} http://${OCI}:8181/onos/test-app/sample"/>
78
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070079 <step name="Uninstall-App" requires="^"
80 exec="onos-app ${OCI} uninstall org.foo.app"/>
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070081 </group>
82</scenario>