f939ccca5bcf06ca6671fa64fdde5521865addc4
[nonrtric/plt/rappmanager.git] / rapp-manager-acm / src / test / java / com / oransc / rappmanager / models / rapp / RappResourceBuilder.java
1 package com.oransc.rappmanager.models.rapp;
2
3 import com.oransc.rappmanager.models.rappinstance.RappACMInstance;
4 import com.oransc.rappmanager.models.rappinstance.RappInstance;
5 import java.util.List;
6
7 public class RappResourceBuilder {
8
9     public RappResources getResources() {
10         RappResources rappResources = new RappResources();
11         RappResources.ACMResources acmResources = new RappResources.ACMResources("compositions", List.of());
12         acmResources.setCompositionInstances(List.of("kserve-instance"));
13         rappResources.setAcm(acmResources);
14         return rappResources;
15     }
16
17     public RappInstance getRappInstance() {
18         RappInstance rappInstance = new RappInstance();
19         RappACMInstance rappACMInstance = new RappACMInstance();
20         rappACMInstance.setInstance("kserve-instance");
21         rappInstance.setAcm(rappACMInstance);
22         return rappInstance;
23     }
24 }