8f298c45ac8260a87c95f07ad9c57d7422c7c526
[sandbox-vid.git] /
1 package org.opencomp.simulator.presetGenerator.presets.BasePresets;
2
3 import org.springframework.http.HttpMethod;
4
5 /**
6  * Created by itzikliderman on 21/12/2017.
7  */
8 public abstract class BaseMSOPresetServiceInstanceOperationsPost extends BaseMSOPreset {
9     @Override
10     protected String getRootPath() {
11         return super.getRootPath() + "/cloudResources/v1/operationalEnvironments/ENV-UUID";
12     }
13
14     @Override
15     public Object getResponseBody() {
16         return "{"+
17                 "      \"requestReferences\": {"+
18                 "        \"instanceId\": \"dbe54591-c8ed-46d3-abc7-d3a24873dfbd\","+
19                 "        \"requestId\": \"dbe54591-c8ed-46d3-abc7-d3a24873sssa\""+
20                 "      }"+
21                 "    }";
22     }
23
24     @Override
25     public HttpMethod getReqMethod() {
26         return HttpMethod.POST;
27     }
28
29     @Override
30     public int getResponseCode() {
31         return 202;
32     }
33 }