diff options
author | Tomasz Wrobel <tomasz.wrobel@nokia.com> | 2022-07-15 11:35:37 +0200 |
---|---|---|
committer | Tomasz Wrobel <tomasz.wrobel@nokia.com> | 2022-07-25 09:53:33 +0200 |
commit | 32563249ea8a984244dc4059438db275169cad39 (patch) | |
tree | 0295046c2a82d8d045e00e2935712106474c7003 /rest-services/cbs-client/src/test/resources | |
parent | b85a81257af612d836f5a897ee07a1a7d3e71999 (diff) |
Fix environment variable substitution for complex cases
Issue-ID: DCAEGEN2-3223
Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com>
Change-Id: I9cfb612f0cabf6a2c96ccc4c80493885c02549fe
Diffstat (limited to 'rest-services/cbs-client/src/test/resources')
-rw-r--r-- | rest-services/cbs-client/src/test/resources/sample_expected_parsed_service_config.json | 54 | ||||
-rw-r--r-- | rest-services/cbs-client/src/test/resources/sample_service_config.json | 1 |
2 files changed, 55 insertions, 0 deletions
diff --git a/rest-services/cbs-client/src/test/resources/sample_expected_parsed_service_config.json b/rest-services/cbs-client/src/test/resources/sample_expected_parsed_service_config.json new file mode 100644 index 00000000..e14d9609 --- /dev/null +++ b/rest-services/cbs-client/src/test/resources/sample_expected_parsed_service_config.json @@ -0,0 +1,54 @@ +{ + "keystore.path": "/var/run/security/keystore.p12", + "testMultiReplacement": "admin/admin/admin_secret/admin_secret", + "streams_publishes": { + "perf3gpp": { + "testArray": [{ + "testPrimitiveArray": ["admin", "admin_secret", { + "nestedArray": ["admin"] + } + ], + "testPrimitive": "admin", + "aaf_credentials": { + "username": "admin", + "password": "admin_secret" + } + } + ], + "type": "kafka", + "kafka_info": { + "bootstrap_servers": "dmaap-mr-kafka:6060", + "topic_name": "HVVES_PERF3GPP" + } + }, + "pnf_ready": { + "aaf_credentials": { + "username": "admin", + "password": "admin_secret" + }, + "type": "message_router", + "dmaap_info": { + "topic_url": "http://message-router:3904/events/VES_PNF_READY" + } + }, + "call_trace": { + "aaf_credentials": { + "username": "admin", + "password": "admin_secret" + }, + "type": "kafka", + "kafka_info": { + "bootstrap_servers": "dmaap-mr-kafka:6060", + "topic_name": "HVVES_TRACE" + } + } + }, + "streams_subscribes": { + "measurements": { + "type": "message_router", + "dmaap_info": { + "topic_url": "http://message-router:3904/events/VES_MEASUREMENT" + } + } + } +} diff --git a/rest-services/cbs-client/src/test/resources/sample_service_config.json b/rest-services/cbs-client/src/test/resources/sample_service_config.json index e5798597..b0c2dd68 100644 --- a/rest-services/cbs-client/src/test/resources/sample_service_config.json +++ b/rest-services/cbs-client/src/test/resources/sample_service_config.json @@ -1,5 +1,6 @@ { "keystore.path": "/var/run/security/keystore.p12", + "testMultiReplacement": "${AAF_USER}/${AAF_USER}/${AAF_PASSWORD}/${AAF_PASSWORD}", "streams_publishes": { "perf3gpp": { "testArray": [{ |