diff options
author | 2018-08-12 14:51:28 +0300 | |
---|---|---|
committer | 2018-08-12 15:02:57 +0300 | |
commit | 4a4dcc5185f8ba5a28c7f9fef509f32c0c2389e6 (patch) | |
tree | 23e55ee7e1ad9b91bcc3ef1dbe1fb7b183f8b2b6 /vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model | |
parent | 661a24fd57de02869a9771761e0fcba7eb77d121 (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/model')
2 files changed, 73 insertions, 0 deletions
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model/RegistrationRequest.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model/RegistrationRequest.java new file mode 100644 index 00000000..2b1cdeb5 --- /dev/null +++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model/RegistrationRequest.java @@ -0,0 +1,54 @@ +package org.opencomp.simulator.presetGenerator.presets.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import org.springframework.http.HttpMethod; + +import java.util.List; +import java.util.Map; + +public class RegistrationRequest { + + public static class SimulatorRequest { + public final HttpMethod method; + public final String path; + + @JsonInclude(JsonInclude.Include.NON_NULL) + public final Map<String,List> queryParams; + + @JsonInclude(JsonInclude.Include.NON_NULL) + public final Object body; + + public SimulatorRequest(HttpMethod method, String path, Map<String, List> queryParams, Object body) { + this.method = method; + this.path = path; + this.queryParams = queryParams; + this.body = body; + } + } + + public static class SimulatorResponse { + public final int responseCode; + public final Map<String,String> responseHeaders; + + @JsonInclude(JsonInclude.Include.NON_NULL) + public final Object body; + + @JsonInclude(JsonInclude.Include.NON_NULL) + public final String file; + + public SimulatorResponse(int responseCode, Map<String, String> responseHeaders, Object body, String file) { + this.responseCode = responseCode; + this.responseHeaders = responseHeaders; + this.body = body; + this.file = file; + } + } + + public SimulatorRequest simulatorRequest; + public SimulatorResponse simulatorResponse; + + public RegistrationRequest(SimulatorRequest simulatorRequest, SimulatorResponse simulatorResponse) { + this.simulatorRequest = simulatorRequest; + this.simulatorResponse = simulatorResponse; + } +} diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model/Subscriber.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model/Subscriber.java new file mode 100644 index 00000000..0ec3b18c --- /dev/null +++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/model/Subscriber.java @@ -0,0 +1,19 @@ +package org.opencomp.simulator.presetGenerator.presets.model; + + +import com.fasterxml.jackson.annotation.JsonProperty; + +public class Subscriber { + + @JsonProperty("global-customer-id") + public String globalCustomerId; + + @JsonProperty("subscriber-name") + public String subscriberName; + + @JsonProperty("subscriber-type") + public String subscriberType; + + @JsonProperty("resource-version") + public String resourceVersion; +} |