diff options
author | brunomilitzer <bruno.militzer@est.tech> | 2021-08-30 18:40:01 +0100 |
---|---|---|
committer | brunomilitzer <bruno.militzer@est.tech> | 2021-09-09 17:19:54 +0100 |
commit | 09d8a86e2126ccc9a12456ddead12a5fe8f58697 (patch) | |
tree | 3bdd01daa29a0852453c789d1ee1c2d5593ac36a /runtime-controlloop/src/test | |
parent | f16d42aec838b7e8faf39af2a3f46dfb5fed0605 (diff) |
Fixed Delete Instance Properties Endpoint
Fixed issue regarding that control loops was not getting instantiated
Fixed issue regarding state change that was not receiving paramaters
Added appropriate Camel Endpoints
Unit tests will be applied on POLICY-3568 and POLICY-3567
Issue-ID: POLICY-3558
Change-Id: I11a1093bdb16651fe1c0ad8e267ded5390267a30
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
Diffstat (limited to 'runtime-controlloop/src/test')
-rw-r--r-- | runtime-controlloop/src/test/java/org/onap/policy/clamp/controlloop/runtime/instantiation/InstantiationUtils.java | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/runtime-controlloop/src/test/java/org/onap/policy/clamp/controlloop/runtime/instantiation/InstantiationUtils.java b/runtime-controlloop/src/test/java/org/onap/policy/clamp/controlloop/runtime/instantiation/InstantiationUtils.java index 8529c0c9b..c107986a5 100644 --- a/runtime-controlloop/src/test/java/org/onap/policy/clamp/controlloop/runtime/instantiation/InstantiationUtils.java +++ b/runtime-controlloop/src/test/java/org/onap/policy/clamp/controlloop/runtime/instantiation/InstantiationUtils.java @@ -144,23 +144,4 @@ public class InstantiationUtils { commissioningProvider.createControlLoopDefinitions(template); } - - /** - * Assert that instance properties has been properly saved. - * - * @param response InstancePropertiesResponse - * @throws PfModelException if an error occurs - */ - public static void assertInstancePropertiesResponse(InstancePropertiesResponse response) throws PfModelException { - - assertThat(response).isNotNull(); - assertThat(response.getErrorDetails()).isNull(); - assertThat(response.getAffectedInstanceProperties()).hasSize(8); - - boolean containsInstance = response.getAffectedInstanceProperties().stream() - .anyMatch(identifier -> identifier.getName().contains("_Instance")); - - assertThat(containsInstance).isTrue(); - - } } |