> On May 17, 2019, 5:01 p.m., Abhay Kulkarni wrote:
> > agents-common/src/main/java/org/apache/ranger/plugin/model/validation/RangerPolicyValidator.java
> > Lines 213 (patched)
> > <https://reviews.apache.org/r/70654/diff/1/?file=2145481#file2145481line213>
> >
> >     Please add a unit test case to TestRangerPolicyValidator to cover this 
> > scenario.

Added couple of test cases around this change.


- bhavik


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


On May 16, 2019, 10:48 a.m., bhavik patel wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70654/
> -----------------------------------------------------------
> 
> (Updated May 16, 2019, 10:48 a.m.)
> 
> 
> Review request for ranger, Ankita Sinha, Don Bosco Durai, Gautam Borad, Abhay 
> Kulkarni, Madhan Neethiraj, Oliver Szabo, Pradeep Agrawal, Ramesh Mani, 
> Selvamohan Neethiraj, Sailaja Polavarapu, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-2430
>     https://issues.apache.org/jira/browse/RANGER-2430
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Steps to Reproduce:
> 1. Create a zone for HDFS service
> Zone name: zone1
> Zoneadmin user: zoneadmin1
> 2. Create a hbase policy with zone name as "zone1" through curl from 
> zoneadmin user: zoneadmin1
> 3. It should not be allowed as hbase service is not associated with zone: 
> zone1
> 
> 
> Diffs
> -----
> 
>   
> agents-common/src/main/java/org/apache/ranger/plugin/errors/ValidationErrorCode.java
>  3111037 
>   
> agents-common/src/main/java/org/apache/ranger/plugin/model/validation/RangerPolicyValidator.java
>  990aab0 
> 
> 
> Diff: https://reviews.apache.org/r/70654/diff/1/
> 
> 
> Testing
> -------
> 
> User is no more able to create zone policy using curl command within service 
> which are not associated to zone.
> 
> 
> Thanks,
> 
> bhavik patel
> 
>

Reply via email to