You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Mahadev konar (JIRA)" <ji...@apache.org> on 2013/09/18 21:59:52 UTC

[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.

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

Mahadev konar commented on AMBARI-3274:
---------------------------------------

[~aonishuk] I am getting the following when running the unit tests:

{quote}
O] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ ambari-client ---
[INFO] 
[INFO] --- exec-maven-plugin:1.2:exec (python-test) @ ambari-client ---
Traceback (most recent call last):
  File "unitTests.py", line 114, in <module>
    main()
  File "unitTests.py", line 81, in main
    suite = all_tests_suite()
  File "unitTests.py", line 72, in all_tests_suite
    suite = unittest.TestLoader().loadTestsFromNames(tests_list)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py", line 613, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py", line 576, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-client/src/test/python/TestAmbariClient.py", line 23, in <module>
    from ambari_client.ambari_api import  AmbariClient 
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-client/src/main/python/ambari_client/ambari_api.py", line 19, in <module>
    from ambari_client.core.http_client import HttpClient
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-client/src/main/python/ambari_client/core/http_client.py", line 21, in <module>
    import pycurl
ImportError: No module named pycurl
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Ambari Main ....................................... SUCCESS [0.095s]
[INFO] Apache Ambari Project POM ......................... SUCCESS [0.025s]
[INFO] Ambari Web ........................................ SUCCESS [8.920s]
[INFO] Ambari Server ..................................... SUCCESS [8:55.071s]
[INFO] Ambari Agent ...................................... SUCCESS [13.316s]
[INFO] Ambari client ..................................... FAILURE [0.218s]
[INFO] ------------------------------------------------------------------------

{quote} 

Can we fix this? 
                
> 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.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