blob: a5ea9fcf51c301c8eedd97d4bc0ce72dd8809c61 [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">
ggalvizo08eab6f2022-04-15 15:22:00 -070023 <test-group name="create-drop-error">
ggalvizoab83c3b2021-12-22 14:15:50 -080024 <test-case FilePath="graphix">
ggalvizo08eab6f2022-04-15 15:22:00 -070025 <compilation-unit name="create-drop-error">
26 <output-dir compare="Text">create-drop-error</output-dir>
27 <expected-error>Cannot drop DATASET TestDataverse.GenericDataset being used by GRAPH TestDataverse.TestGraph</expected-error>
28 <expected-error>Cannot drop FUNCTION TestDataverse.TestFunction() being used by GRAPH TestDataverse.TestGraph</expected-error>
29 <expected-error>Cannot drop DATASET TestDataverse.TestView being used by GRAPH TestDataverse.TestGraph</expected-error>
30 <expected-error>Cannot drop SYNONYM TestDataverse.DatasetSynonym being used by GRAPH TestDataverse.TestGraph</expected-error>
31 <expected-error>Cannot drop dataverse: DATASET TestDataverse2.GenericDataset being used by GRAPH TestDataverse.TestGraph</expected-error>
ggalvizoab83c3b2021-12-22 14:15:50 -080032 <expected-error>Bad definition for a graph element(.)*Cannot find dataset DatasetThatDoesNotExist in dataverse TestDataverse nor an alias with name DatasetThatDoesNotExist</expected-error>
33 <expected-error>Bad definition for a graph element(.)*Cannot resolve ambiguous alias reference for identifier V</expected-error>
ggalvizo02256452022-06-14 19:18:50 -070034 <expected-error>Conflicting vertex label found: Vertex1</expected-error>
ggalvizo08eab6f2022-04-15 15:22:00 -070035 <expected-error>Destination vertex Vertex3 not found in the edge EDGE_1</expected-error>
36 <expected-error>Graph TestGraph already exists</expected-error>
37 <expected-error>Graph GraphThatDoesntExist2 does not exist</expected-error>
38 <expected-error>Cannot drop GRAPH TestDataverse.TestGraph being used by VIEW TestDataverse.TestView</expected-error>
39 <expected-error>Cannot drop GRAPH TestDataverse.TestGraph being used by FUNCTION TestDataverse.TestFunction</expected-error>
40 <expected-error>Cannot drop GRAPH TestDataverse.TestGraph being used by GRAPH TestDataverse.TestGraph2</expected-error>
41 </compilation-unit>
42 </test-case>
43 </test-group>
44 <test-group name="dangling-vertices">
ggalvizo02256452022-06-14 19:18:50 -070045 <test-case FilePath="graphix" check-warnings="true">
ggalvizo08eab6f2022-04-15 15:22:00 -070046 <compilation-unit name="dangling-vertices">
47 <output-dir compare="Text">dangling-vertices</output-dir>
ggalvizo02256452022-06-14 19:18:50 -070048 <expected-warn>Potential disconnected pattern encountered! A CROSS-JOIN has been introduced.</expected-warn>
ggalvizo08eab6f2022-04-15 15:22:00 -070049 </compilation-unit>
50 </test-case>
51 </test-group>
52 <test-group name="fixed-sub-path">
53 <test-case FilePath="graphix">
54 <compilation-unit name="fixed-sub-path">
55 <output-dir compare="Text">fixed-sub-path</output-dir>
56 </compilation-unit>
57 </test-case>
58 </test-group>
59 <test-group name="graph-isomorphism">
60 <test-case FilePath="graphix">
61 <compilation-unit name="graph-isomorphism">
62 <output-dir compare="Text">graph-isomorphism</output-dir>
63 </compilation-unit>
64 </test-case>
65 </test-group>
66 <test-group name="graphix-functions">
67 <test-case FilePath="graphix">
68 <compilation-unit name="graphix-functions">
69 <output-dir compare="Text">graphix-functions</output-dir>
70 </compilation-unit>
71 </test-case>
72 </test-group>
73 <test-group name="inference-resolution">
ggalvizo02256452022-06-14 19:18:50 -070074 <test-case FilePath="graphix" check-warnings="true">
ggalvizo08eab6f2022-04-15 15:22:00 -070075 <compilation-unit name="inference-resolution">
76 <output-dir compare="Text">inference-resolution</output-dir>
77 </compilation-unit>
78 </test-case>
79 </test-group>
80 <test-group name="left-match">
81 <test-case FilePath="graphix">
82 <compilation-unit name="left-match">
83 <output-dir compare="Text">left-match</output-dir>
84 </compilation-unit>
85 </test-case>
86 </test-group>
ggalvizo08eab6f2022-04-15 15:22:00 -070087 <test-group name="on-query-error">
88 <test-case FilePath="graphix">
89 <compilation-unit name="on-query-error">
90 <output-dir compare="Text">on-query-error</output-dir>
91 <expected-error>Vertex $v defined with a label more than once. Labels can only be bound to vertices once.</expected-error>
92 <expected-error>Edge $e defined more than once. Edges can only connect two vertices.</expected-error>
93 <expected-error>Vertex label NonExistentLabel does not exist in the given graph schema.</expected-error>
94 <expected-error>Edge label NON_EXISTENT_EDGE does not exist in the given graph schema.</expected-error>
95 <expected-error>Query edge given, but no edge is defined in the schema.</expected-error>
96 <expected-error>Sub-path edges cannot have a hop length less than 1.</expected-error>
97 <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 -070098 <expected-error>Conflicting vertex label found: Vertex1</expected-error>
ggalvizo08eab6f2022-04-15 15:22:00 -070099 <expected-error>Cannot resolve alias reference for undefined identifier invalidVariable</expected-error>
100 <expected-error>Cannot resolve alias reference for undefined identifier invalidVariable</expected-error>
101 <expected-error>Cannot resolve alias reference for undefined identifier invalidVariable</expected-error>
102 </compilation-unit>
103 </test-case>
104 </test-group>
105 <test-group name="path-variable">
106 <test-case FilePath="graphix">
107 <compilation-unit name="path-variable">
108 <output-dir compare="Text">path-variable</output-dir>
109 </compilation-unit>
110 </test-case>
111 </test-group>
112 <test-group name="scope-checking">
113 <test-case FilePath="graphix">
114 <compilation-unit name="scope-checking">
115 <output-dir compare="Text">scope-checking</output-dir>
116 </compilation-unit>
117 </test-case>
118 </test-group>
119 <test-group name="simple-1-edge">
120 <test-case FilePath="graphix">
121 <compilation-unit name="simple-1-edge">
122 <output-dir compare="Text">simple-1-edge</output-dir>
123 </compilation-unit>
124 </test-case>
125 </test-group>
126 <test-group name="simple-n-edge">
127 <test-case FilePath="graphix">
128 <compilation-unit name="simple-n-edge">
129 <output-dir compare="Text">simple-n-edge</output-dir>
130 </compilation-unit>
131 </test-case>
132 </test-group>
133 <test-group name="variable-sub-path">
134 <test-case FilePath="graphix">
135 <compilation-unit name="variable-sub-path">
136 <output-dir compare="Text">variable-sub-path</output-dir>
ggalvizoab83c3b2021-12-22 14:15:50 -0800137 </compilation-unit>
138 </test-case>
139 </test-group>
140</test-suite>