You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Doroszlai, Attila (JIRA)" <ji...@apache.org> on 2017/10/04 10:11:00 UTC

[jira] [Reopened] (AMBARI-20634) Cleanup unused files and data in ambari-agent code

     [ https://issues.apache.org/jira/browse/AMBARI-20634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doroszlai, Attila reopened AMBARI-20634:
----------------------------------------

Hi [~aonishuk], tests in {{ambari-agent}} cannot be run due to {{ImportError}}.  Can you please check?

{noformat:title=example 1}
Traceback (most recent call last):
  File "unitTests.py", line 188, in <module>
    main()
  File "unitTests.py", line 142, in main
    suite = all_tests_suite(test_mask)
  File "unitTests.py", line 130, in all_tests_suite
    suite = unittest.TestLoader().loadTestsFromNames(tests_list)
  File "/usr/lib/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.7/unittest/loader.py", line 91, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-agent/src/test/python/ambari_agent/TestSecurity.py", line 38, in <module>
    from ambari_agent import ProcessHelper, main
ImportError: cannot import name ProcessHelper
{noformat}

{noformat:title=example 2}
Traceback (most recent call last):
  File "unitTests.py", line 188, in <module>
    main()
  File "unitTests.py", line 142, in main
    suite = all_tests_suite(test_mask)
  File "unitTests.py", line 130, in all_tests_suite
    suite = unittest.TestLoader().loadTestsFromNames(tests_list)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 91, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "ambari-agent/src/test/python/ambari_agent/TestLiveStatus.py", line 28, in <module>
    from ambari_agent import StatusCheck
ImportError: cannot import name StatusCheck
{noformat}

> Cleanup unused files and data in ambari-agent code
> --------------------------------------------------
>
>                 Key: AMBARI-20634
>                 URL: https://issues.apache.org/jira/browse/AMBARI-20634
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 3.0.0
>
>         Attachments: AMBARI-20634.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)