blob: 1dc3b415cd4ef17690cc1ca1e61e615f376eed93 [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"/>
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-${#}"
30 exec="onos ${OC#} scr:details org.test.app.AppComponent"
31 FIXME="onos-check-components ${OC#} org.test.app.AppComponent"/>
32 </parallel>
33 </group>
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070034
35 <step name="Create-App-CLI-Overlay" requires="Install-App"
36 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 -070037 <step name="Build-App-With-CLI" requires="^"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070038 exec="mvn clean install"/>
Thomas Vachuska18571b02015-05-31 22:30:06 -070039 <step name="Reinstall-App-With-CLI" requires="^,~Verify-App"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070040 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
Jon Hall880b4e52017-02-16 16:13:38 -080041 <group name="Verify-CLI"
42 requires="Reinstall-App-With-CLI" delay="2" >
43 <parallel var="${OC#}">
44 <step name="Verify-CLI-${#}"
45 exec="onos ${OC#} sample" include="Hello World"/>
46 </parallel>
47 </group>
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070048
49 <step name="Create-App-UI-Overlay" requires="Reinstall-App-With-CLI"
50 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 -070051 <step name="Build-App-With-UI" requires="^"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070052 exec="mvn clean install"/>
Thomas Vachuska18571b02015-05-31 22:30:06 -070053 <step name="Reinstall-App-With-UI" requires="^,~Verify-CLI"
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070054 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
Jon Hall880b4e52017-02-16 16:13:38 -080055 <group name="Verify-UI"
56 requires="Reinstall-App-With-UI" delay="2" >
57 <parallel var="${OC#}">
58 <step name="Verify-UI-${#}"
59 exec="onos-check-views ${OC#} id=sample"/>
60 </parallel>
61 </group>
Thomas Vachuska2b0fc462015-09-28 12:04:06 -070062
63 <step name="Create-App-UI-Table-Overlay" requires="Reinstall-App-With-UI"
64 exec="onos-create-app uitab org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
65 <step name="Build-App-With-UI-Table" requires="^"
66 exec="mvn clean install"/>
67 <step name="Reinstall-App-With-UI-Table" requires="^,~Verify-UI"
68 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
Jon Hall880b4e52017-02-16 16:13:38 -080069 <group name="Verify-UI-Table"
70 requires="Reinstall-App-With-UI-Table" delay="2" >
71 <parallel var="${OC#}">
72 <step name="Verify-UI-Table-${#}"
73 exec="onos-check-views ${OC#} id=sample"/>
74 </parallel>
75 </group>
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070076
Thomas Vachuska76679752015-09-29 13:14:53 -070077 <step name="Create-App-UI-Topo-Overlay" requires="Reinstall-App-With-UI-Table"
78 exec="onos-create-app uitopo org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
79 <step name="Build-App-With-UI-Topo" requires="^"
80 exec="mvn clean install"/>
81 <step name="Reinstall-App-With-UI-Topo" requires="^,~Verify-UI-Table"
82 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
Jon Hall880b4e52017-02-16 16:13:38 -080083 <group name="Verify-UI-Topo"
84 requires="Reinstall-App-With-UI-Topo" delay="2" >
85 <parallel var="${OC#}">
86 <step name="Verify-UI-Topo-${#}"
87 exec="onos-check-views ${OC#} id=sample"/>
88 </parallel>
89 </group>
Thomas Vachuska2b0fc462015-09-28 12:04:06 -070090
Jon Hall880b4e52017-02-16 16:13:38 -080091 <step name="Create-REST-Overlay" requires="Verify-UI-Topo"
Thomas Vachuska36be65f2015-12-08 12:36:15 -080092 exec="onos-create-app rest org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
93 <step name="Build-REST-App" requires="^"
94 exec="mvn clean install"/>
95 <step name="Install-REST-App" requires="^,~Verify-UI-Topo"
96 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
Ray Milkey1ad9a632017-03-20 14:20:40 -070097 <group name="Check-REST-App" >
98 <parallel var="${OC#}">
99 <step name="Check-REST-Apps-${#}"
100 requires="Install-REST-App"
101 exec="onos-check-apps ${OC#} org.foo.app includes"/>
102 </parallel>
103 </group>
Jon Hall880b4e52017-02-16 16:13:38 -0800104 <group name="Verify-REST"
Ray Milkey1ad9a632017-03-20 14:20:40 -0700105 requires="Install-REST-App,Check-REST-App" delay="2" >
Jon Hall880b4e52017-02-16 16:13:38 -0800106 <parallel var="${OC#}">
107 <step name="Verify-REST-CLI-${#}"
108 exec="onos ${OC#} sample" include="Hello World"/>
109 <step name="Verify-REST-App-${#}"
110 exec="curl-with-retry http://${OC#}:8181/onos/test-app/sample"
111 include="{&quot;hello&quot;:&quot;world&quot;}"/>
112 </parallel>
113 </group>
Thomas Vachuska36be65f2015-12-08 12:36:15 -0800114
Jon Hall880b4e52017-02-16 16:13:38 -0800115 <step name="Uninstall-App" requires="Verify-REST"
Thomas Vachuska4cfcc562015-06-03 09:51:02 -0700116 exec="onos-app ${OCI} uninstall org.foo.app"/>
Thomas Vachuskae965b3d2016-03-03 11:42:48 -0800117
118 <parallel var="${OC#}">
Thomas Vachuska283a7852016-06-06 11:34:26 -0700119 <step name="Archetypes-Check-Logs-${#}" requires="Uninstall-App"
120 exec="onos-check-logs ${OC#}"/>
Thomas Vachuskae965b3d2016-03-03 11:42:48 -0800121 </parallel>
Thomas Vachuska4bfccd542015-05-30 00:35:25 -0700122 </group>
123</scenario>