aboutsummaryrefslogtreecommitdiffstats
path: root/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att
diff options
context:
space:
mode:
Diffstat (limited to 'vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att')
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/EcompPortalPresetsUtils.java18
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetExtendSessionTimeOutsPost.java18
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetSessionSlotCheckIntervalGet.java18
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetUserGet.java20
4 files changed, 74 insertions, 0 deletions
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/EcompPortalPresetsUtils.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/EcompPortalPresetsUtils.java
new file mode 100644
index 000000000..5363eac4a
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/EcompPortalPresetsUtils.java
@@ -0,0 +1,18 @@
+package org.opencomp.simulator.presetGenerator.presets.ecompportal_att;
+
+import org.opencomp.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/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetExtendSessionTimeOutsPost.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetExtendSessionTimeOutsPost.java
new file mode 100644
index 000000000..c8d61df25
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetExtendSessionTimeOutsPost.java
@@ -0,0 +1,18 @@
+package org.opencomp.simulator.presetGenerator.presets.ecompportal_att;
+
+import org.opencomp.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/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetSessionSlotCheckIntervalGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetSessionSlotCheckIntervalGet.java
new file mode 100644
index 000000000..c35dfcda5
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetSessionSlotCheckIntervalGet.java
@@ -0,0 +1,18 @@
+package org.opencomp.simulator.presetGenerator.presets.ecompportal_att;
+
+import org.opencomp.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/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetUserGet.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetUserGet.java
new file mode 100644
index 000000000..b046b77c8
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att/PresetGetUserGet.java
@@ -0,0 +1,20 @@
+package org.opencomp.simulator.presetGenerator.presets.ecompportal_att;
+
+import org.opencomp.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";
+ }
+}