summaryrefslogtreecommitdiffstats
path: root/resource-assignment/provider/src/test/java/jtest
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2020-07-14 08:55:33 -0400
committerDan Timoney <dtimoney@att.com>2020-08-03 19:29:50 +0000
commit6fb8dfad11c84c0833e842183ec43a4ee95e81de (patch)
tree68048c21cd7244797fa60e572c2c4c48b7f5abb5 /resource-assignment/provider/src/test/java/jtest
parent3960d5fe8a04c505334714516c3144c327bb98c1 (diff)
Update adaptors to sodium
Update sli/adaptors to OpenDaylight Sodium release. 2 changes were needed: - mdsal-resource : needed to add unimplemented abstract methods in inner anonymous BundleContext class in test case. - resource-assignment: needed to correct unit test problems that were ignored in earlier versions of h2 Change-Id: Ice63bfce64768e46c4376db55e3e9e97d0b934ad Issue-ID: CCSDK-2551 Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'resource-assignment/provider/src/test/java/jtest')
-rw-r--r--resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestReserve.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestReserve.java b/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestReserve.java
index ab2d936cf..dbf0c4aac 100644
--- a/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestReserve.java
+++ b/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestReserve.java
@@ -216,6 +216,7 @@ public class TestReserve {
rr.requestType = "New";
rr.rangeMaxOverride = -1;
rr.rangeMinOverride = -1;
+ rr.applicationId = "myapp";
List<ResourceResponse> rsList = new ArrayList<>();
@@ -513,6 +514,7 @@ public class TestReserve {
rr.endPointPosition = "VPE-Cust";
rr.rangeMaxOverride = -1;
rr.rangeMinOverride = -1;
+ rr.applicationId = "myapp";
List<ResourceResponse> rsList = new ArrayList<>();
resourceAllocator.reserve(sd, rt, rr, rsList);
@@ -533,6 +535,7 @@ public class TestReserve {
rr.endPointPosition = "VPE-Core1";
rr.rangeMaxOverride = -1;
rr.rangeMinOverride = -1;
+ rr.applicationId = "myapp";
rsList = new ArrayList<>();
resourceAllocator.reserve(sd, rt, rr, rsList);
@@ -553,6 +556,7 @@ public class TestReserve {
rr.endPointPosition = "VPE-Core2";
rr.rangeMaxOverride = -1;
rr.rangeMinOverride = -1;
+ rr.applicationId = "myapp";
rsList = new ArrayList<>();
resourceAllocator.reserve(sd, rt, rr, rsList);
@@ -573,6 +577,7 @@ public class TestReserve {
rr.endPointPosition = "VPE-Core3";
rr.rangeMaxOverride = -1;
rr.rangeMinOverride = -1;
+ rr.applicationId = "myapp";
rsList = new ArrayList<>();
resourceAllocator.reserve(sd, rt, rr, rsList);
@@ -720,6 +725,7 @@ public class TestReserve {
rr.rangeMaxOverride = 3901;
rr.rangeMinOverride = 3900;
rr.resourceType = ResourceType.Range;
+ rr.applicationId = "myapp";
List<ResourceResponse> rsList = new ArrayList<>();
resourceAllocator.reserve(sd, rt, rr, rsList);
@@ -748,6 +754,7 @@ public class TestReserve {
rr.rangeMinOverride = -1;
rr.rangeOverrideList = Arrays.asList(range);
rr.resourceType = ResourceType.Range;
+ rr.applicationId = "myapp";
rsList = new ArrayList<>();
resourceAllocator.reserve(sd, rt, rr, rsList);
@@ -781,6 +788,7 @@ public class TestReserve {
rr.rangeOverrideList = new ArrayList<>();
rr.rangeOverrideList.add(range1);
rr.rangeOverrideList.add(range2);
+ rr.applicationId = "myapp";
rr.resourceType = ResourceType.Range;
rsList = new ArrayList<>();