diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2019-12-11 10:00:21 -0500 |
---|---|---|
committer | Pamela Dragosh <pdragosh@research.att.com> | 2019-12-23 13:33:19 +0000 |
commit | 85744c81b27a833db4a8089c90a4faeb98d8f349 (patch) | |
tree | 290b6c6f6dfcc7c108182c6af44116e7bcfae581 /applications/optimization/src/test/resources | |
parent | 4ff3b261231274ec9f3cd957ba50108fef3e0eb5 (diff) |
Add optimization subscriber request
Adding support for a preliminary request to pull subscriber details.
The returned decision adds scope attributes for the original request.
Fixed some checkstyle issues due to new checkstyle requirements.
Issue-ID: POLICY-2066
Change-Id: Ief02d896ce33e4864bb20e9185b0d0f5eb254bfd
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'applications/optimization/src/test/resources')
-rw-r--r-- | applications/optimization/src/test/resources/decision.optimization.input.json | 3 | ||||
-rw-r--r-- | applications/optimization/src/test/resources/vCPE.policies.optimization.input.tosca.yaml | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/applications/optimization/src/test/resources/decision.optimization.input.json b/applications/optimization/src/test/resources/decision.optimization.input.json index 3872ca90..523b9d5d 100644 --- a/applications/optimization/src/test/resources/decision.optimization.input.json +++ b/applications/optimization/src/test/resources/decision.optimization.input.json @@ -2,6 +2,9 @@ "ONAPName": "OOF", "ONAPComponent": "OOF-component", "ONAPInstance": "OOF-component-instance", + "context" : { + "subscriberName": [] + }, "action": "optimize", "resource": { "scope": [], diff --git a/applications/optimization/src/test/resources/vCPE.policies.optimization.input.tosca.yaml b/applications/optimization/src/test/resources/vCPE.policies.optimization.input.tosca.yaml index 3eedac95..fb848637 100644 --- a/applications/optimization/src/test/resources/vCPE.policies.optimization.input.tosca.yaml +++ b/applications/optimization/src/test/resources/vCPE.policies.optimization.input.tosca.yaml @@ -291,7 +291,7 @@ topology_template: scope: [] services: [vCPE] identity: subscriber_vCPE - properties: + subscriberProperties: subscriberName: [subscriber_x, subscriber_y] subscriberRole: [platinum] provStatus: [CAPPED] @@ -307,7 +307,7 @@ topology_template: scope: [] services: [vCPE] identity: subscriber_vCPE - properties: + subscriberProperties: subscriberName: [subscriber_a, subscriber_b] subscriberRole: [gold] provStatus: [CAPPED] |