ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Speidel <jspei...@hortonworks.com>
Subject Unit Test Failures in trunk
Date Wed, 07 Jan 2015 18:48:18 GMT
I just ran the unit test suite on trunk and am seeing a bunch of python
test failures.
Is anybody else seeing these failures or is this a known issue?
I can't imagine that my patch has anything to do with this so I am not
looking forward spending a lot of time debugging this if these are known
failures.

There have been a bunch of commits today so either others aren't seeing
these failures or they are being ignored.

Below are a couple of the failures:

*FAIL: testLastAgentEnv (TestCheckHost.TestCheckHost)*
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/Users/john/workspace/ambari/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File
"/Users/john/workspace/ambari/ambari-server/src/test/python/custom_actions/TestCheckHost.py",
line 259, in testLastAgentEnv
    self.assertTrue(time_mock.called)
AssertionError: False is not True

*FAIL: test_exclude_existing_repo (TestInstallPackages.TestInstallPackages)*
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/Users/john/workspace/ambari/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File
"/Users/john/workspace/ambari/ambari-server/src/test/python/custom_actions/TestInstallPackages.py",
line 108, in test_exclude_existing_repo
    append_to_file=False,
  File
"/Users/john/workspace/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 215, in assertResourceCalled
    self.assertEquals(kwargs, resource.arguments)
AssertionError: {'append_to_file': False, 'base_url': '
http://s3.amazonaws.com/dev.hortonworks.c [truncated]... !=
{'append_to_file': False, 'base_url': u'
http://s3.amazonaws.com/dev.hortonworks. [truncated]...
  {'action': ['create'],
   'append_to_file': False,
-  'base_url': '
http://s3.amazonaws.com/dev.hortonworks.com/HDP/centos5/2.x/updates/2.2.0.0
',
+  'base_url': u'
http://s3.amazonaws.com/dev.hortonworks.com/HDP/centos5/2.x/updates/2.2.0.0
',
?              +

-  'components': [u'HDP-UTILS-1.1.0.20', 'main'],
?                            ---------

+  'components': [u'HDP-UTILS', 'main'],
   'mirror_list': None,
-  'repo_file_name': 'HDP-2.2.0.1-885',
+  'repo_file_name': u'HDP-2.2.0.1-885',
?                    +

   'repo_template': 'repo_suse_rhel.j2'}

*FAIL: test_fail (TestInstallPackages.TestInstallPackages)*
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/Users/john/workspace/ambari/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File
"/Users/john/workspace/ambari/ambari-server/src/test/python/custom_actions/TestInstallPackages.py",
line 171, in test_fail
    append_to_file=False,
  File
"/Users/john/workspace/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 215, in assertResourceCalled
    self.assertEquals(kwargs, resource.arguments)
AssertionError: {'append_to_file': False, 'base_url': '
http://s3.amazonaws.com/dev.hortonworks.c [truncated]... !=
{'append_to_file': False, 'base_url': u'
http://s3.amazonaws.com/dev.hortonworks. [truncated]...
  {'action': ['create'],
   'append_to_file': False,
-  'base_url': '
http://s3.amazonaws.com/dev.hortonworks.com/HDP/centos5/2.x/updates/2.2.0.0
',
+  'base_url': u'
http://s3.amazonaws.com/dev.hortonworks.com/HDP/centos5/2.x/updates/2.2.0.0
',
?              +

-  'components': [u'HDP-UTILS-1.1.0.20', 'main'],
?                            ---------

+  'components': [u'HDP-UTILS', 'main'],
   'mirror_list': None,
-  'repo_file_name': 'HDP-2.2.0.1-885',
+  'repo_file_name': u'HDP-2.2.0.1-885',
?                    +

   'repo_template': 'repo_suse_rhel.j2'}


*I also see this:*
Last Agent Env check started.
There was an unknown error while checking last host environment details:
Cannot detect os type. Exiting...
Can not install packages.
Traceback (most recent call last):
  File
"/Users/john/workspace/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/custom_actions/scripts/install_packages.py",
line 88, in actionexecute
    Package(package['name'], use_repos=list(current_repo_files) if
OSCheck.is_ubuntu_family() else current_repositories)
  File
"/Users/john/workspace/ambari/ambari-server/src/test/python/custom_actions/TestInstallPackages.py",
line 144, in _new_with_exception
    raise Exception()
Exception

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message