blob: 50abf0cbe27cf813d3363be6f926d4792a32a8a8 [file] [log] [blame]
ggalvizoab83c3b2021-12-22 14:15:50 -08001<!--
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 !-->
19<test-suite xmlns="urn:xml.testframework.asterix.apache.org"
20 ResultOffsetPath="results"
21 QueryOffsetPath="queries"
22 QueryFileExtension=".sqlpp">
ggalvizoacd4b5b2022-09-25 14:29:42 -070023 <test-group name="correlated-vertex-join">
24 <test-case FilePath="graphix">
25 <compilation-unit name="correlated-vertex-join">
26 <output-dir compare="Text">correlated-vertex-join</output-dir>
27 </compilation-unit>
28 </test-case>
29 </test-group>
ggalvizo08eab6f2022-04-15 15:22:00 -070030 <test-group name="create-drop-error">
ggalvizoab83c3b2021-12-22 14:15:50 -080031 <test-case FilePath="graphix">
ggalvizo08eab6f2022-04-15 15:22:00 -070032 <compilation-unit name="create-drop-error">
33 <output-dir compare="Text">create-drop-error</output-dir>
34 <expected-error>Cannot drop DATASET TestDataverse.GenericDataset being used by GRAPH TestDataverse.TestGraph</expected-error>
35 <expected-error>Cannot drop FUNCTION TestDataverse.TestFunction() being used by GRAPH TestDataverse.TestGraph</expected-error>
36 <expected-error>Cannot drop DATASET TestDataverse.TestView being used by GRAPH TestDataverse.TestGraph</expected-error>
37 <expected-error>Cannot drop SYNONYM TestDataverse.DatasetSynonym being used by GRAPH TestDataverse.TestGraph</expected-error>
38 <expected-error>Cannot drop dataverse: DATASET TestDataverse2.GenericDataset being used by GRAPH TestDataverse.TestGraph</expected-error>
ggalvizoab83c3b2021-12-22 14:15:50 -080039 <expected-error>Bad definition for a graph element(.)*Cannot find dataset DatasetThatDoesNotExist in dataverse TestDataverse nor an alias with name DatasetThatDoesNotExist</expected-error>
40 <expected-error>Bad definition for a graph element(.)*Cannot resolve ambiguous alias reference for identifier V</expected-error>
ggalvizo02256452022-06-14 19:18:50 -070041 <expected-error>Conflicting vertex label found: Vertex1</expected-error>
ggalvizo08eab6f2022-04-15 15:22:00 -070042 <expected-error>Destination vertex Vertex3 not found in the edge EDGE_1</expected-error>
43 <expected-error>Graph TestGraph already exists</expected-error>
44 <expected-error>Graph GraphThatDoesntExist2 does not exist</expected-error>
45 <expected-error>Cannot drop GRAPH TestDataverse.TestGraph being used by VIEW TestDataverse.TestView</expected-error>
46 <expected-error>Cannot drop GRAPH TestDataverse.TestGraph being used by FUNCTION TestDataverse.TestFunction</expected-error>
47 <expected-error>Cannot drop GRAPH TestDataverse.TestGraph being used by GRAPH TestDataverse.TestGraph2</expected-error>
48 </compilation-unit>
49 </test-case>
50 </test-group>
51 <test-group name="dangling-vertices">
ggalvizoacd4b5b2022-09-25 14:29:42 -070052 <!--<test-case FilePath="graphix" check-warnings="true">-->
53 <test-case FilePath="graphix" check-warnings="false">
ggalvizo08eab6f2022-04-15 15:22:00 -070054 <compilation-unit name="dangling-vertices">
55 <output-dir compare="Text">dangling-vertices</output-dir>
ggalvizoacd4b5b2022-09-25 14:29:42 -070056 <!--<expected-warn>Disconnected pattern encountered! A CROSS-JOIN may been introduced.</expected-warn>-->
57 <!--<expected-warn>Encountered a cross product join</expected-warn>-->
ggalvizo08eab6f2022-04-15 15:22:00 -070058 </compilation-unit>
59 </test-case>
60 </test-group>
61 <test-group name="fixed-sub-path">
62 <test-case FilePath="graphix">
63 <compilation-unit name="fixed-sub-path">
64 <output-dir compare="Text">fixed-sub-path</output-dir>
65 </compilation-unit>
66 </test-case>
67 </test-group>
68 <test-group name="graph-isomorphism">
69 <test-case FilePath="graphix">
70 <compilation-unit name="graph-isomorphism">
71 <output-dir compare="Text">graph-isomorphism</output-dir>
72 </compilation-unit>
73 </test-case>
74 </test-group>
75 <test-group name="graphix-functions">
76 <test-case FilePath="graphix">
77 <compilation-unit name="graphix-functions">
78 <output-dir compare="Text">graphix-functions</output-dir>
79 </compilation-unit>
80 </test-case>
81 </test-group>
ggalvizo08eab6f2022-04-15 15:22:00 -070082 <test-group name="left-match">
83 <test-case FilePath="graphix">
84 <compilation-unit name="left-match">
85 <output-dir compare="Text">left-match</output-dir>
86 </compilation-unit>
87 </test-case>
88 </test-group>
ggalvizo08eab6f2022-04-15 15:22:00 -070089 <test-group name="on-query-error">
90 <test-case FilePath="graphix">
91 <compilation-unit name="on-query-error">
92 <output-dir compare="Text">on-query-error</output-dir>
93 <expected-error>Vertex $v defined with a label more than once. Labels can only be bound to vertices once.</expected-error>
94 <expected-error>Edge $e defined more than once. Edges can only connect two vertices.</expected-error>
95 <expected-error>Vertex label NonExistentLabel does not exist in the given graph schema.</expected-error>
96 <expected-error>Edge label NON_EXISTENT_EDGE does not exist in the given graph schema.</expected-error>
97 <expected-error>Query edge given, but no edge is defined in the schema.</expected-error>
98 <expected-error>Sub-path edges cannot have a hop length less than 1.</expected-error>
99 <expected-error>Sub-path edges cannot have a maximum hop length (2) less than the minimum hop length (4).</expected-error>
ggalvizo02256452022-06-14 19:18:50 -0700100 <expected-error>Conflicting vertex label found: Vertex1</expected-error>
ggalvizo08eab6f2022-04-15 15:22:00 -0700101 <expected-error>Cannot resolve alias reference for undefined identifier invalidVariable</expected-error>
102 <expected-error>Cannot resolve alias reference for undefined identifier invalidVariable</expected-error>
103 <expected-error>Cannot resolve alias reference for undefined identifier invalidVariable</expected-error>
ggalvizoacd4b5b2022-09-25 14:29:42 -0700104 <expected-error>Encountered graph element that does not conform the queried graph schema!</expected-error>
ggalvizo08eab6f2022-04-15 15:22:00 -0700105 </compilation-unit>
106 </test-case>
107 </test-group>
108 <test-group name="path-variable">
109 <test-case FilePath="graphix">
110 <compilation-unit name="path-variable">
111 <output-dir compare="Text">path-variable</output-dir>
112 </compilation-unit>
113 </test-case>
114 </test-group>
ggalvizoacd4b5b2022-09-25 14:29:42 -0700115 <test-group name="schema-resolution">
116 <test-case FilePath="graphix" check-warnings="true">
117 <compilation-unit name="schema-resolution">
118 <output-dir compare="Text">schema-resolution</output-dir>
119 </compilation-unit>
120 </test-case>
121 </test-group>
122 <test-group name="scope-validation">
ggalvizo08eab6f2022-04-15 15:22:00 -0700123 <test-case FilePath="graphix">
ggalvizoacd4b5b2022-09-25 14:29:42 -0700124 <compilation-unit name="scope-validation">
125 <output-dir compare="Text">scope-validation</output-dir>
ggalvizo08eab6f2022-04-15 15:22:00 -0700126 </compilation-unit>
127 </test-case>
128 </test-group>
129 <test-group name="simple-1-edge">
130 <test-case FilePath="graphix">
131 <compilation-unit name="simple-1-edge">
132 <output-dir compare="Text">simple-1-edge</output-dir>
133 </compilation-unit>
134 </test-case>
135 </test-group>
136 <test-group name="simple-n-edge">
137 <test-case FilePath="graphix">
138 <compilation-unit name="simple-n-edge">
139 <output-dir compare="Text">simple-n-edge</output-dir>
140 </compilation-unit>
141 </test-case>
142 </test-group>
143 <test-group name="variable-sub-path">
144 <test-case FilePath="graphix">
145 <compilation-unit name="variable-sub-path">
146 <output-dir compare="Text">variable-sub-path</output-dir>
ggalvizoab83c3b2021-12-22 14:15:50 -0800147 </compilation-unit>
148 </test-case>
149 </test-group>
150</test-suite>