summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java13
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 97809616b..0af63f3ac 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
@@ -338,4 +338,17 @@ public class TestDGGeneralDBService {
QueryStatus status= dbService.saveUploadConfig(ctx, "test");
assertEquals(QueryStatus.SUCCESS, status);
}
+
+ @Test
+ public void testUpdateUploadConfig() throws SvcLogicException
+ {
+ SvcLogicContext ctx = new SvcLogicContext();
+
+ ctx.setAttribute("vnf-type", "test");
+ ctx.setAttribute("vnfc-type", "test");
+
+ MockDGGeneralDBService dbService = MockDGGeneralDBService.initialise();
+ QueryStatus status= dbService.updateUploadConfig(ctx, "test",10);
+ assertEquals(QueryStatus.SUCCESS, status);
+ }
}