Add more logics about fields value for OOF model 12/71512/2
authorliboNet <libo.zhu@intel.com>
Wed, 31 Oct 2018 02:03:49 +0000 (10:03 +0800)
committerPamela Dragosh <pdragosh@research.att.com>
Thu, 1 Nov 2018 01:25:22 +0000 (01:25 +0000)
commitbc847eb86eff82da91f991d029d8da562766fdec
tree9f93ff0be5f115e01f976f34e2265b44d9ff0f6b
parent399f051c7937ee414014ee3b8bc346a0355d2aad
Add more logics about fields value for OOF model

To align with OOF/Policy/SO, need add below:
. resource should be set as name field of SDC resource.
. identity should be set as a concatenation of PolicyType + "_" + Resource
. value of flavorDirective's type, expected from OOF, is "flavor_directives"
. policyScope should add the name of service from SDC to align with that from SO.
. Update the Testcase

Change-Id: I57f461ef51e0f50e6096c9c9ba84c5832cb13656
Issue-ID: POLICY-1227
Signed-off-by: liboNet <libo.zhu@intel.com>
plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/pdpx/ExtractFromNode.java
plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/pdpx/PolicyDecoderCsarPdpx.java
plugins/reception-plugins/src/test/java/org/onap/policy/distribution/reception/decoding/pdpx/TestPolicyDecoderCsarPdpx.java