aboutsummaryrefslogtreecommitdiffstats
path: root/generic-resource-api
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-08-12 13:12:43 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-12 13:12:43 +0000
commitbe9ca669e992cd3b7f851f7788c32697579aa129 (patch)
treee2a39a47a482dfaacb0cf2136afd94227c82bcc4 /generic-resource-api
parent8f6f18f0957932d4c03036f838daffb43c3d1dc4 (diff)
parent1b69d24376e1ad8c50dbea872e37529830f4b2a8 (diff)
Merge "New test case added for code coverage"
Diffstat (limited to 'generic-resource-api')
-rw-r--r--generic-resource-api/provider/src/test/java/org/onap/sdnc/northbound/PolicyUpdateNotifyOperationRPCTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/generic-resource-api/provider/src/test/java/org/onap/sdnc/northbound/PolicyUpdateNotifyOperationRPCTest.java b/generic-resource-api/provider/src/test/java/org/onap/sdnc/northbound/PolicyUpdateNotifyOperationRPCTest.java
index b73bd113..ff2a4351 100644
--- a/generic-resource-api/provider/src/test/java/org/onap/sdnc/northbound/PolicyUpdateNotifyOperationRPCTest.java
+++ b/generic-resource-api/provider/src/test/java/org/onap/sdnc/northbound/PolicyUpdateNotifyOperationRPCTest.java
@@ -33,4 +33,16 @@ public class PolicyUpdateNotifyOperationRPCTest extends GenericResourceApiProvid
assertEquals("404", output.getErrorCode());
assertEquals("Invalid input, missing input data", output.getErrorMsg());
}
+
+ @Test
+ public void should_fail_when_valid_vnf_topology() throws Exception {
+
+ PolicyUpdateNotifyOperationInput input = build(PolicyUpdateNotifyOperationInput().setPolicyName("PolicyName").setUpdateType("UpdateType").setVersionId("vID"));
+
+ PolicyUpdateNotifyOperationOutput output =
+ exec(genericResourceApiProvider::policyUpdateNotifyOperation, input, RpcResult::getResult);
+
+ assertEquals("503", output.getErrorCode());
+ assertEquals("No service logic active for generic-resource-api: 'policy-update-notify-operation'", output.getErrorMsg());
+ }
}