GitHub user lucasbm88 opened a pull request: https://github.com/apache/incubator-predictionio/pull/355
[PIO-56] Adding embedded elasticsearch and mocked configuration for tests This pull request will add a code that will avoid the need of an elasticsearch installation and pio-env configuration when running unit tests of the project core. Basically the changes are: - Adding scalamock as a dependency for project core - Modifying data Storage.scala file to allow mocked configuration - Creating a new helper object to start and shutdown embedded elasticsearch - Modifying existing tests to use new infrastructure. More details of the issue in ASF Jira: https://issues.apache.org/jira/browse/PIO-56 You can merge this pull request into a Git repository by running: $ git pull https://github.com/lucasbm88/incubator-predictionio develop Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-predictionio/pull/355.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #355 ---- commit 077b18a5bd83f81d0e5152e197f1590fa69ba6f6 Author: administrador <administrador@administradors-macbook-pro.local> Date: 2017-03-02T02:48:28Z Adjusting the project core tests and Storage object in order to use an embedded elasticsearch and mocked METADATA configuration on unit tests. Fix for #PIO-56 ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---