blob: c84685b5dd7250a33dcf574b78db84e08dfb6836 [file] [log] [blame]
Thomas Vachuska4bfccd542015-05-30 00:35:25 -07001<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 ~ Copyright 2015-present Open Networking Foundation
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"/>
Jon Hall880b4e52017-02-16 16:13:38 -080026 <group name="Verify-App"
27 requires="Install-App" delay="5" >
28 <parallel var="${OC#}">
29 <step name="Verify-App-${#}"
Thomas Vachuska64b0ade2018-11-01 15:26:26 -070030 exec="onos ${OC#} scr:info org.test.app.AppComponent"/>
Jon Hall880b4e52017-02-16 16:13:38 -080031 </parallel>
32 </group>
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070033
34 <step name="Create-App-CLI-Overlay" requires="Install-App"
35 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 -070036 <step name="Build-App-With-CLI" requires="^"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070037 exec="mvn clean install"/>
Thomas Vachuska18571b02015-05-31 22:30:06 -070038 <step name="Reinstall-App-With-CLI" requires="^,~Verify-App"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070039 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
Jon Hall880b4e52017-02-16 16:13:38 -080040 <group name="Verify-CLI"
41 requires="Reinstall-App-With-CLI" delay="2" >
42 <parallel var="${OC#}">
43 <step name="Verify-CLI-${#}"
44 exec="onos ${OC#} sample" include="Hello World"/>
45 </parallel>
46 </group>
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070047
48 <step name="Create-App-UI-Overlay" requires="Reinstall-App-With-CLI"
49 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 -070050 <step name="Build-App-With-UI" requires="^"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070051 exec="mvn clean install"/>
Thomas Vachuska18571b02015-05-31 22:30:06 -070052 <step name="Reinstall-App-With-UI" requires="^,~Verify-CLI"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070053 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
Jon Hall880b4e52017-02-16 16:13:38 -080054 <group name="Verify-UI"
55 requires="Reinstall-App-With-UI" delay="2" >
56 <parallel var="${OC#}">
57 <step name="Verify-UI-${#}"
58 exec="onos-check-views ${OC#} id=sample"/>
59 </parallel>
60 </group>
Thomas Vachuska2b0fc462015-09-28 12:04:06 -070061
62 <step name="Create-App-UI-Table-Overlay" requires="Reinstall-App-With-UI"
63 exec="onos-create-app uitab org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
64 <step name="Build-App-With-UI-Table" requires="^"
65 exec="mvn clean install"/>
66 <step name="Reinstall-App-With-UI-Table" requires="^,~Verify-UI"
67 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
Jon Hall880b4e52017-02-16 16:13:38 -080068 <group name="Verify-UI-Table"
69 requires="Reinstall-App-With-UI-Table" delay="2" >
70 <parallel var="${OC#}">
71 <step name="Verify-UI-Table-${#}"
72 exec="onos-check-views ${OC#} id=sample"/>
73 </parallel>
74 </group>
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070075
Thomas Vachuska76679752015-09-29 13:14:53 -070076 <step name="Create-App-UI-Topo-Overlay" requires="Reinstall-App-With-UI-Table"
77 exec="onos-create-app uitopo org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
78 <step name="Build-App-With-UI-Topo" requires="^"
79 exec="mvn clean install"/>
80 <step name="Reinstall-App-With-UI-Topo" requires="^,~Verify-UI-Table"
81 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
Jon Hall880b4e52017-02-16 16:13:38 -080082 <group name="Verify-UI-Topo"
83 requires="Reinstall-App-With-UI-Topo" delay="2" >
84 <parallel var="${OC#}">
85 <step name="Verify-UI-Topo-${#}"
86 exec="onos-check-views ${OC#} id=sample"/>
87 </parallel>
88 </group>
Thomas Vachuska2b0fc462015-09-28 12:04:06 -070089
Jon Hall880b4e52017-02-16 16:13:38 -080090 <step name="Create-REST-Overlay" requires="Verify-UI-Topo"
Thomas Vachuska36be65f2015-12-08 12:36:15 -080091 exec="onos-create-app rest org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
92 <step name="Build-REST-App" requires="^"
93 exec="mvn clean install"/>
94 <step name="Install-REST-App" requires="^,~Verify-UI-Topo"
95 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
Ray Milkey1ad9a632017-03-20 14:20:40 -070096 <group name="Check-REST-App" >
97 <parallel var="${OC#}">
98 <step name="Check-REST-Apps-${#}"
99 requires="Install-REST-App"
100 exec="onos-check-apps ${OC#} org.foo.app includes"/>
101 </parallel>
102 </group>
Jon Hall880b4e52017-02-16 16:13:38 -0800103 <group name="Verify-REST"
Ray Milkey1ad9a632017-03-20 14:20:40 -0700104 requires="Install-REST-App,Check-REST-App" delay="2" >
Jon Hall880b4e52017-02-16 16:13:38 -0800105 <parallel var="${OC#}">
106 <step name="Verify-REST-CLI-${#}"
107 exec="onos ${OC#} sample" include="Hello World"/>
108 <step name="Verify-REST-App-${#}"
109 exec="curl-with-retry http://${OC#}:8181/onos/test-app/sample"
110 include="{&quot;hello&quot;:&quot;world&quot;}"/>
111 </parallel>
112 </group>
Thomas Vachuska36be65f2015-12-08 12:36:15 -0800113
Jon Hall880b4e52017-02-16 16:13:38 -0800114 <step name="Uninstall-App" requires="Verify-REST"
Thomas Vachuska4cfcc562015-06-03 09:51:02 -0700115 exec="onos-app ${OCI} uninstall org.foo.app"/>
Thomas Vachuskae965b3d2016-03-03 11:42:48 -0800116
117 <parallel var="${OC#}">
Thomas Vachuska283a7852016-06-06 11:34:26 -0700118 <step name="Archetypes-Check-Logs-${#}" requires="Uninstall-App"
119 exec="onos-check-logs ${OC#}"/>
Thomas Vachuskae965b3d2016-03-03 11:42:48 -0800120 </parallel>
Thomas Vachuska4bfccd542015-05-30 00:35:25 -0700121 </group>
122</scenario>