From fa3fe6f8527d23ed79b9c3f503faf9df81a5eb9d Mon Sep 17 00:00:00 2001 From: Sara Weiss Date: Thu, 14 Nov 2019 14:23:16 +0200 Subject: API test ordering for mso vfModules requests Issue-ID: VID-253 Signed-off-by: Sara Weiss Change-Id: I9a8594eab3f8e4eacaf503c23f04d1db6b101f90 --- .../main/java/vid/automation/test/services/SimulatorApi.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'vid-automation/src/main/java/vid/automation/test/services') 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 values; } + public static class BodyWrapper { + public String value; + } + public static class HttpRequest { public StringWrapper path; + public BodyWrapper body; public List headers; } public static class RecordedRequests { public String path; + public String body; public Map> headers; - public RecordedRequests(String path, Map> headers) { + public RecordedRequests(String path, String body, Map> headers) { this.path = path; + this.body = body; this.headers = headers; } @@ -188,6 +195,7 @@ public class SimulatorApi { List 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, -- cgit 1.2.3-korg