-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29405/
-----------------------------------------------------------

Review request for Ambari, Mahadev Konar and Nate Cole.


Bugs: AMBARI-8910
    https://issues.apache.org/jira/browse/AMBARI-8910


Repository: ambari


Description
-------

Agent unittests are failing on python 2.6:
{code}
Traceback (most recent call last):
  File "/home/user/ambari/ambari-agent/src/test/python/unitTests.py", line 130, 
in <module>
    main()
  File "/home/user/ambari/ambari-agent/src/test/python/unitTests.py", line 95, 
in main
    suite = all_tests_suite()
  File "/home/user/ambari/ambari-agent/src/test/python/unitTests.py", line 86, 
in all_tests_suite
    suite = unittest.TestLoader().loadTestsFromNames(tests_list)
  File "/usr/lib64/python2.6/unittest.py", line 612, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib64/python2.6/unittest.py", line 575, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File 
"/home/user/ambari/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py",
 line 32
    params["config_file"]["property1"] = {"firstCase"}
                                                     ^
SyntaxError: invalid syntax
{code}


Diffs
-----

  ambari-agent/src/test/python/resource_management/TestSecurityCommons.py 
1658609 

Diff: https://reviews.apache.org/r/29405/diff/


Testing
-------

mvn clean test


Thanks,

Dmitro Lisnichenko

Reply via email to