ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-9854) Unit Test Failures in ambari-server Python Tests
Date Sun, 01 Mar 2015 01:03:04 GMT
Jonathan Hurley created AMBARI-9854:
---------------------------------------

             Summary: Unit Test Failures in ambari-server Python Tests
                 Key: AMBARI-9854
                 URL: https://issues.apache.org/jira/browse/AMBARI-9854
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.0.0
            Reporter: Jonathan Hurley
            Priority: Blocker
             Fix For: 2.0.0


{noformat}
ambari-server
----------------------------------------------------------------------
Failed tests:
ERROR: testDBConnectionCheck (TestCheckHost.TestCheckHost)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jhurley/src/hwx/ambari/ambari-server/../ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/Users/jhurley/src/hwx/ambari/ambari-server/src/test/python/custom_actions/TestCheckHost.py",
line 95, in testDBConnectionCheck
    checkHost = CheckHost()
  File "/Users/jhurley/src/hwx/ambari/ambari-server/src/main/resources/custom_actions/scripts/check_host.py",
line 89, in __init__
    self.reportFileHandler = HostCheckReportFileHandler()
  File "/Users/jhurley/src/hwx/ambari/ambari-server/../ambari-agent/src/main/python/ambari_agent/HostCheckReportFileHandler.py",
line 39, in __init__
    config = self.resolve_ambari_config()
  File "/Users/jhurley/src/hwx/ambari/ambari-server/../ambari-agent/src/main/python/ambari_agent/HostCheckReportFileHandler.py",
line 55, in resolve_ambari_config
    return config
UnboundLocalError: local variable 'config' referenced before assignment

ERROR: testHostResolution (TestCheckHost.TestCheckHost)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jhurley/src/hwx/ambari/ambari-server/../ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/Users/jhurley/src/hwx/ambari/ambari-server/src/test/python/custom_actions/TestCheckHost.py",
line 197, in testHostResolution
    checkHost = CheckHost()
  File "/Users/jhurley/src/hwx/ambari/ambari-server/src/main/resources/custom_actions/scripts/check_host.py",
line 89, in __init__
    self.reportFileHandler = HostCheckReportFileHandler()
  File "/Users/jhurley/src/hwx/ambari/ambari-server/../ambari-agent/src/main/python/ambari_agent/HostCheckReportFileHandler.py",
line 39, in __init__
    config = self.resolve_ambari_config()
  File "/Users/jhurley/src/hwx/ambari/ambari-server/../ambari-agent/src/main/python/ambari_agent/HostCheckReportFileHandler.py",
line 55, in resolve_ambari_config
    return config
UnboundLocalError: local variable 'config' referenced before assignment

ERROR: testInvalidCheck (TestCheckHost.TestCheckHost)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jhurley/src/hwx/ambari/ambari-server/../ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/Users/jhurley/src/hwx/ambari/ambari-server/src/test/python/custom_actions/TestCheckHost.py",
line 235, in testInvalidCheck
    checkHost = CheckHost()
  File "/Users/jhurley/src/hwx/ambari/ambari-server/src/main/resources/custom_actions/scripts/check_host.py",
line 89, in __init__
    self.reportFileHandler = HostCheckReportFileHandler()
  File "/Users/jhurley/src/hwx/ambari/ambari-server/../ambari-agent/src/main/python/ambari_agent/HostCheckReportFileHandler.py",
line 39, in __init__
    config = self.resolve_ambari_config()
  File "/Users/jhurley/src/hwx/ambari/ambari-server/../ambari-agent/src/main/python/ambari_agent/HostCheckReportFileHandler.py",
line 55, in resolve_ambari_config
    return config
UnboundLocalError: local variable 'config' referenced before assignment

ERROR: testJavaHomeAvailableCheck (TestCheckHost.TestCheckHost)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jhurley/src/hwx/ambari/ambari-server/../ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/Users/jhurley/src/hwx/ambari/ambari-server/src/test/python/custom_actions/TestCheckHost.py",
line 55, in testJavaHomeAvailableCheck
    checkHost = CheckHost()
  File "/Users/jhurley/src/hwx/ambari/ambari-server/src/main/resources/custom_actions/scripts/check_host.py",
line 89, in __init__
    self.reportFileHandler = HostCheckReportFileHandler()
  File "/Users/jhurley/src/hwx/ambari/ambari-server/../ambari-agent/src/main/python/ambari_agent/HostCheckReportFileHandler.py",
line 39, in __init__
    config = self.resolve_ambari_config()
  File "/Users/jhurley/src/hwx/ambari/ambari-server/../ambari-agent/src/main/python/ambari_agent/HostCheckReportFileHandler.py",
line 55, in resolve_ambari_config
    return config
UnboundLocalError: local variable 'config' referenced before assignment

FAIL: test_count_hash_sum (TestResourceFilesKeeper.TestResourceFilesKeeper)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jhurley/src/hwx/ambari/ambari-server/src/test/python/TestResourceFilesKeeper.py",
line 234, in test_count_hash_sum
    self.assertEquals(hash_sum, self.DUMMY_UNCHANGEABLE_PACKAGE_HASH)
AssertionError: '131a35e9bbe4254beebe33714d2293481c96e693' != '3a3109ba7b01639f08e5f6e7efd0e2fe4612812c'

FAIL: test_zip_directory (TestResourceFilesKeeper.TestResourceFilesKeeper)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jhurley/src/hwx/ambari/ambari-server/src/test/python/TestResourceFilesKeeper.py",
line 314, in test_zip_directory
    self.assertEquals(hash_val, self.DUMMY_UNCHANGEABLE_PACKAGE_HASH)
AssertionError: '131a35e9bbe4254beebe33714d2293481c96e693' != '3a3109ba7b01639f08e5f6e7efd0e2fe4612812c'

----------------------------------------------------------------------
Total run:607
Total errors:4
Total failures:2
ERROR
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message