Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | ~ Copyright 2015-present Open Networking Foundation |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 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 Vachuska | 969d6bc | 2015-07-29 11:56:57 -0700 | [diff] [blame] | 16 | <scenario name="archetypes" description="ONOS archetypes test"> |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 17 | <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 Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 21 | <step name="Create-App" cwd="${WORKSPACE}/tmp" requires="^" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 22 | 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 Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 24 | <step name="Install-App" requires="^" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 25 | exec="onos-app ${OCI} install! target/test-app-1.2.3.oar"/> |
Jon Hall | 880b4e5 | 2017-02-16 16:13:38 -0800 | [diff] [blame] | 26 | <group name="Verify-App" |
| 27 | requires="Install-App" delay="5" > |
| 28 | <parallel var="${OC#}"> |
| 29 | <step name="Verify-App-${#}" |
Thomas Vachuska | 64b0ade | 2018-11-01 15:26:26 -0700 | [diff] [blame] | 30 | exec="onos ${OC#} scr:info org.test.app.AppComponent"/> |
Jon Hall | 880b4e5 | 2017-02-16 16:13:38 -0800 | [diff] [blame] | 31 | </parallel> |
| 32 | </group> |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 33 | |
| 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 Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 36 | <step name="Build-App-With-CLI" requires="^" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 37 | exec="mvn clean install"/> |
Thomas Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 38 | <step name="Reinstall-App-With-CLI" requires="^,~Verify-App" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 39 | exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/> |
Jon Hall | 880b4e5 | 2017-02-16 16:13:38 -0800 | [diff] [blame] | 40 | <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 Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 47 | |
| 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 Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 50 | <step name="Build-App-With-UI" requires="^" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 51 | exec="mvn clean install"/> |
Thomas Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 52 | <step name="Reinstall-App-With-UI" requires="^,~Verify-CLI" |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 53 | exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/> |
Jon Hall | 880b4e5 | 2017-02-16 16:13:38 -0800 | [diff] [blame] | 54 | <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 Vachuska | 2b0fc46 | 2015-09-28 12:04:06 -0700 | [diff] [blame] | 61 | |
| 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 Hall | 880b4e5 | 2017-02-16 16:13:38 -0800 | [diff] [blame] | 68 | <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 Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 75 | |
Thomas Vachuska | 7667975 | 2015-09-29 13:14:53 -0700 | [diff] [blame] | 76 | <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 Hall | 880b4e5 | 2017-02-16 16:13:38 -0800 | [diff] [blame] | 82 | <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 Vachuska | 2b0fc46 | 2015-09-28 12:04:06 -0700 | [diff] [blame] | 89 | |
Jon Hall | 880b4e5 | 2017-02-16 16:13:38 -0800 | [diff] [blame] | 90 | <step name="Create-REST-Overlay" requires="Verify-UI-Topo" |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 91 | 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"/> |
Thomas Vachuska | 0f9c124 | 2018-11-21 10:16:54 -0800 | [diff] [blame] | 96 | <group name="Verify-REST" requires="Install-REST-App" delay="2" > |
Jon Hall | 880b4e5 | 2017-02-16 16:13:38 -0800 | [diff] [blame] | 97 | <parallel var="${OC#}"> |
| 98 | <step name="Verify-REST-CLI-${#}" |
| 99 | exec="onos ${OC#} sample" include="Hello World"/> |
| 100 | <step name="Verify-REST-App-${#}" |
| 101 | exec="curl-with-retry http://${OC#}:8181/onos/test-app/sample" |
| 102 | include="{"hello":"world"}"/> |
| 103 | </parallel> |
| 104 | </group> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 105 | |
Jon Hall | 880b4e5 | 2017-02-16 16:13:38 -0800 | [diff] [blame] | 106 | <step name="Uninstall-App" requires="Verify-REST" |
Thomas Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 107 | exec="onos-app ${OCI} uninstall org.foo.app"/> |
Thomas Vachuska | e965b3d | 2016-03-03 11:42:48 -0800 | [diff] [blame] | 108 | |
| 109 | <parallel var="${OC#}"> |
Thomas Vachuska | 283a785 | 2016-06-06 11:34:26 -0700 | [diff] [blame] | 110 | <step name="Archetypes-Check-Logs-${#}" requires="Uninstall-App" |
| 111 | exec="onos-check-logs ${OC#}"/> |
Thomas Vachuska | e965b3d | 2016-03-03 11:42:48 -0800 | [diff] [blame] | 112 | </parallel> |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 113 | </group> |
| 114 | </scenario> |