diff options
author | 2018-08-13 12:42:35 +0200 | |
---|---|---|
committer | 2018-08-13 12:46:44 +0200 | |
commit | 5015d4aa2a7ba17d5e7024bf9ef344e7b320b9ab (patch) | |
tree | 785a347ef14348ee75746dc8e465b629819719dd /vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java | |
parent | 5ac1100c02912f7a45d2949d94cd33d054283139 (diff) |
Renaming vid-automation #2
Change-Id: Ide2d71658369e0f0d953e1aa1752f48e9a4bbe96
Issue-ID: VID-205
Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
Diffstat (limited to 'vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java')
-rw-r--r-- | vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java new file mode 100644 index 000000000..e790c0c04 --- /dev/null +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java @@ -0,0 +1,33 @@ +package org.onap.simulator.presetGenerator.presets.BasePresets; + +import org.springframework.http.HttpMethod; + +/** + * Created by itzikliderman on 21/12/2017. + */ +public abstract class BaseMSOPresetServiceInstanceOperationsPost extends BaseMSOPreset { + @Override + protected String getRootPath() { + return super.getRootPath() + "/cloudResources/v1/operationalEnvironments/ENV-UUID"; + } + + @Override + public Object getResponseBody() { + return "{"+ + " \"requestReferences\": {"+ + " \"instanceId\": \"dbe54591-c8ed-46d3-abc7-d3a24873dfbd\","+ + " \"requestId\": \"dbe54591-c8ed-46d3-abc7-d3a24873sssa\""+ + " }"+ + " }"; + } + + @Override + public HttpMethod getReqMethod() { + return HttpMethod.POST; + } + + @Override + public int getResponseCode() { + return 202; + } +} |