ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siddharth Wagle (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (AMBARI-8476) Run sudo commands as sudo and sudo su ability in Resource Management
Date Mon, 01 Dec 2014 22:41:12 GMT

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

Siddharth Wagle reopened AMBARI-8476:
-------------------------------------

======================================================================
FAIL: test_attribute_environment_non_root (TestExecuteResource.TestExecuteResource)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/swagle/Documents/workspace/asf-ambari/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/Users/swagle/Documents/workspace/asf-ambari/ambari-agent/src/test/python/resource_management/TestExecuteResource.py",
line 180, in test_attribute_environment_non_root
    self.assertEqual(popen_mock.call_args_list[0][0][0], expected_command)
AssertionError: Lists differ: ['/usr/bin/sudo', '-Hi', 'su',... != ['/usr/bin/sudo', '-Hi',
'su',...

First differing element 3:
test_user
-

  ['/usr/bin/sudo',
   '-Hi',
   'su',
+  '-',
   'test_user',
-  '-',
   '-s',
   '/bin/bash',
   '-c',
   'export  PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/MacGPG2/bin:/Users/swagle/Applications/sbt/bin:/bin
JAVA_HOME=/test/java/home ; echo "1"']

> Run sudo commands as sudo and sudo su ability in Resource Management
> --------------------------------------------------------------------
>
>                 Key: AMBARI-8476
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8476
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.0.0
>
>




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

Mime
View raw message