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

Eric Yang commented on YARN-8341:
---------------------------------

[~csingh] Thanks for the patch.  I think it will be good to create a separate 
profile, and the profile can be activated by properties.  This will be easier 
to show the required properties to run integration test.  The separated profile 
will compile integration test, and run the test cases against the target 
cluster.  For example:

{code}
<profiles>
  <profile>
    <activation>
      <property>
        <name>rm.host</name>
      </property>
    </activation>
    <build>
      <plugins>
        <plugin>
           ...
           <phase>integration-test</phase>
           ...
        </plugin>
      </plugins>
    </build>
  </profile>
</profiles>
{code}

This enables Jenkins job to run the integration test with minimum effort on CLI 
settings:

{code}
mvn integration-test -Drm.host=localhost
{code}

User.name property is already predefined by JVM.  It would be good to use 
current user identity to launch to support both kerberos and non-kerberos tests.

> Yarn Service: Integration tests 
> --------------------------------
>
>                 Key: YARN-8341
>                 URL: https://issues.apache.org/jira/browse/YARN-8341
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Chandni Singh
>            Assignee: Chandni Singh
>            Priority: Major
>         Attachments: YARN-8341.wip.patch
>
>
> In order to test the rest api end-to-end, we can add Integration tests for 
> Yarn service api. 
> The integration tests 
> * belong to junit category {{IntegrationTest}}.
> * will be only run when triggered by executing {{mvn 
> failsafe:integration-test}}
> * the surefire plugin for regular tests excludes {{IntegrationTest}}
> * RM host, user name, and any additional properties which are needed to 
> execute the tests against a cluster can be passed as System properties.
> For eg. {{mvn failsafe:integration-test -Drm.host=localhost -Duser.name=root}}
> We can add more integration tests which can check scalability and performance.
> Have these tests here benefits everyone in the community because anyone can 
> run these tests against there cluster. 
> Attaching a work in progress patch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to