You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Florian Barca (JIRA)" <ji...@apache.org> on 2014/10/30 00:23:33 UTC

[jira] [Updated] (AMBARI-8032) [Test] ambari-server unit test failures: testDBConnectionCheck failure

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

Florian Barca updated AMBARI-8032:
----------------------------------
    Attachment: AMBARI-8032.1.patch

Recent changes in CheckHost.execute_db_connection_check invalidated the unit test.

+Fixed mock objects
+Fixed test reference data

> [Test] ambari-server unit test failures: testDBConnectionCheck failure
> ----------------------------------------------------------------------
>
>                 Key: AMBARI-8032
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8032
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>    Affects Versions: branch-windows-dev
>            Reporter: Florian Barca
>            Assignee: Florian Barca
>             Fix For: branch-windows-dev
>
>         Attachments: AMBARI-8032.1.patch
>
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> 2291 FAIL: testDBConnectionCheck (TestCheckHost.TestCheckHost)
> 2292 ----------------------------------------------------------------------
> 2293 Traceback (most recent call last):
> 2294   File "/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
> 2295     return func(*args, **keywargs)
> 2296   File "/Users/fbarca/ambari-vagrant/centos6.4/ambari/ambari-server/src/test/python/TestCheckHost.py", line 89, in testDBConnectionCheck
> 2297     'Server.\ntest exception', 'exit_code': 1}})
> 2298 AssertionError: {'db_connection_check': {'message': "'hostLevelParams'", 'exit_code': 1}} != {'db_connection_check': {'message': 'Error downloading DBConnectionVerification. [truncated]...
> 2299 - {'db_connection_check': {'exit_code': 1, 'message': "'hostLevelParams'"}}
> 2300 + {'db_connection_check': {'exit_code': 1,
> 2301 +                          'message': 'Error downloading DBConnectionVerification.jar from Ambari Server resources. Check network access to Ambari Server.\ntest exception'}}



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