aboutsummaryrefslogtreecommitdiffstats
path: root/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc
diff options
context:
space:
mode:
authorkurczews <krzysztof.kurczewski@nokia.com>2018-08-13 12:42:35 +0200
committerkurczews <krzysztof.kurczewski@nokia.com>2018-08-13 12:46:44 +0200
commit5015d4aa2a7ba17d5e7024bf9ef344e7b320b9ab (patch)
tree785a347ef14348ee75746dc8e465b629819719dd /vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc
parent5ac1100c02912f7a45d2949d94cd33d054283139 (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/opencomp/simulator/presetGenerator/presets/sdc')
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceMetadataGet.java50
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java30
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/SdcPresetWithModelVersionId.java22
3 files changed, 0 insertions, 102 deletions
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceMetadataGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceMetadataGet.java
deleted file mode 100644
index 7ec6e0e2b..000000000
--- a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceMetadataGet.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package org.opencomp.simulator.presetGenerator.presets.sdc;
-
-import org.springframework.http.HttpMethod;
-
-/**
- * Created by itzikliderman on 21/12/2017.
- */
-public class PresetSDCGetServiceMetadataGet extends SdcPresetWithModelVersionId {
-
- public PresetSDCGetServiceMetadataGet(String modelVersionId, String modelInvariantId, String zipFileName) {
- super(modelVersionId);
- this.modelInvariantId = modelInvariantId;
- this.zipFileName = zipFileName;
- }
-
- private final String zipFileName;
- private final String modelInvariantId;
-
-
- @Override
- public Object getResponseBody() {
- return "{" +
- " \"uuid\": \""+getModelVersionId()+"\"," +
- " \"invariantUUID\": \""+getModelInvariantId()+"\"," +
- " \"name\": \"action-data\"," +
- " \"version\": \"1.0\"," +
- " \"toscaModelURL\": \"./"+zipFileName+"\"," +
- " \"category\": \"Mobility\"," +
- " \"lifecycleState\": \"CERTIFIED\"," +
- " \"lastUpdaterUserId\": \"rg276b\"," +
- " \"lastUpdaterFullName\": null," +
- " \"distributionStatus\": \"DISTRIBUTED\"," +
- " \"artifacts\": null," +
- " \"resources\": null" +
- " }";
- }
-
- public HttpMethod getReqMethod() {
- return HttpMethod.GET;
- }
-
- @Override
- public String getReqPath() {
- return super.getReqPath()+"/metadata";
- }
-
- public String getModelInvariantId() {
- return modelInvariantId;
- }
-}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java
deleted file mode 100644
index cb2276829..000000000
--- a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package org.opencomp.simulator.presetGenerator.presets.sdc;
-
-import org.springframework.http.HttpMethod;
-
-/**
- * Created by itzikliderman on 21/12/2017.
- */
-public class PresetSDCGetServiceToscaModelGet extends SdcPresetWithModelVersionId {
-
- private String file;
-
- public PresetSDCGetServiceToscaModelGet(String modelVersionId, String file) {
- super(modelVersionId);
- this.file = file;
- }
-
- public HttpMethod getReqMethod() {
- return HttpMethod.GET;
- }
-
- @Override
- public String getReqPath() {
- return super.getReqPath()+"/toscaModel";
- }
-
- @Override
- public String getFile() {
- return file;
- }
-}
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/SdcPresetWithModelVersionId.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/SdcPresetWithModelVersionId.java
deleted file mode 100644
index e8fdfa2b9..000000000
--- a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/SdcPresetWithModelVersionId.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package org.opencomp.simulator.presetGenerator.presets.sdc;
-
-import org.opencomp.simulator.presetGenerator.presets.BasePresets.BaseSDCPreset;
-
-public abstract class SdcPresetWithModelVersionId extends BaseSDCPreset {
-
- public SdcPresetWithModelVersionId(String modelVersionId) {
- this.modelVersionId = modelVersionId;
- }
-
- protected String modelVersionId;
-
- public String getModelVersionId() {
- return modelVersionId;
- }
-
- public String getReqPath() {
- return getRootPath() + "/"+getModelVersionId();
- }
-
-
-}