summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorPiotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com>2021-06-02 16:15:20 +0200
committerPiotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com>2021-06-08 12:41:27 +0200
commitd5fb9da24fd35c8dc02349d8deb0af0ff743eb9b (patch)
treee0e70c992a2a22b0ae7cf4fa4a4234a91f84aea7 /src/main
parente3aa098cf41518bea1f9f90594f23a37172579fb (diff)
Add logging ValidationResult1.2.1
Issue-ID: SDC-3185 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: Ifd20b83e50c5069899ef53a0049ab07ab4394a8e
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/sdc/helmvalidator/api/ValidationController.java1
-rw-r--r--src/main/java/org/onap/sdc/helmvalidator/helm/validation/model/ValidationResult.java12
2 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/org/onap/sdc/helmvalidator/api/ValidationController.java b/src/main/java/org/onap/sdc/helmvalidator/api/ValidationController.java
index 7ce2656..ba7b591 100644
--- a/src/main/java/org/onap/sdc/helmvalidator/api/ValidationController.java
+++ b/src/main/java/org/onap/sdc/helmvalidator/api/ValidationController.java
@@ -106,6 +106,7 @@ public class ValidationController {
file.getOriginalFilename(), file.getSize(), version);
ValidationResult result = validationService
.process(version, file, isLinted, isStrictLinted);
+ LOGGER.debug("Processed file: {}, validation result: {}" , file.getOriginalFilename(), result);
return new ResponseEntity<>(result, HttpStatus.OK);
}
}
diff --git a/src/main/java/org/onap/sdc/helmvalidator/helm/validation/model/ValidationResult.java b/src/main/java/org/onap/sdc/helmvalidator/helm/validation/model/ValidationResult.java
index bb4fccc..eb608f4 100644
--- a/src/main/java/org/onap/sdc/helmvalidator/helm/validation/model/ValidationResult.java
+++ b/src/main/java/org/onap/sdc/helmvalidator/helm/validation/model/ValidationResult.java
@@ -95,4 +95,16 @@ public class ValidationResult {
public String getVersionUsed() {
return versionUsed;
}
+
+ @Override
+ public String toString() {
+ return "ValidationResult{" +
+ " isDeployable=" + isDeployable +
+ ", renderErrors=" + renderErrors +
+ ", isValid=" + isValid +
+ ", lintWarning=" + lintWarning +
+ ", lintError=" + lintError +
+ ", versionUsed=" + versionUsed +
+ " }";
+ }
}