summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsushant53 <sushant.jadhav@t-systems.com>2023-03-15 13:13:34 +0530
committersushant53 <sushant.jadhav@t-systems.com>2023-03-17 16:02:45 +0530
commit17e1aa838fa6185f10cf0838c73d67f6ccae8e3a (patch)
treea48f5712b1578b94d19cb9f66b59ee63a9b2ce36
parent04667bf8f150970078de9ac400df1f71b74c082c (diff)
[DCAEGEN2] Provision for restconf-collector to set to http1.4.1
Un-commented code in RestapiCallNodeUtil.java, so that restconf-collector can support HTTP Issue-ID: DCAEGEN2-3336 Signed-off-by: sushant53 <sushant.jadhav@t-systems.com> Change-Id: Ie9209003c296379e4eafaa8f4d622137f1b9ab32 Signed-off-by: sushant53 <sushant.jadhav@t-systems.com>
-rw-r--r--Changelog.md3
-rw-r--r--pom.xml2
-rwxr-xr-xsrc/main/java/org/onap/dcae/common/RestapiCallNodeUtil.java16
-rw-r--r--version.properties2
4 files changed, 13 insertions, 10 deletions
diff --git a/Changelog.md b/Changelog.md
index fe86cbb..0a73d68 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
+## [1.4.1] - 2023/03/15
+ - [DCAEGEN2-3336] - Restconf-collector cannot be set to HTTP
+
## [1.4.0] - 2023/02/1
- [DCAEGEN2-3337] - dcaegen2-collectors-restconf vulnerability updates
diff --git a/pom.xml b/pom.xml
index f30fc19..35f2cbd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@ limitations under the License.
</parent>
<groupId>org.onap.dcaegen2.collectors.restconf</groupId>
<artifactId>restconfcollector</artifactId>
- <version>1.4.0-SNAPSHOT</version>
+ <version>1.4.1-SNAPSHOT</version>
<name>dcaegen2-collectors-restconf</name>
<description>RestConfCollector</description>
<properties>
diff --git a/src/main/java/org/onap/dcae/common/RestapiCallNodeUtil.java b/src/main/java/org/onap/dcae/common/RestapiCallNodeUtil.java
index 9566658..470df13 100755
--- a/src/main/java/org/onap/dcae/common/RestapiCallNodeUtil.java
+++ b/src/main/java/org/onap/dcae/common/RestapiCallNodeUtil.java
@@ -3,6 +3,7 @@
* org.onap.dcaegen2.collectors.restconf
* ================================================================================
* Copyright (C) 2018-2019 Huawei. All rights reserved.
+ * Copyright (C) 2023 Deutsche Telekom AG. 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.
@@ -43,14 +44,13 @@ public class RestapiCallNodeUtil {
}
public static String getUriMethod(Boolean authEnabled) {
- /*@TODO: As per configuration */
-// String uri;
-// if (authEnabled) {
-// uri = "https://";
-// } else {
-// uri = "http://";
-// }
- return "https://";
+ String uri;
+ if (authEnabled) {
+ uri = "https://";
+ } else {
+ uri = "http://";
+ }
+ return uri;
}
public static Parameters getParameters(Map<String, String> paramMap) throws Exception {
diff --git a/version.properties b/version.properties
index 9e0d73d..f352992 100644
--- a/version.properties
+++ b/version.properties
@@ -1,6 +1,6 @@
major=1
minor=4
-patch=0
+patch=1
base_version=${major}.${minor}.${patch}
release_version=${base_version}
snapshot_version=${base_version}-SNAPSHOT