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

[jira] [Updated] (AMBARI-8335) Unit Test Failures caused by windows code merge in trunk

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

Jayush Luniya updated AMBARI-8335:
----------------------------------
    Attachment: AMBARI-8335.patch

> Unit Test Failures caused by windows code merge in trunk
> --------------------------------------------------------
>
>                 Key: AMBARI-8335
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8335
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Jayush Luniya
>            Assignee: Jayush Luniya
>            Priority: Critical
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-8335.patch
>
>
> AMBARI-8269 introduced 2 unit test failures. These dont repro on Mac but are observed in the build environment.
> https://builds.apache.org/job/Ambari-trunk-Commit/941/
> Failed tests:
> FAIL: test_service_check_default (test_service_check.TestServiceCheck)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_service_check.py", line 33, in test_service_check_default
>     self.assert_service_check()
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_service_check.py", line 56, in assert_service_check
>     try_sleep = 5,
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 176, in assertResourceCalled
>     self.assertEquals(kwargs, resource.arguments)
> AssertionError: {'logoutput': True, 'path': ['/usr/bin:/usr/bin'], 'tries': 3, 'command': '/tmp/ [truncated]... != {'logoutput': True, 'path': ['/usr/bin:/usr/bin'], 'tries': 3, 'command': u'/tmp [truncated]...
> - {'command': '/tmp/oozieSmoke2.sh suse /etc/oozie/conf /usr/bin /etc/hadoop/conf /usr/bin ambari-qa False',
> ?                                  - ^^
> + {'command': u'/tmp/oozieSmoke2.sh ubuntu /etc/oozie/conf /usr/bin /etc/hadoop/conf /usr/bin ambari-qa False',
> ?             +                      ^^^^^
>    'logoutput': True,
>    'path': ['/usr/bin:/usr/bin'],
>    'tries': 3,
>    'try_sleep': 5}
> FAIL: test_service_check_secured (test_service_check.TestServiceCheck)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_service_check.py", line 43, in test_service_check_secured
>     self.assert_service_check()
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_service_check.py", line 56, in assert_service_check
>     try_sleep = 5,
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 176, in assertResourceCalled
>     self.assertEquals(kwargs, resource.arguments)
> AssertionError: {'logoutput': True, 'path': ['/usr/bin:/usr/bin'], 'tries': 3, 'command': '/tmp/ [truncated]... != {'logoutput': True, 'path': ['/usr/bin:/usr/bin'], 'tries': 3, 'command': u'/tmp [truncated]...
> - {'command': '/tmp/oozieSmoke2.sh suse /etc/oozie/conf /usr/bin /etc/hadoop/conf /usr/bin ambari-qa False',
> ?                                  - ^^
> + {'command': u'/tmp/oozieSmoke2.sh ubuntu /etc/oozie/conf /usr/bin /etc/hadoop/conf /usr/bin ambari-qa False',
> ?             +                      ^^^^^
>    'logoutput': True,
>    'path': ['/usr/bin:/usr/bin'],
>    'tries': 3,
>    'try_sleep': 5}
> ----------------------------------------------------------------------



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