blob: 5f130e991aa252b91d1a8beb6249e0666d430b4b [file] [log] [blame]
Steven Glenn Jacobs39826042017-03-28 20:28:27 -07001<!--
2 ! Licensed to the Apache Software Foundation (ASF) under one
3 ! or more contributor license agreements. See the NOTICE file
4 ! distributed with this work for additional information
5 ! regarding copyright ownership. The ASF licenses this file
6 ! to you under the Apache License, Version 2.0 (the
7 ! "License"); you may not use this file except in compliance
8 ! with the License. You may obtain a copy of the License at
9 !
10 ! http://www.apache.org/licenses/LICENSE-2.0
11 !
12 ! Unless required by applicable law or agreed to in writing,
13 ! software distributed under the License is distributed on an
14 ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 ! KIND, either express or implied. See the License for the
16 ! specific language governing permissions and limitations
17 ! under the License.
18 !-->
Steven Glenn Jacobsf73ca842016-09-14 12:42:28 -070019<test-suite xmlns="urn:xml.testframework.asterix.apache.org"
20 ResultOffsetPath="results"
21 QueryOffsetPath="queries"
Steven Glenn Jacobs55514042017-04-19 15:54:13 -070022 QueryFileExtension=".sqlpp">
Xikui Wang9d26e072020-08-20 21:18:04 -070023 <test-group name="procedure">
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -080024 <test-case FilePath="procedure">
Steven Glenn Jacobs5b870652018-01-19 19:52:51 -080025 <compilation-unit name="create_procedure_check_metadata">
26 <output-dir compare="Text">create_procedure_check_metadata</output-dir>
27 </compilation-unit>
28 </test-case>
29 <test-case FilePath="procedure">
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -080030 <compilation-unit name="delete_procedure">
31 <output-dir compare="Text">delete_procedure</output-dir>
32 </compilation-unit>
Steven Glenn Jacobsf73ca842016-09-14 12:42:28 -070033 </test-case>
Steven Glenn Jacobs79226b52017-02-23 21:13:42 -080034 <test-case FilePath="procedure">
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -080035 <compilation-unit name="delete_procedure_with_parameters">
36 <output-dir compare="Text">delete_procedure_with_parameters</output-dir>
37 </compilation-unit>
Steven Glenn Jacobs79226b52017-02-23 21:13:42 -080038 </test-case>
39 <test-case FilePath="procedure">
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -080040 <compilation-unit name="query_procedure">
41 <output-dir compare="Text">query_procedure</output-dir>
42 </compilation-unit>
Steven Glenn Jacobs79226b52017-02-23 21:13:42 -080043 </test-case>
44 <test-case FilePath="procedure">
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -080045 <compilation-unit name="query_procedure_with_parameters">
46 <output-dir compare="Text">query_procedure_with_parameters</output-dir>
47 </compilation-unit>
Steven Glenn Jacobs79226b52017-02-23 21:13:42 -080048 </test-case>
49 <test-case FilePath="procedure">
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -080050 <compilation-unit name="insert_procedure">
51 <output-dir compare="Text">insert_procedure</output-dir>
52 </compilation-unit>
53 </test-case>
54 <test-case FilePath="procedure">
55 <compilation-unit name="concurrent_procedure">
56 <output-dir compare="Text">concurrent_procedure</output-dir>
57 </compilation-unit>
58 </test-case>
59 <test-case FilePath="procedure">
Steven Glenn Jacobs5b870652018-01-19 19:52:51 -080060 <compilation-unit name="insert_procedure_drop_dataset">
61 <output-dir compare="Text">insert_procedure_drop_dataset</output-dir>
62 <expected-error>Cannot alter dataset channels.UserLocations. two.addMe(Procedure) depends on it!</expected-error>
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -080063 </compilation-unit>
Steven Glenn Jacobs79226b52017-02-23 21:13:42 -080064 </test-case>
Steven Glenn Jacobs5b870652018-01-19 19:52:51 -080065 <test-case FilePath="procedure">
66 <compilation-unit name="insert_procedure_drop_dataverse">
67 <output-dir compare="Text">insert_procedure_drop_dataverse</output-dir>
68 <expected-error>Cannot drop dataverse channels. two.addMe(Procedure) depends on it!</expected-error>
69 </compilation-unit>
70 </test-case>
71 <test-case FilePath="procedure">
72 <compilation-unit name="delete_procedure_drop_dataset">
73 <output-dir compare="Text">delete_procedure_drop_dataset</output-dir>
74 <expected-error>Cannot alter dataset channels.UserLocations. two.deleteAll(Procedure) depends on it!</expected-error>
75 </compilation-unit>
76 </test-case>
77 <test-case FilePath="procedure">
78 <compilation-unit name="delete_procedure_drop_function">
79 <output-dir compare="Text">delete_procedure_drop_function</output-dir>
80 <expected-error>Cannot drop function two.really_contains@2. two.deleteSome(Procedure) depends on it!</expected-error>
81 </compilation-unit>
82 </test-case>
83 <test-case FilePath="procedure">
84 <compilation-unit name="delete_procedure_drop_index">
85 <output-dir compare="Text">delete_procedure_drop_index</output-dir>
86 <expected-error>Cannot alter dataset channels.UserLocations. two.deleteAll(Procedure) depends on it!</expected-error>
87 </compilation-unit>
88 </test-case>
89 <test-case FilePath="procedure">
90 <compilation-unit name="query_procedure_drop_dataset">
91 <output-dir compare="Text">query_procedure_drop_dataset</output-dir>
92 <expected-error>Cannot alter dataset channels.UserLocations. two.findMe(Procedure) depends on it!</expected-error>
93 </compilation-unit>
94 </test-case>
95 <test-case FilePath="procedure">
96 <compilation-unit name="query_procedure_drop_function">
97 <output-dir compare="Text">query_procedure_drop_function</output-dir>
98 <expected-error>Cannot drop function channels.really_contains@2. two.selectSome(Procedure) depends on it!</expected-error>
99 </compilation-unit>
100 </test-case>
101 <test-case FilePath="procedure">
102 <compilation-unit name="repetitive_insert_procedure">
103 <output-dir compare="Text">repetitive_insert_procedure</output-dir>
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -0800104 </compilation-unit>
Steven Glenn Jacobsf73ca842016-09-14 12:42:28 -0700105 </test-case>
Xikui Wang9d26e072020-08-20 21:18:04 -0700106 </test-group>
107 <test-group name="bad_rq">
108 <test-case FilePath="bad_rq">
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -0800109 <compilation-unit name="create_channel_check_datasets">
110 <output-dir compare="Text">create_channel_check_datasets</output-dir>
111 </compilation-unit>
Steven Glenn Jacobsf73ca842016-09-14 12:42:28 -0700112 </test-case>
Xikui Wang9d26e072020-08-20 21:18:04 -0700113 <test-case FilePath="bad_rq">
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -0800114 <compilation-unit name="create_channel_check_metadata">
115 <output-dir compare="Text">create_channel_check_metadata</output-dir>
116 </compilation-unit>
Steven Glenn Jacobsf73ca842016-09-14 12:42:28 -0700117 </test-case>
Xikui Wang9d26e072020-08-20 21:18:04 -0700118 <test-case FilePath="bad_rq">
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -0800119 <compilation-unit name="drop_channel_check_datasets">
120 <output-dir compare="Text">drop_channel_check_datasets</output-dir>
121 </compilation-unit>
Steven Glenn Jacobsf73ca842016-09-14 12:42:28 -0700122 </test-case>
Xikui Wang9d26e072020-08-20 21:18:04 -0700123 <test-case FilePath="bad_rq">
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -0800124 <compilation-unit name="drop_channel_check_metadata">
125 <output-dir compare="Text">drop_channel_check_metadata</output-dir>
126 </compilation-unit>
Steven Glenn Jacobsf73ca842016-09-14 12:42:28 -0700127 </test-case>
Xikui Wang9d26e072020-08-20 21:18:04 -0700128 <test-case FilePath="bad_rq">
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -0800129 <compilation-unit name="subscribe_channel_check_subscriptions">
130 <output-dir compare="Text">subscribe_channel_check_subscriptions</output-dir>
131 </compilation-unit>
132 </test-case>
Xikui Wang9d26e072020-08-20 21:18:04 -0700133 <test-case FilePath="bad_rq">
Steven Glenn Jacobs5b870652018-01-19 19:52:51 -0800134 <compilation-unit name="drop_function">
135 <output-dir compare="Text">drop_function</output-dir>
136 <expected-error>Cannot drop function channels.NearbyTweetsContainingText@2. two.nearbyTweetChannel(Channel) depends on it!</expected-error>
137 </compilation-unit>
138 </test-case>
Xikui Wang9d26e072020-08-20 21:18:04 -0700139 <test-case FilePath="bad_rq">
Steven Glenn Jacobs0da2d002018-05-07 15:12:18 -0700140 <compilation-unit name="drop_index">
141 <output-dir compare="Text">drop_index</output-dir>
142 <expected-error>Cannot drop index. channels.EmergencyChannel(Channel) depends on it!</expected-error>
143 </compilation-unit>
144 </test-case>
Xikui Wang9d26e072020-08-20 21:18:04 -0700145 <test-case FilePath="bad_rq">
Steven Glenn Jacobs0da2d002018-05-07 15:12:18 -0700146 <compilation-unit name="add_index">
147 <output-dir compare="Text">add_index</output-dir>
148 </compilation-unit>
149 </test-case>
Xikui Wang9d26e072020-08-20 21:18:04 -0700150 <test-case FilePath="bad_rq">
Steven Glenn Jacobs5b870652018-01-19 19:52:51 -0800151 <compilation-unit name="drop_results">
152 <output-dir compare="Text">drop_results</output-dir>
153 <expected-error>Cannot alter dataset two.nearbyTweetChannelResults. two.nearbyTweetChannel(Channel) depends on it!</expected-error>
154 </compilation-unit>
155 </test-case>
Xikui Wang9d26e072020-08-20 21:18:04 -0700156 <test-case FilePath="bad_rq">
Steven Glenn Jacobs5b870652018-01-19 19:52:51 -0800157 <compilation-unit name="drop_subscriptions">
158 <output-dir compare="Text">drop_subscriptions</output-dir>
159 <expected-error>Cannot alter dataset two.nearbyTweetChannelSubscriptions. two.nearbyTweetChannel(Channel) depends on it!</expected-error>
160 </compilation-unit>
161 </test-case>
Xikui Wang9d26e072020-08-20 21:18:04 -0700162 <test-case FilePath="bad_rq">
Steven Glenn Jacobs5b870652018-01-19 19:52:51 -0800163 <compilation-unit name="drop_function_dataverse">
164 <output-dir compare="Text">drop_function_dataverse</output-dir>
165 <expected-error>Cannot drop dataverse channels. two.nearbyTweetChannel(Channel) depends on it!</expected-error>
166 </compilation-unit>
167 </test-case>
Xikui Wang9d26e072020-08-20 21:18:04 -0700168 <test-case FilePath="bad_rq">
Steven Glenn Jacobs5b870652018-01-19 19:52:51 -0800169 <compilation-unit name="room_occupants">
170 <output-dir compare="Text">room_occupants</output-dir>
171 </compilation-unit>
172 </test-case>
Xikui Wang9d26e072020-08-20 21:18:04 -0700173 <test-case FilePath="bad_rq">
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -0800174 <compilation-unit name="disasters_with_friends">
175 <output-dir compare="Text">disasters_with_friends</output-dir>
176 </compilation-unit>
177 </test-case>
Xikui Wang9d26e072020-08-20 21:18:04 -0700178 <test-case FilePath="bad_rq">
Steven Glenn Jacobs8b53ce52017-11-14 10:21:43 -0800179 <compilation-unit name="ten_minute_channel">
180 <output-dir compare="Text">ten_minute_channel</output-dir>
181 </compilation-unit>
182 </test-case>
Steven Glenn Jacobsf73ca842016-09-14 12:42:28 -0700183 </test-group>
Xikui Wang9d26e072020-08-20 21:18:04 -0700184 <test-group name="bad_cq">
185 <test-case FilePath="bad_cq">
186 <compilation-unit name="active_dataset_insert">
187 <output-dir compare="Text">active_dataset_insert</output-dir>
188 </compilation-unit>
189 </test-case>
190 <test-case FilePath="bad_cq">
191 <compilation-unit name="active_dataset_upsert">
192 <output-dir compare="Text">active_dataset_upsert</output-dir>
193 </compilation-unit>
194 </test-case>
195 <test-case FilePath="bad_cq">
196 <compilation-unit name="active_dataset_delete">
197 <output-dir compare="Text">active_dataset_delete</output-dir>
198 </compilation-unit>
199 </test-case>
200 <test-case FilePath="bad_cq">
201 <compilation-unit name="active_feeds">
202 <output-dir compare="Text">active_feeds</output-dir>
203 </compilation-unit>
204 </test-case>
205 <test-case FilePath="bad_cq">
206 <compilation-unit name="active_function_in_udf">
207 <output-dir compare="Text">active_function_in_udf</output-dir>
208 </compilation-unit>
209 </test-case>
210 <test-case FilePath="bad_cq">
211 <compilation-unit name="active_functions">
212 <output-dir compare="Text">active_functions</output-dir>
213 </compilation-unit>
214 </test-case>
215 <test-case FilePath="bad_cq">
216 <compilation-unit name="bad_http_feed">
217 <output-dir compare="Text">bad_http_feed</output-dir>
218 </compilation-unit>
219 </test-case>
220 <test-case FilePath="bad_cq">
221 <compilation-unit name="bad_islands">
222 <output-dir compare="Text">bad_islands</output-dir>
223 </compilation-unit>
224 </test-case>
225 <test-case FilePath="bad_cq">
226 <compilation-unit name="new_tweets_from_area">
227 <output-dir compare="Text">new_tweets_from_area</output-dir>
228 </compilation-unit>
229 </test-case>
230 </test-group>
Steven Glenn Jacobsf73ca842016-09-14 12:42:28 -0700231</test-suite>