diff options
author | 2018-09-24 10:42:47 +0200 | |
---|---|---|
committer | 2018-11-22 13:20:04 +0100 | |
commit | e4dd72d3804b697f110a79ba5510c654f0765ec5 (patch) | |
tree | 4bf7403b937f9d822eb59bd905b63dd037eb7306 /hv-collector-core/src/test | |
parent | 7d802e8716b08f84839307bf6a184d4c145800ca (diff) |
Remove Consul configuration decoding
Change-Id: I36a6aea55507abfb61613806c93257b049d6eea4
Issue-ID: DCAEGEN2-827
Signed-off-by: Filip Krzywka <filip.krzywka@nokia.com>
Diffstat (limited to 'hv-collector-core/src/test')
-rw-r--r-- | hv-collector-core/src/test/kotlin/org/onap/dcae/collectors/veshv/impl/adapters/ConsulConfigurationProviderTest.kt | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/hv-collector-core/src/test/kotlin/org/onap/dcae/collectors/veshv/impl/adapters/ConsulConfigurationProviderTest.kt b/hv-collector-core/src/test/kotlin/org/onap/dcae/collectors/veshv/impl/adapters/ConsulConfigurationProviderTest.kt index 7a1a4cdc..c6364f74 100644 --- a/hv-collector-core/src/test/kotlin/org/onap/dcae/collectors/veshv/impl/adapters/ConsulConfigurationProviderTest.kt +++ b/hv-collector-core/src/test/kotlin/org/onap/dcae/collectors/veshv/impl/adapters/ConsulConfigurationProviderTest.kt @@ -141,9 +141,8 @@ private fun constructConsulConfigProvider(url: String, const val kafkaAddress = "message-router-kafka" -fun constructConsulResponse(): String { - - val config = """{ +fun constructConsulResponse(): String = + """{ "dmaap.kafkaBootstrapServers": "$kafkaAddress:9093", "collector.routing": [ { @@ -156,18 +155,3 @@ fun constructConsulResponse(): String { } ] }""" - - val encodedValue = String(Base64.getEncoder().encode(config.toByteArray())) - - return """[ - { - "CreateIndex": 100, - "ModifyIndex": 200, - "LockIndex": 200, - "Key": "zip", - "Flags": 0, - "Value": "$encodedValue", - "Session": "adf4238a-882b-9ddc-4a9d-5b6758e4159e" - } - ]""" -} |