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/onap/simulator/presetGenerator/presets/ecompportal_att | |
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/onap/simulator/presetGenerator/presets/ecompportal_att')
4 files changed, 74 insertions, 0 deletions
diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/ecompportal_att/EcompPortalPresetsUtils.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/ecompportal_att/EcompPortalPresetsUtils.java new file mode 100644 index 000000000..6470677d9 --- /dev/null +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/ecompportal_att/EcompPortalPresetsUtils.java @@ -0,0 +1,18 @@ +package org.onap.simulator.presetGenerator.presets.ecompportal_att; + +import org.onap.simulator.presetGenerator.presets.BasePresets.BasePreset; + +import java.util.Arrays; +import java.util.List; + +public class EcompPortalPresetsUtils { + + private final static List<BasePreset> ecompPortalPresets = Arrays.asList( + new PresetGetUserGet(), + new PresetGetSessionSlotCheckIntervalGet(), + new PresetExtendSessionTimeOutsPost()); + + public static List<BasePreset> getEcompPortalPresets() { + return ecompPortalPresets; + } +} diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/ecompportal_att/PresetExtendSessionTimeOutsPost.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/ecompportal_att/PresetExtendSessionTimeOutsPost.java new file mode 100644 index 000000000..4e10b0a8c --- /dev/null +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/ecompportal_att/PresetExtendSessionTimeOutsPost.java @@ -0,0 +1,18 @@ +package org.onap.simulator.presetGenerator.presets.ecompportal_att; + +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseEcompPortalPreset; +import org.springframework.http.HttpMethod; + +public class PresetExtendSessionTimeOutsPost extends BaseEcompPortalPreset { + public Object getResponseBody() { + return "300000"; + } + + public HttpMethod getReqMethod() { + return HttpMethod.POST; + } + + public String getReqPath() { + return getRootPath() + "//extendSessionTimeOuts"; + } +} diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/ecompportal_att/PresetGetSessionSlotCheckIntervalGet.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/ecompportal_att/PresetGetSessionSlotCheckIntervalGet.java new file mode 100644 index 000000000..55cc3dbc6 --- /dev/null +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/ecompportal_att/PresetGetSessionSlotCheckIntervalGet.java @@ -0,0 +1,18 @@ +package org.onap.simulator.presetGenerator.presets.ecompportal_att; + +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseEcompPortalPreset; +import org.springframework.http.HttpMethod; + +public class PresetGetSessionSlotCheckIntervalGet extends BaseEcompPortalPreset { + public Object getResponseBody() { + return "300000"; + } + + public HttpMethod getReqMethod() { + return HttpMethod.GET; + } + + public String getReqPath() { + return getRootPath() + "//getSessionSlotCheckInterval"; + } +} diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/ecompportal_att/PresetGetUserGet.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/ecompportal_att/PresetGetUserGet.java new file mode 100644 index 000000000..f2fb247c3 --- /dev/null +++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/ecompportal_att/PresetGetUserGet.java @@ -0,0 +1,20 @@ +package org.onap.simulator.presetGenerator.presets.ecompportal_att; + +import org.onap.simulator.presetGenerator.presets.BasePresets.BaseEcompPortalPreset; +import org.springframework.http.HttpMethod; + +import java.util.Collections; + +public class PresetGetUserGet extends BaseEcompPortalPreset { + public Object getResponseBody() { + return Collections.EMPTY_LIST; + } + + public HttpMethod getReqMethod() { + return HttpMethod.GET; + } + + public String getReqPath() { + return getRootPath() + "/context/get_user"; + } +} |