diff options
author | Jakub Dudycz <jakub.dudycz@nokia.com> | 2018-08-07 14:18:37 +0200 |
---|---|---|
committer | Jakub Dudycz <jakub.dudycz@nokia.com> | 2018-08-08 14:51:38 +0200 |
commit | dd827e2c1cc984d9ed1fed9914cbef0e985ea625 (patch) | |
tree | ace76509b89db99ca68509991f410426c1316cd3 /hv-collector-main/src/test | |
parent | f16fff6a5c15474d86ea304b499535076d5a368c (diff) |
Create health check module
Create ves-hv-collector-health-check module with dummy api server and connect it with ves-hv-collector-main
This is a preparation for health check mechanism implementation
Change-Id: I2f668ab7337b1ed7e2afea6c56f34880de3ef1b5
Issue-ID: DCAEGEN2-659
Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Diffstat (limited to 'hv-collector-main/src/test')
-rw-r--r-- | hv-collector-main/src/test/kotlin/org/onap/dcae/collectors/veshv/main/ArgVesHvConfigurationTest.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hv-collector-main/src/test/kotlin/org/onap/dcae/collectors/veshv/main/ArgVesHvConfigurationTest.kt b/hv-collector-main/src/test/kotlin/org/onap/dcae/collectors/veshv/main/ArgVesHvConfigurationTest.kt index 14f9be0b..26507197 100644 --- a/hv-collector-main/src/test/kotlin/org/onap/dcae/collectors/veshv/main/ArgVesHvConfigurationTest.kt +++ b/hv-collector-main/src/test/kotlin/org/onap/dcae/collectors/veshv/main/ArgVesHvConfigurationTest.kt @@ -40,6 +40,7 @@ import java.time.Duration */ object ArgVesHvConfigurationTest : Spek({ lateinit var cut: ArgVesHvConfiguration + val healthCheckApiPort = "6070" val configurationUrl = "http://test-address/test" val firstRequestDelay = "10" val requestInterval = "5" @@ -58,6 +59,7 @@ object ArgVesHvConfigurationTest : Spek({ beforeEachTest { result = cut.parseExpectingSuccess("--ssl-disable", + "--health-check-api-port", healthCheckApiPort, "--listen-port", listenPort, "--config-url", configurationUrl, "--first-request-delay", firstRequestDelay, @@ -67,7 +69,11 @@ object ArgVesHvConfigurationTest : Spek({ "--trust-cert-file", trustCert.toFile().absolutePath) } - it("should set proper port") { + it("should set proper health check api port") { + assertThat(result.healthCheckApiPort).isEqualTo(healthCheckApiPort.toInt()) + } + + it("should set proper listen port") { assertThat(result.listenPort).isEqualTo(listenPort.toInt()) } |