ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Iryna Kuzmenko" <ikuzme...@hortonworks.com>
Subject Re: Review Request 18359: Unit tests for the agents are failing with various mock objects not found.
Date Fri, 21 Feb 2014 17:29:55 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/18359/
-----------------------------------------------------------

(Updated Feb. 21, 2014, 5:29 p.m.)


Review request for Ambari and Andrew Onischuk.


Bugs: AMBARI-4785
    https://issues.apache.org/jira/browse/AMBARI-4785


Repository: ambari


Description
-------

{code}
st_sendRequest (TestController.TestController) ... ok

======================================================================
ERROR: test_create_template_with_tag (TestTemplateConfigResource.TestTemplateConfigResource)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-agent/src/test/python/resource_management/TestTemplateConfigResource.py",
line 56, in test_create_template_with_tag
    template_tag="template_tag"
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-agent/src/main/python/resource_management/core/base.py",
line 148, in __init__
    self.env.run()
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-agent/src/main/python/resource_management/core/environment.py",
line 149, in run
    self.run_action(resource, action)
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-agent/src/main/python/resource_management/core/environment.py",
line 109, in run_action
    resource.provider)
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-agent/src/main/python/resource_management/core/providers/__init__.py",
line 68, in find_provider
    if resource in provider[env.system.os_family]:
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-agent/src/main/python/resource_management/core/system.py",
line 41, in decorated
    v = undecorated(self)
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-agent/src/main/python/resource_management/core/system.py",
line 111, in os_family
    os_type = self.os_type
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-agent/src/main/python/resource_management/core/system.py",
line 41, in decorated
    v = undecorated(self)
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-agent/src/main/python/resource_management/core/system.py",
line 101, in os_type
    raise Fail("Cannot detect os type")
Fail: Cannot detect os type

======================================================================
ERROR: test_create_template_wo_tag (TestTemplateConfigResource.TestTemplateConfigResource)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-agent/src/test/python/resource_management/TestTemplateConfigResource.py",
line 37, in test_create_template_wo_tag
    extra_imports=["extra_imports"]
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-agent/src/main/python/resource_management/core/base.py",
line 148, in __init__
    self.env.run()
  File "/Users/mahadev/workspace/ambari-workspace/ambari-git/ambari-agent/src/main/python/resource_management/core/environment.py",
line 149, in run
    self.run_action(resource, action)

{code}


Diffs
-----

  ambari-agent/src/test/python/resource_management/TestExecuteHadoopResource.py ff4fd51 
  ambari-agent/src/test/python/resource_management/TestTemplateConfigResource.py db88365 

Diff: https://reviews.apache.org/r/18359/diff/


Testing
-------


Thanks,

Iryna Kuzmenko


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