diff options
author | Dilip kumar Pampana <dilip.kumar.pampana@ibm.com> | 2018-07-15 22:05:28 -0400 |
---|---|---|
committer | Dilip kumar Pampana <dilip.kumar.pampana@ibm.com> | 2018-07-16 17:17:48 +0000 |
commit | 4982577ac5c50ab7446145998f6c321d9d7f3d75 (patch) | |
tree | 01a982466834e31d7d21662341c9f4a8a0df8605 /appc-config/appc-data-services/provider/src | |
parent | fbee0d0f4e36289a294894adc7377a098a85e65c (diff) |
Junit for appc-config/Data-services
Junit Test to GetConfigFileReferenceByVnfType in appc-config/Data-services
Issue-ID: APPC-1080
Change-Id: I351cd7acc1ef6310d230d22bd7a0035d35722290
Signed-off-by: Dilip kumar Pampana <dilip.kumar.pampana@ibm.com>
Diffstat (limited to 'appc-config/appc-data-services/provider/src')
-rw-r--r-- | appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java b/appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java index ba8b8aeb9..875c68bd7 100644 --- a/appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java +++ b/appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java @@ -5,6 +5,8 @@ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Copyright (C) 2017 Amdocs + * ================================================================================ + * Copyright (C) 2018 IBM * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -222,4 +224,15 @@ public class TestDGGeneralDBService { String fileCategory="testCategory"; dbService.getTemplateByVnfTypeNActionWithTemplateModelId(ctx, prefix, fileCategory, templateModelId); } + + @Test + public void testGetConfigFileReferenceByVnfType() throws Exception { + SvcLogicContext ctx = new SvcLogicContext(); + ctx.setAttribute("vnf-type", "test"); + ctx.setAttribute("request-action", "Configure"); + MockDGGeneralDBService dbService = MockDGGeneralDBService.initialise(); + QueryStatus status = dbService.getConfigFileReferenceByVnfType(ctx, "test"); + assertEquals(status, QueryStatus.SUCCESS); + + } } |