summaryrefslogtreecommitdiffstats
path: root/prh-app-server/config
diff options
context:
space:
mode:
authorwasala <przemyslaw.wasala@nokia.com>2018-04-12 13:37:41 +0200
committerwasala <przemyslaw.wasala@nokia.com>2018-04-12 14:29:12 +0200
commit3c2e8c9c4c32ad59be75a7500e628344c6dab5bf (patch)
tree98c4238f48612253435037c249e2929609933000 /prh-app-server/config
parentda7aa97bebc796e898b9225d45a256f946d39f82 (diff)
Already added loading config for AAI and DMAAP
First of all we have defined a file in which we have pointer to configuration file for DMAAP and AAI After that added UT Change-Id: I7f9554a019b348a3460f5fa9d8dd3e4002a6686f Issue-ID: DCAEGEN2-407 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
Diffstat (limited to 'prh-app-server/config')
-rw-r--r--prh-app-server/config/application.yaml37
-rw-r--r--prh-app-server/config/prh_endpoints.json38
2 files changed, 39 insertions, 36 deletions
diff --git a/prh-app-server/config/application.yaml b/prh-app-server/config/application.yaml
index 8b2e7ac7..0baa1f9d 100644
--- a/prh-app-server/config/application.yaml
+++ b/prh-app-server/config/application.yaml
@@ -11,39 +11,4 @@ logging:
org.onap.dcaegen2.services.prh: INFO
file: opt/log/application.log
app:
- configs:
- aaiHttpClientConfiguration:
- aaiHost: "dns.aai.host"
- aaiHostPortNumber: 8080
- aaiProtocol: "https"
- aaiUserName: "admin"
- aaiUserPassword: "admin"
- aaiIgnoreSSLCertificateErrors: true
-#app:
-# AAIHttpClientConfiguration:
-# aaiHost: "localhost"
-# aaiHostPortNumber: 8080
-# aaiProtocol: "http"
-# aaiUserName: "admin"
-# aaiUserPassword: "admin"
-# aaiIgnoreSSLCertificateErrors: true
-# dmaap-consumer-configuration:
-# dmmaphost-name: "localhost"
-# dmmapport-number: 2222
-# dmmaptopic-name: "temp"
-# dmmapprotocol: "http"
-# dmmapuserName: "admin"
-# dmmapuserPassword: "admin"
-# dmmapcontentType: "application/json"
-# consumerId: "1"
-# consumerGroup: "other"
-# timeoutMS: 1000
-# message-limit: 1000
-# dmaap-producer-configuration:
-# dmmaphostName: "localhost"
-# dmmapportNumber: 2223
-# dmmaptopicName: "temp"
-# dmmapprotocol: "http"
-# dmmapuserName: "admin"
-# dmmapuserPassword: "admin"
-# dmmapcontentType: "application/json"
+ filepath: config/prh_endpoints.json
diff --git a/prh-app-server/config/prh_endpoints.json b/prh-app-server/config/prh_endpoints.json
new file mode 100644
index 00000000..dcfbab3f
--- /dev/null
+++ b/prh-app-server/config/prh_endpoints.json
@@ -0,0 +1,38 @@
+{
+ "configs": {
+ "dmaap": {
+ "dmaapConsumerConfiguration": {
+ "dmmapHostName": "localhost",
+ "dmmapPortNumber": 2222,
+ "dmmapTopicName": "temp",
+ "dmmapProtocol": "http",
+ "dmmapUserName": "admin",
+ "dmmapUserPassword": "admin",
+ "dmmapContentType": "application/json",
+ "consumerId": "1",
+ "consumerGroup": "other",
+ "timeoutMS": 1000,
+ "message-limit": 1000
+ },
+ "dmaapProducerConfiguration": {
+ "dmmapHostName": "localhost",
+ "dmmapPortNumber": 2223,
+ "dmmapTopicName": "temp",
+ "dmmapProtocol": "http",
+ "dmmapUserName": "admin",
+ "dmmapUserPassword": "admin",
+ "dmmapContentType": "application/json"
+ }
+ },
+ "aai": {
+ "aaiHttpClientConfiguration": {
+ "aaiHost": "",
+ "aaiHostPortNumber": 8080,
+ "aaiProtocol": "https",
+ "aaiUserName": "admin",
+ "aaiUserPassword": "admin",
+ "aaiIgnoreSSLCertificateErrors": true
+ }
+ }
+ }
+} \ No newline at end of file