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