You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Colm O hEigeartaigh <co...@apache.org> on 2016/10/19 14:42:53 UTC

Review Request 53020: Create tests for the Kafka plugin

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

Review request for ranger.


Bugs: RANGER-1188
    https://issues.apache.org/jira/browse/RANGER-1188


Repository: ranger


Description
-------

Create tests for the Kafka plugin


Diffs
-----

  plugin-kafka/pom.xml 4e2334d 
  plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerTest.java PRE-CREATION 
  plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/RangerAdminClientImpl.java PRE-CREATION 
  plugin-kafka/src/test/resources/brokerstore.jks PRE-CREATION 
  plugin-kafka/src/test/resources/clientstore.jks PRE-CREATION 
  plugin-kafka/src/test/resources/kafka-policies.json PRE-CREATION 
  plugin-kafka/src/test/resources/ranger-kafka-security.xml PRE-CREATION 
  plugin-kafka/src/test/resources/servicestore.jks PRE-CREATION 
  plugin-kafka/src/test/resources/truststore.jks PRE-CREATION 

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


Testing
-------


Thanks,

Colm O hEigeartaigh


Re: Review Request 53020: Create tests for the Kafka plugin

Posted by Colm O hEigeartaigh <co...@apache.org>.

> On Oct. 19, 2016, 11:20 p.m., Velmurugan Periasamy wrote:
> > plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerTest.java, line 1
> > <https://reviews.apache.org/r/53020/diff/1/?file=1541467#file1541467line1>
> >
> >     Hi Colm,
> >     
> >     Thanks for the patch. Could you please address the below?
> >     
> >     1] Explore creating the jks files on the fly? This can avoid including binary files in the code base.
> >     
> >     2] It can also avoid the error applying the patch. I get the below error. 
> >     ```$ git apply --verbose --check -v < ~/Downloads/patches/ranger/0001-RANGER-1188-Create-tests-for-the-Kafka-plugin.patch
> >     error: unrecognized binary patch at line 978
> >     Checking patch plugin-kafka/pom.xml...
> >     ```....
> >     
> >     3] Any estimate on how long these tests will take to complete? It is better not to significantly increase the build time.

Hi Vel,

Yes, I updated the patch to use BouncyCastle to create the keys on the fly (you may need to download the patch on the JIRA instead of here). The entire build of the plugin-kafka module including running the tests takes 13 seconds on my machine.

Colm.


- Colm


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


On Oct. 24, 2016, 3:20 p.m., Colm O hEigeartaigh wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/53020/
> -----------------------------------------------------------
> 
> (Updated Oct. 24, 2016, 3:20 p.m.)
> 
> 
> Review request for ranger.
> 
> 
> Bugs: RANGER-1188
>     https://issues.apache.org/jira/browse/RANGER-1188
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Create tests for the Kafka plugin
> 
> 
> Diffs
> -----
> 
>   plugin-kafka/pom.xml 4e2334d 
>   plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerTest.java PRE-CREATION 
>   plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/RangerAdminClientImpl.java PRE-CREATION 
>   plugin-kafka/src/test/resources/kafka-policies.json PRE-CREATION 
>   plugin-kafka/src/test/resources/ranger-kafka-security.xml PRE-CREATION 
>   pom.xml 6e39ace 
> 
> Diff: https://reviews.apache.org/r/53020/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Colm O hEigeartaigh
> 
>


Re: Review Request 53020: Create tests for the Kafka plugin

Posted by Velmurugan Periasamy <vp...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53020/#review153320
-----------------------------------------------------------




plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerTest.java (line 1)
<https://reviews.apache.org/r/53020/#comment222610>

    Hi Colm,
    
    Thanks for the patch. Could you please address the below?
    
    1] Explore creating the jks files on the fly? This can avoid including binary files in the code base.
    
    2] It can also avoid the error applying the patch. I get the below error. 
    ```$ git apply --verbose --check -v < ~/Downloads/patches/ranger/0001-RANGER-1188-Create-tests-for-the-Kafka-plugin.patch
    error: unrecognized binary patch at line 978
    Checking patch plugin-kafka/pom.xml...
    ```....
    
    3] Any estimate on how long these tests will take to complete? It is better not to significantly increase the build time.


- Velmurugan Periasamy


On Oct. 19, 2016, 2:42 p.m., Colm O hEigeartaigh wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/53020/
> -----------------------------------------------------------
> 
> (Updated Oct. 19, 2016, 2:42 p.m.)
> 
> 
> Review request for ranger.
> 
> 
> Bugs: RANGER-1188
>     https://issues.apache.org/jira/browse/RANGER-1188
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Create tests for the Kafka plugin
> 
> 
> Diffs
> -----
> 
>   plugin-kafka/pom.xml 4e2334d 
>   plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerTest.java PRE-CREATION 
>   plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/RangerAdminClientImpl.java PRE-CREATION 
>   plugin-kafka/src/test/resources/brokerstore.jks PRE-CREATION 
>   plugin-kafka/src/test/resources/clientstore.jks PRE-CREATION 
>   plugin-kafka/src/test/resources/kafka-policies.json PRE-CREATION 
>   plugin-kafka/src/test/resources/ranger-kafka-security.xml PRE-CREATION 
>   plugin-kafka/src/test/resources/servicestore.jks PRE-CREATION 
>   plugin-kafka/src/test/resources/truststore.jks PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/53020/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Colm O hEigeartaigh
> 
>


Re: Review Request 53020: Create tests for the Kafka plugin

Posted by Velmurugan Periasamy <vp...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53020/#review153785
-----------------------------------------------------------


Ship it!




Ship It!

- Velmurugan Periasamy


On Oct. 24, 2016, 3:20 p.m., Colm O hEigeartaigh wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/53020/
> -----------------------------------------------------------
> 
> (Updated Oct. 24, 2016, 3:20 p.m.)
> 
> 
> Review request for ranger.
> 
> 
> Bugs: RANGER-1188
>     https://issues.apache.org/jira/browse/RANGER-1188
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Create tests for the Kafka plugin
> 
> 
> Diffs
> -----
> 
>   plugin-kafka/pom.xml 4e2334d 
>   plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerTest.java PRE-CREATION 
>   plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/RangerAdminClientImpl.java PRE-CREATION 
>   plugin-kafka/src/test/resources/kafka-policies.json PRE-CREATION 
>   plugin-kafka/src/test/resources/ranger-kafka-security.xml PRE-CREATION 
>   pom.xml 6e39ace 
> 
> Diff: https://reviews.apache.org/r/53020/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Colm O hEigeartaigh
> 
>


Re: Review Request 53020: Create tests for the Kafka plugin

Posted by Colm O hEigeartaigh <co...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53020/
-----------------------------------------------------------

(Updated Oct. 24, 2016, 3:20 p.m.)


Review request for ranger.


Bugs: RANGER-1188
    https://issues.apache.org/jira/browse/RANGER-1188


Repository: ranger


Description
-------

Create tests for the Kafka plugin


Diffs (updated)
-----

  plugin-kafka/pom.xml 4e2334d 
  plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/KafkaRangerAuthorizerTest.java PRE-CREATION 
  plugin-kafka/src/test/java/org/apache/ranger/authorization/kafka/authorizer/RangerAdminClientImpl.java PRE-CREATION 
  plugin-kafka/src/test/resources/kafka-policies.json PRE-CREATION 
  plugin-kafka/src/test/resources/ranger-kafka-security.xml PRE-CREATION 
  pom.xml 6e39ace 

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


Testing
-------


Thanks,

Colm O hEigeartaigh