Skip to content

Commit

Permalink
Resolve code review sugesstions for issue wso2#360
Browse files Browse the repository at this point in the history
  • Loading branch information
vidurananayakkara committed Jan 22, 2018
1 parent 117e969 commit 78f93d3
Show file tree
Hide file tree
Showing 21 changed files with 834 additions and 800 deletions.
120 changes: 0 additions & 120 deletions common/src/main/java/org/wso2/testgrid/common/ImmutablePair.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.testgrid.common;

/**
* Class to maintain constants across modules.
*
* @since 1.0.0
*/
public class TestGridConstants {

// Logging constants
public static final String TEST_LOG_FILE_NAME = "test-run.log";
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.wso2.testgrid.common.Infrastructure;
import org.wso2.testgrid.common.Product;
import org.wso2.testgrid.common.Status;
import org.wso2.testgrid.common.TestGridConstants;
import org.wso2.testgrid.common.TestPlan;
import org.wso2.testgrid.common.TestScenario;
import org.wso2.testgrid.common.exception.CommandExecutionException;
Expand Down Expand Up @@ -289,8 +290,8 @@ private void executeTestPlan(TestPlan testPlan, Infrastructure infrastructure) t
*/
private String deriveLogFilePath(TestPlan testPlan) throws TestGridLoggingException {
try {
Path testRunArtifactsDir = TestGridUtil.getTestRunArtifactsDirectory(testPlan);
return testRunArtifactsDir.resolve("test").toString();
Path testRunDirectory = TestGridUtil.getTestRunArtifactsDirectory(testPlan);
return testRunDirectory.resolve(TestGridConstants.TEST_LOG_FILE_NAME).toString();
} catch (TestGridException e) {
throw new TestGridLoggingException(
"Error in getting the test run artifacts directory location " +
Expand Down
4 changes: 2 additions & 2 deletions distribution/bin/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
<Routing name="Routing">
<Routes pattern="$${path:key2}">
<Route>
<RollingFile name="SCENARIO_LOGFILE" fileName="${env:TESTGRID_HOME}/${path:key2}.log"
filePattern="${env:TESTGRID_HOME}/${path:key2}.log">
<RollingFile name="SCENARIO_LOGFILE" fileName="${env:TESTGRID_HOME}/${path:key2}"
filePattern="${env:TESTGRID_HOME}/${path:key2}">
<PatternLayout pattern="[%d] %5p {%c} - %m%ex%n" />
<Policies>
<SizeBasedTriggeringPolicy size="50 MB" />
Expand Down
6 changes: 6 additions & 0 deletions web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
<artifactId>aws-java-sdk</artifactId>
</dependency>

<!-- Other dependencies -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>

<!-- Jacoco agent -->
<dependency>
<groupId>org.jacoco</groupId>
Expand Down
Loading

0 comments on commit 78f93d3

Please sign in to comment.