diff options
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"; + } +} |