ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Iryna Kuzmenko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-4785) Unit tests for the agents are failing with various mock objects not found.
Date Fri, 21 Feb 2014 17:19:19 GMT

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

Iryna Kuzmenko updated AMBARI-4785:
-----------------------------------

    Attachment: AMBARI-4785.patch

Done. Patch attached.

> Unit tests for the agents are failing with various mock objects not found.
> --------------------------------------------------------------------------
>
>                 Key: AMBARI-4785
>                 URL: https://issues.apache.org/jira/browse/AMBARI-4785
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Iryna Kuzmenko
>             Fix For: 1.5.0
>
>         Attachments: AMBARI-4785.patch
>
>
> {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}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message