blob: 0ca8de692f4cf8f6250ffdd27b57d25d2cae6f1b [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>
34 <expected-error>Conflicting primary keys for vertices with label 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">
45 <test-case FilePath="graphix">
46 <compilation-unit name="dangling-vertices">
47 <output-dir compare="Text">dangling-vertices</output-dir>
48 </compilation-unit>
49 </test-case>
50 </test-group>
51 <test-group name="fixed-sub-path">
52 <test-case FilePath="graphix">
53 <compilation-unit name="fixed-sub-path">
54 <output-dir compare="Text">fixed-sub-path</output-dir>
55 </compilation-unit>
56 </test-case>
57 </test-group>
58 <test-group name="graph-isomorphism">
59 <test-case FilePath="graphix">
60 <compilation-unit name="graph-isomorphism">
61 <output-dir compare="Text">graph-isomorphism</output-dir>
62 </compilation-unit>
63 </test-case>
64 </test-group>
65 <test-group name="graphix-functions">
66 <test-case FilePath="graphix">
67 <compilation-unit name="graphix-functions">
68 <output-dir compare="Text">graphix-functions</output-dir>
69 </compilation-unit>
70 </test-case>
71 </test-group>
72 <test-group name="inference-resolution">
73 <test-case FilePath="graphix">
74 <compilation-unit name="inference-resolution">
75 <output-dir compare="Text">inference-resolution</output-dir>
76 </compilation-unit>
77 </test-case>
78 </test-group>
79 <test-group name="left-match">
80 <test-case FilePath="graphix">
81 <compilation-unit name="left-match">
82 <output-dir compare="Text">left-match</output-dir>
83 </compilation-unit>
84 </test-case>
85 </test-group>
86 <test-group name="minimal-resolution">
87 <test-case FilePath="graphix" check-warnings="true">
88 <compilation-unit name="minimal-resolution">
89 <output-dir compare="Text">minimal-resolution</output-dir>
90 <expected-warn>Vertex label could not be resolved. Assuming that vertex $n has all schema labels.</expected-warn>
91 <expected-warn>Vertex label could not be resolved. Assuming that vertex $m has all schema labels.</expected-warn>
92 <expected-warn>Vertex label could not be resolved. Assuming that vertex $n has all schema labels.</expected-warn>
93 </compilation-unit>
94 </test-case>
95 </test-group>
96 <test-group name="on-query-error">
97 <test-case FilePath="graphix">
98 <compilation-unit name="on-query-error">
99 <output-dir compare="Text">on-query-error</output-dir>
100 <expected-error>Vertex $v defined with a label more than once. Labels can only be bound to vertices once.</expected-error>
101 <expected-error>Edge $e defined more than once. Edges can only connect two vertices.</expected-error>
102 <expected-error>Vertex label NonExistentLabel does not exist in the given graph schema.</expected-error>
103 <expected-error>Edge label NON_EXISTENT_EDGE does not exist in the given graph schema.</expected-error>
104 <expected-error>Query edge given, but no edge is defined in the schema.</expected-error>
105 <expected-error>Sub-path edges cannot have a hop length less than 1.</expected-error>
106 <expected-error>Sub-path edges cannot have a maximum hop length (2) less than the minimum hop length (4).</expected-error>
107 <expected-error>Conflicting primary keys for vertices with label Vertex1</expected-error>
108 <expected-error>Cannot resolve alias reference for undefined identifier invalidVariable</expected-error>
109 <expected-error>Cannot resolve alias reference for undefined identifier invalidVariable</expected-error>
110 <expected-error>Cannot resolve alias reference for undefined identifier invalidVariable</expected-error>
111 </compilation-unit>
112 </test-case>
113 </test-group>
114 <test-group name="path-variable">
115 <test-case FilePath="graphix">
116 <compilation-unit name="path-variable">
117 <output-dir compare="Text">path-variable</output-dir>
118 </compilation-unit>
119 </test-case>
120 </test-group>
121 <test-group name="scope-checking">
122 <test-case FilePath="graphix">
123 <compilation-unit name="scope-checking">
124 <output-dir compare="Text">scope-checking</output-dir>
125 </compilation-unit>
126 </test-case>
127 </test-group>
128 <test-group name="simple-1-edge">
129 <test-case FilePath="graphix">
130 <compilation-unit name="simple-1-edge">
131 <output-dir compare="Text">simple-1-edge</output-dir>
132 </compilation-unit>
133 </test-case>
134 </test-group>
135 <test-group name="simple-n-edge">
136 <test-case FilePath="graphix">
137 <compilation-unit name="simple-n-edge">
138 <output-dir compare="Text">simple-n-edge</output-dir>
139 </compilation-unit>
140 </test-case>
141 </test-group>
142 <test-group name="variable-sub-path">
143 <test-case FilePath="graphix">
144 <compilation-unit name="variable-sub-path">
145 <output-dir compare="Text">variable-sub-path</output-dir>
ggalvizoab83c3b2021-12-22 14:15:50 -0800146 </compilation-unit>
147 </test-case>
148 </test-group>
149</test-suite>