[
https://issues.apache.org/jira/browse/AMBARI-14821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15158095#comment-15158095
]
Hadoop QA commented on AMBARI-14821:
------------------------------------
{color:green}+1 overall{color}. Here are the results of testing the latest
attachment
http://issues.apache.org/jira/secure/attachment/12789038/AMBARI-14821_trunk.patch
against trunk revision .
{color:green}+1 @author{color}. The patch does not contain any @author
tags.
{color:green}+1 tests included{color}. The patch appears to include 1 new
or modified test files.
{color:green}+1 javac{color}. The applied patch does not increase the
total number of javac compiler warnings.
{color:green}+1 release audit{color}. The applied patch does not increase
the total number of release audit warnings.
{color:green}+1 core tests{color}. The patch passed unit tests in
ambari-server.
Test results:
https://builds.apache.org/job/Ambari-trunk-test-patch/5505//testReport/
Console output:
https://builds.apache.org/job/Ambari-trunk-test-patch/5505//console
This message is automatically generated.
> Unit tests doesn't export scripts from common-services folder into PYTHONPATH
> -----------------------------------------------------------------------------
>
> Key: AMBARI-14821
> URL: https://issues.apache.org/jira/browse/AMBARI-14821
> Project: Ambari
> Issue Type: Bug
> Reporter: Newton Alex
> Assignee: Newton Alex
> Priority: Minor
> Attachments: AMBARI-14821_trunk.patch
>
>
> When running unit tests with mocks like
> ---------------
> @patch ('hawqmaster.common.__set_osparams')
> @patch ('hawqmaster.master_helper.__is_active_master')
> @patch ('hawqmaster.master_helper.__is_local_initialized')
> def test_start_default(self, is_local_initialized_mock, active_master_mock,
> set_osparams_mock):
> ...
> ----------------
> the unit tests fail with the following msg:
> --------
> Failed tests:
> ERROR: test_configure_default (test_hawqmaster.TestHawqMaster)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-common/src/test/python/mock/mock.py",
> line 1191, in patched
> arg = patching.__enter__()
> File
> "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-common/src/test/python/mock/mock.py",
> line 1250, in __enter__
> self.target = self.getter()
> File
> "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-common/src/test/python/mock/mock.py",
> line 1412, in <lambda>
> getter = lambda: _importer(target)
> File
> "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-common/src/test/python/mock/mock.py",
> line 1096, in _importer
> thing = __import__(import_path)
> ImportError: No module named hawqmaster
> ---------
> the source scripts from common-services are not getting exported into
> PYTHONPATH during unittest execution.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)