commit | b99aeed27f6470ece3cf02090a8252700dab5323 | [log] [tgz] |
---|---|---|
author | Abhishek Ravi <abhi.ravi@gmail.com> | Fri Apr 05 10:46:30 2019 -0700 |
committer | GitHub <noreply@github.com> | Fri Apr 05 10:46:30 2019 -0700 |
tree | 563b1886e5b14951ab95b2a34d62a4b090147158 | |
parent | 62a0ba5e71980438447b67e09bb001453e75ab2a [diff] |
Drill RM configuration changes - Read / Modify / Write configuration (#557) * Drill RM configuration changes - Read / Modify / Write configuration Initial code for RM related changes. - This PR introduces a DrillConfigRenderer interface that should be implemented by an class that represents a Drill configuration and requires the ability to serialize its instance to HOCON format. - Added DrillRMConfig which represents RM configuration in Java. This can be used read RM config into memory, modify RM config and update the configuration. - Moved the DrillTestFrameworkUnitTests out of resourcemanagement package. - Added a sample RM config file to test resources. * Refactor, cleanup and Unit tests - Refactored code as a part of cleanup. - Added unit tests for DrillRMConfig. TODO: - Add tests to verify serializer to HOCON * Add unit tests for DrillRMConfig#render * Changes to get Drillbit hostnames - Added utility to get the hostnames on which Drillbits are running on the cluster. - Added toString to CmdConsOut for better debuggability * Add utility to apply the RM Config to specified drillbit * Use TEST_ROOT_DIR instead of CWD - When running tests from testng, CWD points to rootDir/framework. - Adding a defualt TEST_ROOT_DIR which always points to root directory. * Cleanup and add unit tests for the changes.
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