1 package org.onap.simulator.presetGenerator.presets.aai;
3 import static vid.automation.test.utils.ReadFile.loadResourceAsString;
5 import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
6 import org.springframework.http.HttpMethod;
8 public class PresetAAIGetTenants extends BaseAAIPreset {
9 private final String subscriberId;
10 private final String serviceType;
11 private String responseBody;
13 public PresetAAIGetTenants(String subscriberId, String serviceType, String responseBodyResource) {
14 this.subscriberId = subscriberId;
15 this.serviceType = serviceType;
16 this.responseBody = loadResourceAsString(responseBodyResource);
19 public PresetAAIGetTenants() {
21 "e433710f-9217-458d-a79d-1c7aff376d89",
23 "presets_templates/PresetAAIGetTenants.json"
28 public Object getResponseBody() {
33 public HttpMethod getReqMethod() {
34 return HttpMethod.GET;
38 public String getReqPath() {
39 return getRootPath() + "/business/customers/customer/" + this.subscriberId + "/service-subscriptions/service-subscription/" + this.serviceType;