diff options
author | Vijay Venkatesh Kumar <vv770d@att.com> | 2022-05-24 17:55:34 -0400 |
---|---|---|
committer | Vijay Venkatesh Kumar <vv770d@att.com> | 2022-05-26 14:50:36 +0000 |
commit | cfc6837e96db3f540505d088c767f5da76d434a3 (patch) | |
tree | cf59233e5e56bedad6280b8a9946b6b4638c162f /mod2/helm-generator/helmchartgenerator-core/src/test | |
parent | 95855b69835177954e185f171af2f0aea3b3d3f3 (diff) |
[MOD/Helm-gen] Add log.path setting for helm-gen
Issue-ID: DCAEGEN2-3087
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Change-Id: I0ea4861ba029501b19f3bd811f597dd2949b2d7e
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Diffstat (limited to 'mod2/helm-generator/helmchartgenerator-core/src/test')
2 files changed, 6 insertions, 4 deletions
diff --git a/mod2/helm-generator/helmchartgenerator-core/src/test/input/blueprint/base/values.yaml b/mod2/helm-generator/helmchartgenerator-core/src/test/input/blueprint/base/values.yaml index ea82bbe..cd4c1bf 100644 --- a/mod2/helm-generator/helmchartgenerator-core/src/test/input/blueprint/base/values.yaml +++ b/mod2/helm-generator/helmchartgenerator-core/src/test/input/blueprint/base/values.yaml @@ -1,5 +1,5 @@ # ============LICENSE_START======================================================= -# Copyright (c) 2021 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2021-2022 AT&T Intellectual Property. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -50,7 +50,8 @@ postgres: # log directory where logging sidecar should look for log files # if absent, no sidecar will be deployed -#logDirectory: TBD #/opt/app/VESCollector/logs #DONE +#log: +# path: TBD #/opt/app/VESCollector/logs #DONE # directory where TLS certs should be stored # if absent, no certs will be retrieved and stored diff --git a/mod2/helm-generator/helmchartgenerator-core/src/test/java/org/onap/dcaegen2/platform/helmchartgenerator/ComponentSpecParserTest.java b/mod2/helm-generator/helmchartgenerator-core/src/test/java/org/onap/dcaegen2/platform/helmchartgenerator/ComponentSpecParserTest.java index 8b26d25..e7d8cf2 100644 --- a/mod2/helm-generator/helmchartgenerator-core/src/test/java/org/onap/dcaegen2/platform/helmchartgenerator/ComponentSpecParserTest.java +++ b/mod2/helm-generator/helmchartgenerator-core/src/test/java/org/onap/dcaegen2/platform/helmchartgenerator/ComponentSpecParserTest.java @@ -1,6 +1,6 @@ /* * # ============LICENSE_START======================================================= - * # Copyright (c) 2021 AT&T Intellectual Property. All rights reserved. + * # Copyright (c) 2021-2022 AT&T Intellectual Property. All rights reserved. * # ================================================================================ * # Licensed under the Apache License, Version 2.0 (the "License"); * # you may not use this file except in compliance with the License. @@ -78,7 +78,8 @@ class ComponentSpecParserTest { private void assertOuterKeyValues(ChartInfo chartInfo) { Map<String, Object> outerKv = chartInfo.getValues(); assertThat(outerKv.get("image")).isEqualTo("nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"); - assertThat(outerKv.get("logDirectory")).isEqualTo("/opt/app/VESCollector/logs/"); + Map<String, Object> logPath = (Map<String, Object>) chartInfo.getValues().get("log"); + assertThat(logPath.get("path")).isEqualTo("/opt/app/VESCollector/logs/"); assertThat(outerKv.get("certDirectory")).isEqualTo("/opt/app/dcae-certificate/"); assertTrue((Boolean) outerKv.get("tlsServer")); assertTrue((Boolean) outerKv.get("useCmpv2Certificates")); |