blob: 5440b55fc5da0ea4530a4855883050d426d91dc2 [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 Vachuska4cfcc562015-06-03 09:51:02 -070065 <step name="Uninstall-App" requires="^"
66 exec="onos-app ${OCI} uninstall org.foo.app"/>
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070067 </group>
68</scenario>