ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-7304) Python TestExecuteHadoopResource test failures
Date Mon, 15 Sep 2014 12:34:33 GMT

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

Hudson commented on AMBARI-7304:
--------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #241 (See [https://builds.apache.org/job/Ambari-trunk-Commit/241/])
AMBARI-7304 Python TestExecuteHadoopResource test failures (dsen) (dsen: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=258f454191ad88c0f2ade1c40fb233e0b09b4ebf)
* ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py


> Python TestExecuteHadoopResource test failures
> ----------------------------------------------
>
>                 Key: AMBARI-7304
>                 URL: https://issues.apache.org/jira/browse/AMBARI-7304
>             Project: Ambari
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 1.7.0
>            Reporter: Dmytro Sen
>            Assignee: Dmytro Sen
>             Fix For: 1.7.0
>
>
> This fails due to not-mocked pythonpath, we should mock that for stack tests as well
it can be even done in RMFTestCase.py like it is done for os_type, shell_mock now.
> {noformat}
> ======================================================================
> FAIL: test_run_command_list (TestExecuteHadoopResource.TestExecuteHadoopResource)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/user/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in
patched
>     return func(*args, **keywargs)
>   File "/home/user/ambari/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py",
line 108, in test_run_command_list
>     {'logoutput': False, 'tries': 1, 'user': 'user', 'try_sleep': 0})
> AssertionError: {'environment': {'PATH': '/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/u
[truncated]... != {'logoutput': False, 'tries': 1, 'user': 'user', 'try_sleep': 0}
> + {'logoutput': False, 'tries': 1, 'try_sleep': 0, 'user': 'user'}
> - {'environment': {'PATH': '/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/user/bin:/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/user/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games'},
> -  'logoutput': False,
> -  'tries': 1,
> -  'try_sleep': 0,
> -  'user': 'user'}
> ======================================================================
> FAIL: test_run_default_args (TestExecuteHadoopResource.TestExecuteHadoopResource)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/user/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in
patched
>     return func(*args, **keywargs)
>   File "/home/user/ambari/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py",
line 41, in test_run_default_args
>     {'logoutput': True, 'tries': 1, 'user': 'user', 'try_sleep': 0})
> AssertionError: {'environment': {'PATH': '/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/u
[truncated]... != {'logoutput': True, 'tries': 1, 'user': 'user', 'try_sleep': 0}
> + {'logoutput': True, 'tries': 1, 'try_sleep': 0, 'user': 'user'}
> - {'environment': {'PATH': '/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/user/bin:/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/user/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games'},
> -  'logoutput': True,
> -  'tries': 1,
> -  'try_sleep': 0,
> -  'user': 'user'}
> ======================================================================
> FAIL: test_run_defined_args (TestExecuteHadoopResource.TestExecuteHadoopResource)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/user/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in
patched
>     return func(*args, **keywargs)
>   File "/home/user/ambari/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py",
line 86, in test_run_defined_args
>     {'logoutput': True, 'tries': 2, 'user': 'user', 'try_sleep': 2})
> AssertionError: {'environment': {'PATH': '/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/u
[truncated]... != {'logoutput': True, 'tries': 2, 'user': 'user', 'try_sleep': 2}
> + {'logoutput': True, 'tries': 2, 'try_sleep': 2, 'user': 'user'}
> - {'environment': {'PATH': '/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/user/bin:/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/user/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games'},
> -  'logoutput': True,
> -  'tries': 2,
> -  'try_sleep': 2,
> -  'user': 'user'}
> ======================================================================
> FAIL: test_run_secured (TestExecuteHadoopResource.TestExecuteHadoopResource)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/user/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in
patched
>     return func(*args, **keywargs)
>   File "/home/user/ambari/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py",
line 159, in test_run_secured
>     {'logoutput': True, 'tries': 1, 'user': 'user', 'try_sleep': 0})
> AssertionError: {'environment': {'PATH': '/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/u
[truncated]... != {'logoutput': True, 'tries': 1, 'user': 'user', 'try_sleep': 0}
> + {'logoutput': True, 'tries': 1, 'try_sleep': 0, 'user': 'user'}
> - {'environment': {'PATH': '/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/user/bin:/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/user/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games'},
> -  'logoutput': True,
> -  'tries': 1,
> -  'try_sleep': 0,
> -  'user': 'user'}
> ======================================================================
> FAIL: test_run_unknown_conf (TestExecuteHadoopResource.TestExecuteHadoopResource)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/user/ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in
patched
>     return func(*args, **keywargs)
>   File "/home/user/ambari/ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py",
line 61, in test_run_unknown_conf
>     {'logoutput': False, 'tries': 1, 'user': 'user', 'try_sleep': 0})
> AssertionError: {'environment': {'PATH': '/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/u
[truncated]... != {'logoutput': False, 'tries': 1, 'user': 'user', 'try_sleep': 0}
> + {'logoutput': False, 'tries': 1, 'try_sleep': 0, 'user': 'user'}
> - {'environment': {'PATH': '/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/user/bin:/home/user/bin:/usr/local/java/jdk1.7.0_51/bin:/home/user/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games'},
> -  'logoutput': False,
> -  'tries': 1,
> -  'try_sleep': 0,
> -  'user': 'user'}
> {noformat}



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

Mime
View raw message