diff options
author | 2018-08-12 12:20:55 +0000 | |
---|---|---|
committer | 2018-08-12 12:20:55 +0000 | |
commit | 91b057331b92ecf7f3c2d495681b05295dc8346c (patch) | |
tree | 0ce3f821ada8ad518784f7f9869db4b537ba3237 /vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java | |
parent | 9152b2ae03c4751b492a219993d85d522c58b383 (diff) | |
parent | 4a4dcc5185f8ba5a28c7f9fef509f32c0c2389e6 (diff) |
Merge "vid-automation selenium tests"
Diffstat (limited to 'vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java')
-rw-r--r-- | vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java new file mode 100644 index 000000000..8f298c45a --- /dev/null +++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java @@ -0,0 +1,33 @@ +package org.opencomp.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; + } +} |