You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Doroszlai, Attila (JIRA)" <ji...@apache.org> on 2018/11/23 16:23:00 UTC
[jira] [Updated] (AMBARI-24948) Test ordering issue in
ExecutionCommandWrapperTest
[ https://issues.apache.org/jira/browse/AMBARI-24948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Doroszlai, Attila updated AMBARI-24948:
---------------------------------------
Description:
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}
was:
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}
> 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
> Fix For: 2.8.0
>
>
> 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)