You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/11/23 22:15:00 UTC
[jira] [Commented] (AMBARI-24948) Test ordering issue in
ExecutionCommandWrapperTest
[ https://issues.apache.org/jira/browse/AMBARI-24948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16697534#comment-16697534 ]
Hudson commented on AMBARI-24948:
---------------------------------
SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #10326 (See [https://builds.apache.org/job/Ambari-trunk-Commit/10326/])
AMBARI-24948. Test ordering issue in ExecutionCommandWrapperTest. (github: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=fd346f5fc28c1dfe605c3e53cb039c657ac2a2ab])
* (edit) ambari-server/src/test/java/org/apache/ambari/server/actionmanager/ExecutionCommandWrapperTest.java
> Test ordering issue in ExecutionCommandWrapperTest
> --------------------------------------------------
>
> Key: AMBARI-24948
> URL: https://issues.apache.org/jira/browse/AMBARI-24948
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Reporter: Doroszlai, Attila
> Assignee: Doroszlai, Attila
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.8.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Success/failure of test cases in {{ExecutionCommandWrapperTest}} depends on the execution order. The two interdependent tests are {{testExecutionCommandNoRepositoryFile}} and {{testGetExecutionCommand}}, executing the former first makes the latter fail.
> {noformat:title=order 1}
> @Test
> public void testExecutionCommandNoRepositoryFile_first() throws Exception {
> testExecutionCommandNoRepositoryFile();
> testGetExecutionCommand();
> }
> {noformat}
> {noformat:title=result 1}
> [INFO] Running org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest
> [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.002 s <<< FAILURE! - in org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest
> [ERROR] testExecutionCommandNoRepositoryFile_first(org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest) Time elapsed: 0.031 s <<< FAILURE!
> java.lang.AssertionError
> at org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest.testGetExecutionCommand(ExecutionCommandWrapperTest.java:202)
> at org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest.testExecutionCommandNoRepositoryFile_first(ExecutionCommandWrapperTest.java:320)
> {noformat}
> {noformat:title=order 2}
> @Test
> public void testGetExecutionCommand_first() throws Exception {
> testGetExecutionCommand();
> testExecutionCommandNoRepositoryFile();
> }
> {noformat}
> {noformat:title=result 2}
> [INFO] Running org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest
> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.304 s - in org.apache.ambari.server.actionmanager.ExecutionCommandWrapperTest
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)