[ 
https://issues.apache.org/jira/browse/AMBARI-21713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16128659#comment-16128659
 ] 

Dmytro Grinenko commented on AMBARI-21713:
------------------------------------------

[~adoroszlai] thx, it looks that those tests forcing output of 3-element tuple 
and checking call signature.

committed fix for those:
{code}
To https://git-wip-us.apache.org/repos/asf/ambari.git
   003e82adb8..6618d7d53c  branch-2.6 -> branch-2.6
   5c78bd752a..fc8dd78e14  trunk -> trunk
{code}

Tests: 
{code}
[11:32:50] :     [Step 2/2] [INFO] 
------------------------------------------------------------------------
[11:32:50] :     [Step 2/2] [INFO] Reactor Summary:
[11:32:50] :     [Step 2/2] [INFO] 
[11:32:50] :     [Step 2/2] [INFO] Ambari Views 
....................................... SUCCESS [  2.295 s]
[11:32:50] :     [Step 2/2] [INFO] ambari-utility 
..................................... SUCCESS [  2.449 s]
[11:32:50] :     [Step 2/2] [INFO] Ambari Metrics Common 
.............................. SUCCESS [  0.800 s]
[11:32:50] :     [Step 2/2] [INFO] Ambari Service Advisor 
............................. SUCCESS [  0.256 s]
[11:32:50] :     [Step 2/2] [INFO] Ambari Server 
...................................... SUCCESS [02:00 min]
[11:32:50] :     [Step 2/2] [INFO] Ambari Agent 
....................................... SUCCESS [ 24.673 s]
[11:32:50] :     [Step 2/2] [INFO] 
------------------------------------------------------------------------
[11:32:50] :     [Step 2/2] [INFO] BUILD SUCCESS
[11:32:50] :     [Step 2/2] [INFO] 
------------------------------------------------------------------------
[11:32:50] :     [Step 2/2] [INFO] Total time: 02:31 min
[11:32:50] :     [Step 2/2] [INFO] Finished at: 2017-08-16T11:32:50+00:00
[11:32:50] :     [Step 2/2] [INFO] Final Memory: 160M/3234M
[11:32:50] :     [Step 2/2] [INFO] 
------------------------------------------------------------------------
{code}

> Python tests started under uid=0 and uid > 0 works differently
> --------------------------------------------------------------
>
>                 Key: AMBARI-21713
>                 URL: https://issues.apache.org/jira/browse/AMBARI-21713
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: Dmytro Grinenko
>            Assignee: Dmytro Grinenko
>            Priority: Critical
>             Fix For: trunk
>
>
> The cause is sudo.py and same meaning modules, which implements different 
> logic depends on user uid. Coz of that us tests covering only uid > 0 logic 
> and starting them from root (on VM or docker) causing them to fail



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to