aboutsummaryrefslogtreecommitdiffstats
path: root/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOServiceInstanceGen2ErrorResponse.java
diff options
context:
space:
mode:
authorkurczews <krzysztof.kurczewski@nokia.com>2018-08-13 12:51:39 +0200
committerkurczews <krzysztof.kurczewski@nokia.com>2018-08-13 12:51:39 +0200
commit9b45c01d9bb3a4565ed64c20e72511edc0854636 (patch)
tree3ae448fc167d820f8f1beaba501b30e05c5847d7 /vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOServiceInstanceGen2ErrorResponse.java
parent5015d4aa2a7ba17d5e7024bf9ef344e7b320b9ab (diff)
Renaming vid-automation #3
Change-Id: I5eabdb9d06ca9887808bb623dde09d038cf2de53 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/mso/PresetMSOServiceInstanceGen2ErrorResponse.java')
-rw-r--r--vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOServiceInstanceGen2ErrorResponse.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOServiceInstanceGen2ErrorResponse.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOServiceInstanceGen2ErrorResponse.java
new file mode 100644
index 000000000..881cc4634
--- /dev/null
+++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOServiceInstanceGen2ErrorResponse.java
@@ -0,0 +1,30 @@
+package org.onap.simulator.presetGenerator.presets.mso;
+
+public class PresetMSOServiceInstanceGen2ErrorResponse extends PresetMSOBaseCreateServiceInstancePost {
+
+ private final int responseCode;
+
+ public PresetMSOServiceInstanceGen2ErrorResponse(int responseCode) {
+ this.responseCode = responseCode;
+ }
+
+ @Override
+ public int getResponseCode() {
+ return responseCode;
+ }
+
+ @Override
+ public String getReqPath() {
+ return getRootPath() + "/serviceInstantiation/v7/serviceInstances/assign";
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "{" +
+ " \"serviceException\": {" +
+ " \"messageId\": \"SVC0002\"," +
+ " \"text\": \"JSON Object Mapping Request\"" +
+ " }" +
+ "}";
+ }
+}