diff options
Diffstat (limited to 'vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceMetadataGet.java')
-rw-r--r-- | vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceMetadataGet.java | 50 |
1 files changed, 0 insertions, 50 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; - } -} |