Add more logics about fields value for OOF model 63/71463/2
authorliboNet <libo.zhu@intel.com>
Wed, 31 Oct 2018 02:03:49 +0000 (10:03 +0800)
committerliboNet <libo.zhu@intel.com>
Wed, 31 Oct 2018 17:44:30 +0000 (01:44 +0800)
commit46b926fdacf597c1afc7136230d72562444008f6
tree99c3100bedcbf8ddc567455844bfcfa7441d6fe4
parenta64169b24ab24101719c1a926ab1d3c9d25c219c
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