Merge automation from ECOMP's repository
[vid.git] / vid-automation / src / main / java / org / onap / simulator / presetGenerator / presets / mso / PresetMSOCreateServiceInstanceGen2WithNamesAlacarteGroupingService.java
1 package org.onap.simulator.presetGenerator.presets.mso;
2
3 import java.util.Map;
4
5 public class PresetMSOCreateServiceInstanceGen2WithNamesAlacarteGroupingService extends PresetMSOCreateServiceInstanceGen2WithNames {
6
7     private String userId = "us16807000";
8
9     public PresetMSOCreateServiceInstanceGen2WithNamesAlacarteGroupingService(Map<Keys, String> names, int suffix, String requestId) {
10         super(names, suffix, requestId);
11     }
12
13     public PresetMSOCreateServiceInstanceGen2WithNamesAlacarteGroupingService(Map<Keys, String> names, int suffix, String requestId, String responseInstanceId, String userId) {
14         super(names, suffix, requestId);
15         this.responseInstanceId = responseInstanceId;
16         this.userId = userId;
17     }
18
19     @Override
20     public boolean isStrictMatch() {
21         return true;
22     }
23
24     @Override
25     public Object getRequestBody() {
26         return "" +
27                 "{ " +
28                 "  \"requestDetails\": { " +
29                 "    \"modelInfo\": { " +
30                 "      \"modelType\": \"service\", " +
31                 "      \"modelInvariantId\": \"7ee41ce4-4827-44b0-a48e-2707a59905d2\", " +
32                 "      \"modelVersionId\": \"4117a0b6-e234-467d-b5b9-fe2f68c8b0fc\", " +
33                 "      \"modelName\": \"Grouping Service for Test\", " +
34                 "      \"modelVersion\": \"1.0\" " +
35                 "    }, " +
36                 "    \"owningEntity\": { " +
37                 "      \"owningEntityId\": \"d61e6f2d-12fa-4cc2-91df-7c244011d6fc\", " +
38                 "      \"owningEntityName\": \"MetroPacketCore\" " +
39                 "    }, " +
40                 "    \"project\": { " +
41                 "      \"projectName\": \"DFW\" " +
42                 "    }, " +
43                 "    \"subscriberInfo\": { " +
44                 "      \"globalSubscriberId\": \"e433710f-9217-458d-a79d-1c7aff376d89\" " +
45                 "    }, " +
46                 "    \"requestInfo\": { " +
47                 "      \"source\": \"VID\", " +
48                 "      \"suppressRollback\": false, " +
49                 "      \"instanceName\": \"" + names.get(Keys.SERVICE_NAME) + suffix + "\", " +
50                 "      \"requestorId\": \"" + userId + "\" " +
51                 "    }, " +
52                 "    \"requestParameters\": { " +
53                 "      \"testApi\": \"VNF_API\", " +
54                 "      \"subscriptionServiceType\": \"TYLER SILVIA\", " +
55                 "      \"aLaCarte\": true, " +
56                 "      \"userParams\": [] " +
57                 "    } " +
58                 "  } " +
59                 "} ";
60
61     }
62
63 }