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/opencomp/simulator/presetGenerator/presets/BasePresets | |
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/opencomp/simulator/presetGenerator/presets/BasePresets')
6 files changed, 0 insertions, 146 deletions
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseAAIPreset.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseAAIPreset.java deleted file mode 100644 index d75b41ee..00000000 --- a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseAAIPreset.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.opencomp.simulator.presetGenerator.presets.BasePresets; - -/** - * Created by itzikliderman on 27/12/2017. - */ -public abstract class BaseAAIPreset extends BasePreset { - - @Override - protected String getRootPath() { - return "/aai/v.."; - } -} diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseEcompPortalPreset.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseEcompPortalPreset.java deleted file mode 100644 index d073a716..00000000 --- a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseEcompPortalPreset.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.opencomp.simulator.presetGenerator.presets.BasePresets; - -/** - * Created by itzikliderman on 27/12/2017. - */ -public abstract class BaseEcompPortalPreset extends BasePreset { - - @Override - protected String getRootPath() { - return "/ecompportal_att/auxapi"; - } -} diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPreset.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPreset.java deleted file mode 100644 index e30bdefe..00000000 --- a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPreset.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.opencomp.simulator.presetGenerator.presets.BasePresets; - -import vid.automation.test.infra.Features; - -/** - * Created by itzikliderman on 27/12/2017. - */ -public abstract class BaseMSOPreset extends BasePreset { - - public static String getRequestBodyWithTestApiOnly() { - if (Features.FLAG_ADD_MSO_TESTAPI_FIELD.isActive()) { - return "" + - "{" + - " \"requestDetails\": { " + - " \"requestParameters\": { " + - " \"testApi\": \"GR_API\" " + - " } " + - " } " + - "} " + - ""; - } else { - return null; - } - } - - @Override - protected String getRootPath() { - return "/mso"; - } -} 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 deleted file mode 100644 index 8f298c45..00000000 --- a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseMSOPresetServiceInstanceOperationsPost.java +++ /dev/null @@ -1,33 +0,0 @@ -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; - } -} diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BasePreset.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BasePreset.java deleted file mode 100644 index 51ba8590..00000000 --- a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BasePreset.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.opencomp.simulator.presetGenerator.presets.BasePresets; - -import org.opencomp.simulator.presetGenerator.presets.model.RegistrationRequest; -import org.springframework.http.HttpMethod; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * Created by itzikliderman on 13/12/2017. - */ -public abstract class BasePreset { - - public RegistrationRequest generateScenario() { - Map<String, String> headers = new HashMap<>(); - headers.put("Content-Type", getContentType()); - - return new RegistrationRequest( - new RegistrationRequest.SimulatorRequest(getReqMethod(), getReqPath(), getQueryParams(), getRequestBody()), - new RegistrationRequest.SimulatorResponse(getResponseCode(), headers, getResponseBody(), getFile())); - } - - public Object getResponseBody() { return null; }; - - public String getContentType() { - return "application/json"; - } - - public String getFile() { - return null; - } - - public int getResponseCode() { return 200; } - - public abstract HttpMethod getReqMethod(); - - public abstract String getReqPath(); - - public Object getRequestBody() { - return null; - } - - public Map<String, List> getQueryParams() { return null; } - - protected abstract String getRootPath(); -} diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseSDCPreset.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseSDCPreset.java deleted file mode 100644 index ef64450b..00000000 --- a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/BasePresets/BaseSDCPreset.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.opencomp.simulator.presetGenerator.presets.BasePresets; - -/** - * Created by itzikliderman on 27/12/2017. - */ -public abstract class BaseSDCPreset extends BasePreset { - - @Override - protected String getRootPath() { - return "/sdc/v1/catalog/services"; - } -} |