X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=rapp-manager-acm%2Fsrc%2Ftest%2Fjava%2Fcom%2Foransc%2Frappmanager%2Fmodels%2Frapp%2FRappResourceBuilder.java;h=9da38fbdb3f16c6c879e5f8c018a13e0f565af07;hb=4e0f690867551e6ff679debcc7a1fa531aa4c8e7;hp=9aa21071e4bfe0be6b0df0e2f81ed7dc867daa88;hpb=e82f052e583d579ba06b7994be55c51bf25667fa;p=nonrtric%2Fplt%2Frappmanager.git diff --git a/rapp-manager-acm/src/test/java/com/oransc/rappmanager/models/rapp/RappResourceBuilder.java b/rapp-manager-acm/src/test/java/com/oransc/rappmanager/models/rapp/RappResourceBuilder.java index 9aa2107..9da38fb 100755 --- a/rapp-manager-acm/src/test/java/com/oransc/rappmanager/models/rapp/RappResourceBuilder.java +++ b/rapp-manager-acm/src/test/java/com/oransc/rappmanager/models/rapp/RappResourceBuilder.java @@ -1,6 +1,26 @@ +/*- + * ============LICENSE_START====================================================================== + * Copyright (C) 2023 Nordix Foundation. All rights reserved. + * Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved. + * =============================================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END======================================================================== + */ + package com.oransc.rappmanager.models.rapp; import com.oransc.rappmanager.models.rappinstance.RappACMInstance; +import com.oransc.rappmanager.models.rappinstance.RappDMEInstance; import com.oransc.rappmanager.models.rappinstance.RappInstance; import java.util.Set; @@ -11,6 +31,11 @@ public class RappResourceBuilder { RappResources.ACMResources acmResources = new RappResources.ACMResources("compositions", Set.of()); acmResources.setCompositionInstances(Set.of("kserve-instance")); rappResources.setAcm(acmResources); + RappResources.DMEResources dmeResources = + new RappResources.DMEResources(Set.of("json-file-data-from-filestore"), + Set.of("xml-file-data-from-filestore"), Set.of("json-file-data-producer"), + Set.of("json-file-consumer")); + rappResources.setDme(dmeResources); return rappResources; } @@ -19,6 +44,12 @@ public class RappResourceBuilder { RappACMInstance rappACMInstance = new RappACMInstance(); rappACMInstance.setInstance("kserve-instance"); rappInstance.setAcm(rappACMInstance); + RappDMEInstance rappDMEInstance = new RappDMEInstance(); + rappDMEInstance.setInfoTypeConsumer("json-file-data-from-filestore"); + rappDMEInstance.setInfoTypesProducer(Set.of("xml-file-data-from-filestore")); + rappDMEInstance.setInfoProducer("json-file-data-producer"); + rappDMEInstance.setInfoConsumer("json-file-consumer"); + rappInstance.setDme(rappDMEInstance); return rappInstance; } }