commit | 381fa4d16e5feb0bd4fb3da34bdd9a144b7e38ea | [log] [tgz] |
---|---|---|
author | Abhishek Ravi <abhi.ravi@gmail.com> | Tue Mar 26 14:20:17 2019 -0400 |
committer | Abhishek Girish <agirish@apache.org> | Tue Mar 26 11:20:17 2019 -0700 |
tree | 17d93943e311dc5d87c157e2d52fd9d120ce4414 | |
parent | 8b12ea60c8954f83d81ac87466725038fb63ea6e [diff] |
Integrate TestNG to enable Java-based test case development & Parse QueryProfile (#551) * Integrate TestNG with framework - Add testng dependency to pom and define a new build profile. - Added a base class for all Java tests. - Added a sample test class for RM. * Add support to get and parse query profile - Update the REST utils used for Http GET. - Add utilility to build Http GET request. - Add utility method to convert the Http Response to a String response. - Add utility that takes in a queryId and returns a QueryProfile object. * Handle queryId does not exist scenario - Check for scenario when Http GET request comes back with an error. - Throw meaningful error if GET request fails. * Move createConnectionProperties to Utils, create a class for unit tests - Test Framework also needs unit tests to ensure quality and robustness - Move static class createConnectionProperties to Utils.java * Move debugging logs to debug * Cosmetic changes * Reverting the CWD fix to enable merging the code. * Reverting comment * Rename class to DrillTestNGDefaults * Implement review comments - reformat code * Remove unnecessary blank lines
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