Read config from environment variables 51/64351/4
authorPiotr Jaszczyk <piotr.jaszczyk@nokia.com>
Tue, 4 Sep 2018 07:59:20 +0000 (09:59 +0200)
committerPiotr Jaszczyk <piotr.jaszczyk@nokia.com>
Tue, 4 Sep 2018 11:18:50 +0000 (13:18 +0200)
commit199edc49a418ab015ad3a54a5750f1a3f485b7e7
tree14985ad68d11d2303dca2e5a0454a9e441e915db
parentd00acee05c05c7e3146abf7d13b78953f9a0d3f9
Read config from environment variables

The application configuration should be read from command line options
as well as from environment variables. The priority: cmd-line over env
over defaults.

Change-Id: I785fd1fbaf66f3eab84a162f037153f1688ed791
Issue-ID: DCAEGEN2-748
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
hv-collector-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/utils/arrow/core.kt
hv-collector-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/utils/commandline/ArgBasedConfiguration.kt
hv-collector-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/utils/commandline/CommandLineOption.kt
hv-collector-utils/src/test/kotlin/org/onap/dcae/collectors/veshv/utils/arrow/CoreKtTest.kt
hv-collector-utils/src/test/kotlin/org/onap/dcae/collectors/veshv/utils/commandline/CommandLineOptionTest.kt [new file with mode: 0644]