Loading of configuration 45/3445/3
authorPatrikBuhr <patrik.buhr@est.tech>
Fri, 24 Apr 2020 07:33:30 +0000 (09:33 +0200)
committerPatrikBuhr <patrik.buhr@est.tech>
Fri, 24 Apr 2020 07:46:57 +0000 (09:46 +0200)
commit9e4535877a5bdb1811281df20caacce115f4581a
treec4fcbe1cabfb99c4f719c27acd11d3ee2648b513
parent34882342628629b55c19e7f6a5369de045ab9102
Loading of configuration

When an invalid configuartion was entered (from file of from consul)
the periodic polling for updates was stopped. This is fixed.

Improved error messages when an invalid configiration was intered.
Previuosly it often was just a NullPointerException when a mandatory
element was not found. Now, the missing element will be logged.

Change-Id: Id28dd268429c0174a84f490e6fb48ef5614c0966
Issue-ID: NONRTRIC-204
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
policy-agent/src/main/java/org/oransc/policyagent/configuration/ApplicationConfigParser.java
policy-agent/src/main/java/org/oransc/policyagent/tasks/RefreshConfigTask.java
policy-agent/src/test/java/org/oransc/policyagent/configuration/ApplicationConfigParserTest.java