blob: 8244a32f2002a5c614c59b27851a7cc40065a323 [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="^"
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 Vachuska4bfccd542015-05-30 00:35:25 -070049 </group>
50</scenario>