| <!-- |
| ! 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"> |
| <test-group name="rebalance"> |
| <test-case FilePath="rebalance"> |
| <compilation-unit name="duplicate_location"> |
| <output-dir compare="Text">duplicate_location</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="rebalance"> |
| <compilation-unit name="empty_location"> |
| <output-dir compare="Text">empty_location</output-dir> |
| <expected-error>HTTP operation failed: |
| STATUS LINE: HTTP/1.1 400 Bad Request |
| ERROR_BODY: {"results":"target nodes should not be empty"}</expected-error> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="rebalance"> |
| <compilation-unit name="identical_location"> |
| <output-dir compare="Text">identical_location</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="rebalance"> |
| <compilation-unit name="nonexist_dataset"> |
| <output-dir compare="Text">nonexist_dataset</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="rebalance"> |
| <compilation-unit name="single_dataset"> |
| <output-dir compare="Text">single_dataset</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="rebalance"> |
| <compilation-unit name="single_dataset_with_index"> |
| <output-dir compare="Text">single_dataset_with_index</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="rebalance"> |
| <compilation-unit name="single_dataverse"> |
| <output-dir compare="Text">single_dataverse</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="rebalance"> |
| <compilation-unit name="all_datasets"> |
| <output-dir compare="Text">all_datasets</output-dir> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="rebalance"> |
| <compilation-unit name="metadata"> |
| <output-dir compare="Text">metadata</output-dir> |
| <expected-error>HTTP operation failed: |
| STATUS LINE: HTTP/1.1 400 Bad Request |
| ERROR_BODY: {"results":"cannot rebalance a metadata dataset"}</expected-error> |
| </compilation-unit> |
| </test-case> |
| <test-case FilePath="rebalance"> |
| <compilation-unit name="miss_dataverse"> |
| <output-dir compare="Text">miss_dataverse</output-dir> |
| <expected-error>HTTP operation failed: |
| STATUS LINE: HTTP/1.1 400 Bad Request |
| ERROR_BODY: {"results":"to rebalance a particular dataset, the parameter dataverseName must be given"}</expected-error> |
| </compilation-unit> |
| </test-case> |
| </test-group> |
| </test-suite> |