ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "subin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-3274) Add ambari client unit test to the main mvn test target so that the unit tests are always run as part of the build.
Date Thu, 19 Sep 2013 16:36:52 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-3274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772011#comment-13772011
] 

subin commented on AMBARI-3274:
-------------------------------

patch looks good !

+try:
+  import pycurl
+# pycurl is not necessary for testcases, mock it
+except ImportError:
+  from mock.mock import MagicMock
+  pycurl = MagicMock()

Mock the pycurl,for running testcase
                
> Add ambari client unit test to the main mvn test target so that the unit tests are always
run as part of the build.
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-3274
>                 URL: https://issues.apache.org/jira/browse/AMBARI-3274
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 1.4.1
>
>         Attachments: AMBARI-3274_2.patch, AMBARI-3274.patch
>
>
> Add ambari client unit test to the main mvn test target so that the unit tests are always
run as part of the build.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message