diff options
author | liamfallon <liam.fallon@est.tech> | 2019-04-08 05:27:08 +0000 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2019-04-08 05:27:08 +0000 |
commit | dd92e0c9ad7049a713c363d1c52e29237c07df62 (patch) | |
tree | 4c99624b21f5a66a9fb3901dbaeca8eb8d2dab43 /models-pdp/src/test/resources | |
parent | 82699a970d5f06c6dc1391d8beb0efe76bf84089 (diff) |
Add unit test for PDP groups
Unit test for the JPA concepts in models-pdp.
Issue-ID: POLICY-1095
Change-Id: Id33626f3789da45e36935edf564003651e9ce7c4
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'models-pdp/src/test/resources')
-rw-r--r-- | models-pdp/src/test/resources/testdata/PdpGroupsNoPDPs.json | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/models-pdp/src/test/resources/testdata/PdpGroupsNoPDPs.json b/models-pdp/src/test/resources/testdata/PdpGroupsNoPDPs.json new file mode 100644 index 000000000..e37b6c5a6 --- /dev/null +++ b/models-pdp/src/test/resources/testdata/PdpGroupsNoPDPs.json @@ -0,0 +1,35 @@ +{ + "groups": [ + { + "name": "TestPdpGroup", + "version": "1.2.3", + "description": "group description", + "pdpGroupState": "ACTIVE", + "properties": { + "groupProperty0": "Value of Group Property 0" + }, + "pdpSubgroups": [ + { + "pdpType": "APEX", + "supportedPolicyTypes": [ + { + "name": "onap.policies.controlloop.Operational", + "version": "1.0.0" + } + ], + "policies": [ + { + "name": "onap.policies.controlloop.Operational.apex.sampledomain", + "version": "1.0.0" + } + ], + "currentInstanceCount": 0, + "desiredInstanceCount": 5, + "properties": { + "subgroupProperty0": "Value of sub Group Property 0" + } + } + ] + } + ] +}
\ No newline at end of file |