You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/04/10 12:55:13 UTC

[jira] [Commented] (AMBARI-10398) Add necessary mocks for unit tests to pass on any OS

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

Hudson commented on AMBARI-10398:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #2251 (See [https://builds.apache.org/job/Ambari-trunk-Commit/2251/])
AMBARI-10398. Add necessary mocks for unit tests to pass on any OS (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=9d9dc00bba503adf21f325fbe123d71327f293e1)
* ambari-agent/src/test/python/resource_management/TestMonitorWebserverResource.py


> Add necessary mocks for unit tests to pass on any OS
> ----------------------------------------------------
>
>                 Key: AMBARI-10398
>                 URL: https://issues.apache.org/jira/browse/AMBARI-10398
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.1.0
>
>
> Tests failed (on Mac):
>   * FAIL: test_stop_suse (TestMonitorWebserverResource.TestMonitorWebserverResource)
>   * FAIL: test_setup_suse (TestMonitorWebserverResource.TestMonitorWebserverResource)
>     
>     
>     ======================================================================
>     FAIL: test_setup_suse (TestMonitorWebserverResource.TestMonitorWebserverResource)
>     ----------------------------------------------------------------------
>     Traceback (most recent call last):
>       File "/Users/smohanty/enlistments/asf-ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
>         return func(*args, **keywargs)
>       File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/test/python/resource_management/TestMonitorWebserverResource.py", line 58, in test_setup_suse
>         self.assertEqual(str(defined_resources), expected_resources)
>     AssertionError: "[MonitorWebserver['start'], Execute['grep -E 'KeepAlive (On|Off)' /etc/httpd/conf/httpd.conf && ambari-sudo.sh [RMF_ENV_PLACEHOLDER] -H -E sed -i 's/KeepAlive Off/KeepAlive On/' /etc/httpd/conf/httpd.conf || echo 'KeepAlive On' | ambari-sudo.sh [RMF_ENV_PLACEHOLDER] -H -E tee --append /etc/httpd/conf/httpd.conf > /dev/null'], Execute['('/etc/init.d/httpd', 'start')']]" != "[MonitorWebserver['start'], Execute['grep -E 'KeepAlive (On|Off)' /etc/apache2/httpd.conf && ambari-sudo.sh [RMF_ENV_PLACEHOLDER] -H -E sed -i 's/KeepAlive Off/KeepAlive On/' /etc/apache2/httpd.conf || echo 'KeepAlive On' | ambari-sudo.sh [RMF_ENV_PLACEHOLDER] -H -E tee --append /etc/apache2/httpd.conf > /dev/null'], Execute['('/etc/init.d/apache2', 'start')']]"
>     
>     ======================================================================
>     FAIL: test_stop_suse (TestMonitorWebserverResource.TestMonitorWebserverResource)
>     ----------------------------------------------------------------------
>     Traceback (most recent call last):
>       File "/Users/smohanty/enlistments/asf-ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
>         return func(*args, **keywargs)
>       File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/test/python/resource_management/TestMonitorWebserverResource.py", line 80, in test_stop_suse
>         self.assertEqual(str(defined_resources), expected_resources)
>     AssertionError: "[MonitorWebserver['stop'], Execute['('/etc/init.d/httpd', 'stop')']]" != "[MonitorWebserver['stop'], Execute['('/etc/init.d/apache2', 'stop')']]"
>     



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