summaryrefslogtreecommitdiffstats
path: root/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att
diff options
context:
space:
mode:
authorSonsino, Ofir (os0695) <os0695@intl.att.com>2018-08-12 14:51:28 +0300
committerSonsino, Ofir (os0695) <os0695@intl.att.com>2018-08-12 15:02:57 +0300
commit4a4dcc5185f8ba5a28c7f9fef509f32c0c2389e6 (patch)
tree23e55ee7e1ad9b91bcc3ef1dbe1fb7b183f8b2b6 /vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/ecompportal_att
parent661a24fd57de02869a9771761e0fcba7eb77d121 (diff)
vid-automation selenium tests
Change-Id: I6c1b0a0cf3bbfa4314c81f0cc72507db805ec632 Issue-ID: VID-281 Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
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";
+ }
+}