| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one |
| ~ or more contributor license agreements. See the NOTICE file |
| ~ distributed with this work for additional information |
| ~ regarding copyright ownership. The ASF licenses this file |
| ~ to you under the Apache License, Version 2.0 (the |
| ~ "License"); you may not use this file except in compliance |
| ~ with the License. You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, |
| ~ software distributed under the License is distributed on an |
| ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| ~ KIND, either express or implied. See the License for the |
| ~ specific language governing permissions and limitations |
| ~ under the License. |
| --> |
| <test-suite |
| xmlns="urn:xml.testframework.asterix.apache.org" |
| ResultOffsetPath="results" |
| QueryOffsetPath="queries_sqlpp" |
| QueryFileExtension=".sqlpp"> |
| |
| <test-group name="external-library"> |
| <test-case FilePath="external-library"> |
| <compilation-unit name="type_validation"> |
| <output-dir compare="Text">type_validation</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="external-library"> |
| <compilation-unit name="mysum"> |
| <output-dir compare="Text">mysum</output-dir> |
| <expected-error>ASX1002: Type mismatch: function mysum expects its 1st input parameter to be of type integer, but the actual input type is string (in line 21, at column 1)</expected-error> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="external-library"> |
| <compilation-unit name="mysum_bad_credential"> |
| <output-dir compare="Text">mysum_bad_credential</output-dir> |
| <expected-error>HTTP/1.1 401 Unauthorized</expected-error> |
| <expected-error>HTTP/1.1 401 Unauthorized</expected-error> |
| <expected-error>HTTP/1.1 401 Unauthorized</expected-error> |
| <expected-error>HTTP/1.1 401 Unauthorized</expected-error> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="external-library"> |
| <compilation-unit name="mysum_dropinuse"> |
| <output-dir compare="Text">mysum_dropinuse</output-dir> |
| <expected-error>Library testlib is being used. It cannot be dropped</expected-error> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="external-library"> |
| <compilation-unit name="my_array_sum"> |
| <output-dir compare="Text">my_array_sum</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="external-library"> |
| <compilation-unit name="getCapital"> |
| <output-dir compare="Text">getCapital</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="external-library"> |
| <compilation-unit name="getCapital_open"> |
| <output-dir compare="Text">getCapital</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="external-library"> |
| <compilation-unit name="udf_metadata"> |
| <output-dir compare="Text">udf_metadata</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="external-library"> |
| <compilation-unit name="upperCase"> |
| <output-dir compare="Text">upperCase</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="external-library"> |
| <compilation-unit name="deterministic"> |
| <output-dir compare="Text">deterministic</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="feeds"> |
| <compilation-unit name="feed-with-external-function"> |
| <output-dir compare="Text">feed-with-external-function</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="external-library"> |
| <compilation-unit name="return_invalid_type"> |
| <output-dir compare="Text">getCapital</output-dir> |
| <expected-error>External UDF cannot produce expected result.</expected-error> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="external-library"> |
| <compilation-unit name="keyword_detector"> |
| <output-dir compare="Text">keyword_detector</output-dir> |
| </compilation-unit> |
| </test-case> |
| </test-group> |
| <test-group name="feeds"> |
| <test-case FilePath="feeds"> |
| <compilation-unit name="feed-with-external-function"> |
| <output-dir compare="Text">feed-with-external-function</output-dir> |
| </compilation-unit> |
| </test-case> |
| </test-group> |
| </test-suite> |