Fix return type of get node templates provider 71/127171/1
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>
Wed, 16 Feb 2022 23:07:34 +0000 (23:07 +0000)
committerRamesh Murugan Iyer <ramesh.murugan.iyer@est.tech>
Wed, 16 Feb 2022 23:18:42 +0000 (23:18 +0000)
commitc89f17af3cccff82d3f251e7fe73910ea8e26dbf
tree9c4e1045dfad5c93f30bd8258529f76e71b30c5f
parent676194789a8b880e2416f9d3bf2484a9fc6be1bc
Fix return type of get node templates provider

The return type for fetching node templates can be just a List of
ToscaNodetemplates. Removing the map with node template keys as it
provides redundant keys in the output.

Issue-ID: POLICY-3832
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I43d357fc24af9fd4d127cce139b6d21c53cc98d1
models-provider/src/main/java/org/onap/policy/models/provider/PolicyModelsProvider.java
models-provider/src/main/java/org/onap/policy/models/provider/impl/AbstractPolicyModelsProvider.java
models-provider/src/test/java/org/onap/policy/models/provider/impl/DummyBadProviderImpl.java
models-provider/src/test/java/org/onap/policy/models/provider/impl/DummyPolicyModelsProviderImpl.java
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/provider/AuthorativeToscaProvider.java
models-tosca/src/test/java/org/onap/policy/models/tosca/authorative/provider/AuthorativeToscaProviderNodeTemplateTest.java