1 package org.opencomp.simulator.presetGenerator.presets.aai;
3 import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
4 import org.springframework.http.HttpMethod;
6 import java.util.Collections;
10 import static vid.automation.test.utils.ReadFile.loadResourceAsString;
12 public class PresetAAIGetSubDetailsGet extends BaseAAIPreset {
13 private String subscriberId;
14 private String responseBody;
16 private static final String baseResponseBody = loadResourceAsString("presets_templates/PresetAAIGetSubDetailsGet.json");
17 private static final String GLOBAL_CUSTOMER_ID = "GLOBAL_CUSTOMER_ID";
19 public PresetAAIGetSubDetailsGet(String subscriberId) {
20 this.subscriberId = subscriberId == null ? "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb" : subscriberId;
21 this.responseBody = baseResponseBody.replace(GLOBAL_CUSTOMER_ID, this.subscriberId);
24 public void mapQueryParams(Map<String, List> map) {
25 map.put("depth", Collections.singletonList("2"));
29 public Object getResponseBody() {
34 public HttpMethod getReqMethod() {
35 return HttpMethod.GET;
39 public String getReqPath() {
40 return getRootPath() + "/business/customers/customer/" + getSubscriberId();
43 public String getSubscriberId() {