update MSO configuration URL
[vid.git] / vid-automation / src / main / java / org / onap / simulator / presetGenerator / presets / mso / configuration / PresetMSODeleteConfiguration.java
1 package org.onap.simulator.presetGenerator.presets.mso.configuration;
2
3 import org.onap.simulator.presetGenerator.presets.mso.PresetMSOBaseCreateInstancePost;
4 import org.springframework.http.HttpMethod;
5
6 public class PresetMSODeleteConfiguration extends PresetMSOBaseCreateInstancePost {
7
8     public PresetMSODeleteConfiguration() {
9         this.cloudOwner = "att-nc";
10     }
11
12     @Override
13     public HttpMethod getReqMethod() {
14         return HttpMethod.DELETE;
15     }
16
17     @Override
18     public boolean isStrictMatch() {
19         return true;
20     }
21
22     @Override
23     public String getReqPath() {
24         return getRootPath() + "/serviceInstantiation/v./serviceInstances/c187e9fe-40c3-4862-b73e-84ff056205f6/configurations/9533-config-LB1113";
25     }
26
27     @Override
28     public Object getRequestBody() {
29         return "" +
30                 "{" +
31                 "  \"requestDetails\": {" +
32                 "    \"cloudConfiguration\": {" +
33                        addCloudOwnerIfNeeded() +
34                 "      \"lcpCloudRegionId\": \"mdt1\"" +
35                 "    }," +
36                 "    \"modelInfo\": {" +
37                 "      \"modelCustomizationId\": \"08a181aa-72eb-435f-9593-e88a3ad0a86b\"," +
38                 "      \"modelInvariantId\": \"model-invariant-id-9533\"," +
39                 "      \"modelVersionId\": \"model-version-id-9533\"," +
40                 "      \"modelType\": \"configuration\"" +
41                 "    }," +
42                 "    \"requestInfo\": {" +
43                 "      \"source\": \"VID\"," +
44                 "      \"requestorId\": \"us16807000\"" +
45                 "    }," +
46                 "    \"requestParameters\": {" +
47                 "      \"userParams\": []" +
48                 "    }" +
49                 "  }" +
50                 "}";
51     }
52
53 }