Allow customization of commonEventHeadres before request is sent 69/116169/3
authorEli Halych <illia.halych@t-mobile.pl>
Mon, 7 Dec 2020 13:13:53 +0000 (13:13 +0000)
committerEli Halych <illia.halych@t-mobile.pl>
Mon, 7 Dec 2020 13:40:12 +0000 (13:40 +0000)
commit2c4c61213c9f2f8fba83a2244fa7afe0a6feb481
treebc0b31d1ec616f68ab6481dfbfc9017439d948cf
parenta579a48948f0b61bb9d98e1591d1fe727a550dbb
Allow customization of commonEventHeadres before request is sent

Details:
- Python handler is allowed to take --data argument with fields to be overriden.
- In python handler the original dictionary from config.json is merged with custom sourceName
 and reportingEntityName if provided.
- Java source code generates default sourceName and reportingEntityName as part of default data in
the form of "default-XXX", where XXX is YEAR, MONTH and DAY as integers.
- If such default data is received in the request body, don't override them with default values.
- BUG FIXED: the previous solution used abstract path that could be "/" that resulted in empty strings
for sourceName and reportingEntityName.

Issue-ID: INT-1800
Signed-off-by: Eli Halych <illia.halych@t-mobile.pl>
Change-Id: Ic88c5606a44abac64f842f28621332f3f86b83c6
test/mocks/masspnfsim/MassPnfSim.py
test/mocks/masspnfsim/pnf-sim-lightweight/src/main/java/org/onap/pnfsimulator/message/JSONObjectFactory.java