ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AMBARI-12500) Agent unit tests fail on trunk
Date Wed, 22 Jul 2015 12:25:04 GMT

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

Andrew Onischuk resolved AMBARI-12500.
--------------------------------------
    Resolution: Fixed

Committed to trunk and branch-2.1

> Agent unit tests fail on trunk
> ------------------------------
>
>                 Key: AMBARI-12500
>                 URL: https://issues.apache.org/jira/browse/AMBARI-12500
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.1.1
>
>
> Looks like system call is not mocked properly  
> Environment: Linux mint 17.1 (almost Ubuntu 14.04)
>     
>     
>     
>     ======================================================================
>     FAIL: test_attribute_environment_non_root (TestExecuteResource.TestExecuteResource)
>     ----------------------------------------------------------------------
>     Traceback (most recent call last):
>       File "/media/development/work/review_ambari/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
>         return func(*args, **keywargs)
>       File "/media/development/work/review_ambari/ambari-agent/src/test/python/resource_management/TestExecuteResource.py",
line 199, in test_attribute_environment_non_root
>         self.assertEqual(popen_mock.call_args_list[0][0][0], expected_command)
>     AssertionError: Lists differ: ['/bin/bash', '--login', '--no... != ['/bin/bash',
'--login', '--no...
>     
>     First differing element 4:
>     ambari-sudo.sh su test_user -l -s /bin/bash -c 'export  PATH='"'"'/home/i/.pyenv/shims:/home/i/.pyenv/bin:/media/development/environment/alternatives/jdk7/bin:/media/development/environment/alternatives/maven31/bin:/home/i/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/media/development/work/irobot/snippets/bin/:~/.nvm/v0.10.31/bin/:~/.nvm/v0.10.31/lib/node_modules/brunch/bin/:/media/development/environment/android-sdk-linux/tools:/media/development/environment/android-sdk-linux/platform-tools:/home/i/bin:/media/development/environment/alternatives/scala/bin::/bin'"'"'
JAVA_HOME=/test/java/home ; echo "1"'
>     ambari-sudo.sh su test_user -l -s /bin/bash -c 'export  PATH=/home/i/.pyenv/shims:/home/i/.pyenv/bin:/media/development/environment/alternatives/jdk7/bin:/media/development/environment/alternatives/maven31/bin:/home/i/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/media/development/work/irobot/snippets/bin/:~/.nvm/v0.10.31/bin/:~/.nvm/v0.10.31/lib/node_modules/brunch/bin/:/media/development/environment/android-sdk-linux/tools:/media/development/environment/android-sdk-linux/platform-tools:/home/i/bin:/media/development/environment/alternatives/scala/bin::/bin
JAVA_HOME=/test/java/home ; echo "1"'
>     
>     Diff is 2026 characters long. Set self.maxDiff to None to see it.
>     
>     ----------------------------------------------------------------------
>     Ran 410 tests in 6.631s
>     



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

Mime
View raw message