From 7439d84abc3d2491e254c4b31fd5e16f48a8d2cb Mon Sep 17 00:00:00 2001 From: efiacor Date: Mon, 6 Mar 2023 13:05:40 +0000 Subject: [DCAE-VES-OPENAPI] SDC-BE http support Signed-off-by: efiacor Change-Id: Iba7051df5d58e11978b28c54dba91c825015110b Issue-ID: DCAEGEN2-3335 --- Changelog.md | 1 + .../onap/ves/openapi/manager/config/DistributionClientConfig.java | 8 +++++++- src/main/resources/application.yml | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index c487852..675c9be 100644 --- a/Changelog.md +++ b/Changelog.md @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [1.3.1] - 2023/02/06 - [DCAEGEN2-3342] - dcaegen2-platform-ves-openapi-manager vulnerability updates + - [DCAEGEN2-3335] - dcae-ves-openapi-manager cannot use HTTP interface of SDC ## [1.3.0] - 2022/11/12 - [DMAAP-1809](https://jira.onap.org/browse/DMAAP-1809) diff --git a/src/main/java/org/onap/ves/openapi/manager/config/DistributionClientConfig.java b/src/main/java/org/onap/ves/openapi/manager/config/DistributionClientConfig.java index bc51801..334b9fb 100644 --- a/src/main/java/org/onap/ves/openapi/manager/config/DistributionClientConfig.java +++ b/src/main/java/org/onap/ves/openapi/manager/config/DistributionClientConfig.java @@ -3,7 +3,7 @@ * VES-OPENAPI-MANAGER * ================================================================================ * Copyright (C) 2021 Nokia. All rights reserved. - * Copyright © 2022 Nordix Foundation. All rights reserved. + * Copyright © 2022-2023 Nordix Foundation. 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,6 +50,7 @@ public class DistributionClientConfig implements IConfiguration { private String environmentName; private String consumerID; private Boolean activateServerTLSAuth; + private Boolean isUseHttpsWithSDC; private Boolean isFilterInEmptyResources; private String httpProxyHost; private int httpProxyPort; @@ -61,6 +62,11 @@ public class DistributionClientConfig implements IConfiguration { return sdcAddress; } + @Override + public Boolean isUseHttpsWithSDC() { + return isUseHttpsWithSDC; + } + @Override public String getUser() { return user; diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 0ff3f4e..e88ea63 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -5,13 +5,14 @@ vesopenapimanager: eventSchemaReferencePath: /event/structure/stndDefinedFields/structure/schemaReference/value distribution: sdcAddress: ${SDC_ADDRESS:sdc-be.onap:30204} + isUseHttpsWithSDC: false user: dcae password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U pollingInterval: 20 pollingTimeout: 20 consumerGroup: dcaegen2 - environmentName: AUTO consumerID: ves-openapi-manager + environmentName: AUTO activateServerTLSAuth: false isFilterInEmptyResources: false -- cgit 1.2.3-korg