From 2ed313e69cfd0a587f072079e23ab8f6499518db Mon Sep 17 00:00:00 2001 From: liamfallon Date: Tue, 7 Jan 2020 18:26:53 +0000 Subject: Store and return data types for policies In this change, the data types of policy types are persisted to the database. All policy types currently in the database are returned on all policy type get requests. This will be made more intelligent in the next review. Issue-ID: POLICY-2315 Change-Id: I10065ab9b90e72114a453494fc706d8aabc50c0a Signed-off-by: liamfallon --- models-tosca/pom.xml | 7 ++ .../tosca/simple/provider/SimpleToscaProvider.java | 21 +++- .../onap/policy/models/tosca/utils/ToscaUtils.java | 106 ++++++++++++++++----- .../simple/provider/SimpleToscaProviderTest.java | 98 +++++++++++++++++++ .../policy/models/tosca/utils/ToscaUtilsTest.java | 31 ++++++ 5 files changed, 238 insertions(+), 25 deletions(-) (limited to 'models-tosca') diff --git a/models-tosca/pom.xml b/models-tosca/pom.xml index b04d2a5ad..eaa1f475d 100644 --- a/models-tosca/pom.xml +++ b/models-tosca/pom.xml @@ -1,6 +1,7 @@