aboutsummaryrefslogtreecommitdiffstats
path: root/vid-automation/src/main/java/vid/automation/test/services
diff options
context:
space:
mode:
authorSara Weiss <sara.weiss@intl.att.com>2019-11-14 14:23:16 +0200
committerSara Weiss <sara.weiss@intl.att.com>2019-11-14 14:48:15 +0200
commitfa3fe6f8527d23ed79b9c3f503faf9df81a5eb9d (patch)
treea75b9d66f5f7ae0ee1e567f42d47d860143218c3 /vid-automation/src/main/java/vid/automation/test/services
parent97c88e288f56d30b7a3a49366b933cfadbaacf4c (diff)
API test ordering for mso vfModules requests
Issue-ID: VID-253 Signed-off-by: Sara Weiss <sara.weiss@intl.att.com> Change-Id: I9a8594eab3f8e4eacaf503c23f04d1db6b101f90
Diffstat (limited to 'vid-automation/src/main/java/vid/automation/test/services')
-rw-r--r--vid-automation/src/main/java/vid/automation/test/services/SimulatorApi.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/vid-automation/src/main/java/vid/automation/test/services/SimulatorApi.java b/vid-automation/src/main/java/vid/automation/test/services/SimulatorApi.java
index ff8f209a8..c8ac7ead9 100644
--- a/vid-automation/src/main/java/vid/automation/test/services/SimulatorApi.java
+++ b/vid-automation/src/main/java/vid/automation/test/services/SimulatorApi.java
@@ -56,17 +56,24 @@ public class SimulatorApi {
public List<StringWrapper> values;
}
+ public static class BodyWrapper {
+ public String value;
+ }
+
public static class HttpRequest {
public StringWrapper path;
+ public BodyWrapper body;
public List<RecordedHeaders> headers;
}
public static class RecordedRequests {
public String path;
+ public String body;
public Map<String, List<String>> headers;
- public RecordedRequests(String path, Map<String, List<String>> headers) {
+ public RecordedRequests(String path, String body, Map<String, List<String>> headers) {
this.path = path;
+ this.body = body;
this.headers = headers;
}
@@ -188,6 +195,7 @@ public class SimulatorApi {
List<HttpRequest> rawRequests = retrieveRecordedHttpRequests();
return rawRequests.stream().map(request->new RecordedRequests(
request.path.value,
+ request.body != null && request.body != null ? request.body.value : "",
request.headers.stream().collect(
Collectors.toMap(
x->x.name.value,