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

(Updated Nov. 19, 2015, 6:50 p.m.)


Review request for Ambari, Alejandro Fernandez, Richard Zang, Sumit Mohanty, 
and Sid Wagle.


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


Repository: ambari


Description
-------

Add permission name to to the dataset returned by the privilege resource 
provider.

The expected dataset for a privilege item is:
```
{
  "href" : "http://ambari-server:8080/api/v1/privileges/1";,
  "PrivilegeInfo" : {
    "permission_name" : "AMBARI.ADMINISTRATOR",
    "permission_label" : "Administrator",
    "principal_name" : "admin",
    "principal_type" : "USER",
    "privilege_id" : 1,
    "type" : "AMBARI"
  }
}
```


Diffs (updated)
-----

  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AmbariPrivilegeResourceProvider.java
 f4839e9 
  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterPrivilegeResourceProvider.java
 b2d8018 
  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/PrivilegeResourceProvider.java
 154229a 
  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UserPrivilegeResourceProvider.java
 0621286 
  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ViewPrivilegeResourceProvider.java
 090805e 
  
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AmbariPrivilegeResourceProviderTest.java
 6286aea 
  
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ClusterPrivilegeResourceProviderTest.java
 62ff60d 
  
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ViewPrivilegeResourceProviderTest.java
 c156a38 

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


Testing
-------

Manually tested

# Local test results: 

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:01:03.747s
[INFO] Finished at: Thu Nov 19 18:37:39 EST 2015
[INFO] Final Memory: 68M/1101M
[INFO] ------------------------------------------------------------------------

# Jenkins test result: PENDING


Thanks,

Robert Levas

Reply via email to