638cc3911ba4f00928bae5fe636f47f2fb01631c
[vid.git] / vid-automation / src / main / java / org / onap / simulator / presetGenerator / presets / aai / PresetAAIGetTenants.java
1 package org.onap.simulator.presetGenerator.presets.aai;
2
3 import static vid.automation.test.utils.ReadFile.loadResourceAsString;
4
5 import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
6 import org.springframework.http.HttpMethod;
7
8 public class PresetAAIGetTenants extends BaseAAIPreset {
9     private final String subscriberId;
10     private final String serviceType;
11     private String responseBody;
12
13     public PresetAAIGetTenants(String subscriberId, String serviceType, String responseBodyResource) {
14         this.subscriberId = subscriberId;
15         this.serviceType = serviceType;
16         this.responseBody = loadResourceAsString(responseBodyResource);
17     }
18
19     public PresetAAIGetTenants() {
20         this(
21             "e433710f-9217-458d-a79d-1c7aff376d89",
22             "TYLER SILVIA",
23             "presets_templates/PresetAAIGetTenants.json"
24         );
25     }
26
27     @Override
28     public Object getResponseBody() {
29         return responseBody;
30     }
31
32     @Override
33     public HttpMethod getReqMethod() {
34         return HttpMethod.GET;
35     }
36
37     @Override
38     public String getReqPath() {
39         return getRootPath() + "/business/customers/customer/" + this.subscriberId + "/service-subscriptions/service-subscription/" + this.serviceType;
40     }
41
42
43 }