summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/onap/sdc/helmvalidator/helm/validation/BashExecutor.java2
-rw-r--r--src/main/java/org/onap/sdc/helmvalidator/helm/validation/ValidationService.java2
-rw-r--r--src/main/java/org/onap/sdc/helmvalidator/helm/versions/ApiVersionsReader.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/onap/sdc/helmvalidator/helm/validation/BashExecutor.java b/src/main/java/org/onap/sdc/helmvalidator/helm/validation/BashExecutor.java
index 0bebc0a..066e731 100644
--- a/src/main/java/org/onap/sdc/helmvalidator/helm/validation/BashExecutor.java
+++ b/src/main/java/org/onap/sdc/helmvalidator/helm/validation/BashExecutor.java
@@ -36,7 +36,7 @@ import org.springframework.stereotype.Service;
public class BashExecutor {
private static final Logger LOGGER = LoggerFactory.getLogger(
- ValidationService.class);
+ BashExecutor.class);
BashOutput execute(String helmCommand) {
diff --git a/src/main/java/org/onap/sdc/helmvalidator/helm/validation/ValidationService.java b/src/main/java/org/onap/sdc/helmvalidator/helm/validation/ValidationService.java
index 1e6cedb..02f28a3 100644
--- a/src/main/java/org/onap/sdc/helmvalidator/helm/validation/ValidationService.java
+++ b/src/main/java/org/onap/sdc/helmvalidator/helm/validation/ValidationService.java
@@ -155,7 +155,7 @@ public class ValidationService {
LOGGER.debug("Command executions: {} ", helmCommand);
BashOutput chartTemplateResult = executor.execute(helmCommand);
- LOGGER.debug("Status code: " + chartTemplateResult.getExitValue());
+ LOGGER.debug("Status code: {}", chartTemplateResult.getExitValue());
if (chartTemplateResult.getExitValue() != 0) {
List<String> renderingErrors = parseTemplateError(chartTemplateResult.getOutputLines());
return new TemplateValidationResult(false, renderingErrors);
diff --git a/src/main/java/org/onap/sdc/helmvalidator/helm/versions/ApiVersionsReader.java b/src/main/java/org/onap/sdc/helmvalidator/helm/versions/ApiVersionsReader.java
index e5c1a2e..1c48d20 100644
--- a/src/main/java/org/onap/sdc/helmvalidator/helm/versions/ApiVersionsReader.java
+++ b/src/main/java/org/onap/sdc/helmvalidator/helm/versions/ApiVersionsReader.java
@@ -61,7 +61,7 @@ public class ApiVersionsReader {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(tarInput));
return bufferedReader.lines()
.filter(chartLine -> chartLine.contains(API_VERSION_PREFIX))
- .map(apiVersionLine -> apiVersionLine.replaceAll(API_VERSION_PREFIX, ""))
+ .map(apiVersionLine -> apiVersionLine.replace(API_VERSION_PREFIX, ""))
.map(String::trim)
.findFirst();
}