1 package org.onap.simulator.presetGenerator.presets.aai;
3 import com.google.common.collect.ImmutableList;
4 import com.google.common.collect.ImmutableMap;
5 import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
6 import org.springframework.http.HttpMethod;
8 import java.util.Collections;
12 public class PresetAAIModelVersionsByInvariantId extends BaseAAIPreset {
16 public String getReqPath() {
17 return getRootPath() + "/query";
21 public Map<String, List> getQueryParams() {
22 return ImmutableMap.of(
23 "format", Collections.singletonList("resource"),
24 "depth", Collections.singletonList("0")
29 public Object getRequestBody() {
30 return ImmutableMap.of(
31 "start", ImmutableList.of("service-design-and-creation/models/model/f6342be5-d66b-4d03-a1aa-c82c3094c4ea"),
32 "query", "query/serviceModels-byDistributionStatus?distributionStatus=DISTRIBUTION_COMPLETE_OK"
35 // " \"start\": [\"service-design-and-creation/models/model/f6342be5-d66b-4d03-a1aa-c82c3094c4ea"]," +
36 // " \"query\": \"query/serviceModels-byDistributionStatus?distributionStatus=DISTRIBUTION_COMPLETE_OK\"" +
41 public Object getResponseBody() {
46 " \"model-invariant-id\": \"f6342be5-d66b-4d03-a1aa-c82c3094c4ea\"," +
47 " \"model-type\": \"service\"," +
48 " \"resource-version\": \"1534274421300\"" +
53 " \"model-version-id\": \"a92f899d-a3ec-465b-baed-1663b0a5aee1\"," +
54 " \"model-name\": \"NCM_VLAN_SVC_ym161f\"," +
55 " \"model-version\": \"3.0\"," +
56 " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\"," +
57 " \"model-description\": \"Network Collection service for vLAN tagging\"," +
58 " \"resource-version\": \"1534788756086\"" +
63 " \"model-version-id\": \"d2fda667-e92e-4cfa-9620-5da5de01a319\"," +
64 " \"model-name\": \"NCM_VLAN_SVC_ym161f\"," +
65 " \"model-version\": \"1.0\"," +
66 " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\"," +
67 " \"model-description\": \"Network Collection service for vLAN tagging\"," +
68 " \"resource-version\": \"1534444087221\"" +
73 " \"model-version-id\": \"0e97a118-b1b6-40d5-bbad-98cdd51b1c48\"," +
74 " \"model-name\": \"NCM_VLAN_SVC_ym161f\"," +
75 " \"model-version\": \"11.0\"," +
76 " \"distribution-status\": \"DISTRIBUTION_COMPLETE_OK\"," +
77 " \"model-description\": \"Network Collection service for vLAN tagging the-newest-version\"," +
78 " \"resource-version\": \"1550783120267\"" +
87 public HttpMethod getReqMethod() {
88 return HttpMethod.PUT;