commit | 0c07fc7a3a9545c291f143668f1b0d097cdef0d8 | [log] [tgz] |
---|---|---|
author | Abhishek Ravi <abhi.ravi@gmail.com> | Mon Apr 15 13:29:37 2019 -0700 |
committer | Abhishek Girish <agirish@apache.org> | Mon Apr 15 13:29:37 2019 -0700 |
tree | 5894cc51b1617cd17c2cf732f648d76be0568e1d | |
parent | 7ea28bac8d10286b5472f562de00a7806ceb10f6 [diff] |
Framework changes and tests for RM queue selection (#571) * Framework changes and tests for RM queue selection - Added a new class for RM queue selection tests. - Added new methods in ConnectionPool to create connections based on user, password, tags and groups. - Refactored restartDrill out of TestDriver, since it is a utility. - Create connection with schema, group and queryTags properties. - Changes in JavaTestBase to get all Drillbits' hostnames. - Fixed faulty tests in TestSSLProperties * Cosmetic changes. Add comments for the tests. * Add package to manage DrillCluster from SSH - Added classes to manage SSH sessions from a user to a DrillCluster. - Most of the code is re-used from mapr/ycsb-driver implementations. - The DrillCluster instance should be used when the test framework has to talk to the cluster for copying files or running certain commands. - Modified the test cases accordingly. - Added ThrowingConsumer to support lambda for functions with checked exceptions. * Cosmetic changes, add javadoc for new utility methods * Existing TestDriver continue using older method * Small change, missed synchronized * Add a method for cleaning up cluster before every test - Remove any existing RM config in DrillCluster. * Add cleanup after class as well, other cosmetic changes * Minor change, add description to testng methods * Run cleanup once for a class * Cleanup and add test case for unknown tag
Test Framework for SQL on Hadoop technologies. Currently supports Apache Drill, a schema-free SQL query engine for Hadoop, NoSQL and cloud storage.
The framework is built for regression, integration & sanity testing. Includes test coverage (with baselines) for core Drill functionality, and supported features. And are used by the Apache Drill community for pre-commit regression and part of the release criteria.
To begin using the test framework, you need to build the project and download dependent datasets (configured in pom.xml).
git clone git@github.com:mapr/drill-test-framework.git cd drill-test-framework bin/build_framework -Pdownload
If you've already downloaded the datasets previously, you can simply skip the download.
In the root directory of your repository, execute the following command to run tests:
bin/run_tests -s <suites> -g <groups> -t <Timeout> -x <Exclude> -n <Concurrency> -d
Example:
We encourage contributions from users! You can fix bugs, make enhancements or add new tests. Create a PR here on GitHub for your change.
Refer to CONTRIBUTING.md for details on the test framework structure and instructions on how to contribute.
Licensed under the Apache License 2.0. Please see LICENSE.md