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

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

Andrew Onischuk created AMBARI-10398:
----------------------------------------

             Summary: 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)