aboutsummaryrefslogtreecommitdiffstats
path: root/generic-resource-api/provider
diff options
context:
space:
mode:
authorprakash.e <prakash.e@huawei.com>2019-08-11 10:46:44 +0530
committerprakash.e <prakash.e@huawei.com>2019-08-11 10:46:55 +0530
commit1b69d24376e1ad8c50dbea872e37529830f4b2a8 (patch)
tree77e99d28e8439f571771ced9f19254e57d78648e /generic-resource-api/provider
parentf3ce37cb044d2ea93f3cc5e73d9afd5d9f9b5554 (diff)
New test case added for code coverage
Added new test case with policyName and updateType in PolicyUpdateNotifyOperation Change-Id: Ib86dffc9d3e2c0633dcf151adf2b81c0adde3f6a Issue-ID: SDNC-840 Signed-off-by: Prakash.E <prakash.e@huawei.com>
Diffstat (limited to 'generic-resource-api/provider')
-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());
+ }
}