vid-automation selenium tests
[vid.git] / vid-automation / src / main / java / vid / automation / test / services / BulkRegistration.java
1 package vid.automation.test.services;
2
3 import com.google.common.collect.ImmutableList;
4 import com.google.common.collect.ImmutableMap;
5 import org.opencomp.simulator.presetGenerator.presets.aai.*;
6 import org.opencomp.simulator.presetGenerator.presets.mso.*;
7 import org.opencomp.simulator.presetGenerator.presets.sdc.PresetSDCGetServiceMetadataGet;
8 import org.opencomp.simulator.presetGenerator.presets.sdc.PresetSDCGetServiceToscaModelGet;
9 import vid.automation.test.Constants;
10
11 import static vid.automation.test.services.SimulatorApi.RegistrationStrategy.APPEND;
12
13 public class BulkRegistration {
14
15     public static void searchExistingServiceInstance() {
16         searchExistingServiceInstance("Active");
17     }
18
19     public static void searchExistingServiceInstance(String orchStatus) {
20         genericSearchExistingServiceInstance();
21         SimulatorApi.registerExpectation(
22                 new String [] {
23                         Constants.RegisterToSimulator.SearchForServiceInstance.GET_SUBSCRIBERS_FOR_CUSTOMER_USP_VOICE,
24                         Constants.RegisterToSimulator.SearchForServiceInstance.FILTER_SERVICE_INSTANCE_BY_ID,
25                         Constants.RegisterToSimulator.SearchForServiceInstance.NAMED_QUERY_VIEW_EDIT,
26                         Constants.RegisterToSimulator.SearchForServiceInstance.GET_SDC_CATALOG_SERVICE_VID_TEST_444,
27                         Constants.RegisterToSimulator.CreateNewServiceInstance.deploy.GET_AIC_ZONES
28                 }, ImmutableMap.<String, Object>of("<ORCH_STATUS>", orchStatus), SimulatorApi.RegistrationStrategy.APPEND);
29     }
30
31     public static void searchExistingServiceInstanceByOEAndProject(){
32         SimulatorApi.registerExpectationFromPresets(ImmutableList.of(
33                 new PresetAAIGetModelsByOwningEntity("Wireline"),
34                 new PresetAAIGetModelsByProject("x1"),
35                 new PresetAAIGetModelsByProject("yyy1")
36                 ), APPEND);
37     }
38
39     public static void searchExistingCRServiceInstance(String orchStatus) {
40         genericSearchExistingServiceInstance();
41         SimulatorApi.registerExpectation(
42                 new String [] {
43                         Constants.RegisterToSimulator.SearchForServiceInstance.GET_SUBSCRIBERS_FOR_CUSTOMER_USP_VOICE_CR,
44                         Constants.RegisterToSimulator.SearchForServiceInstance.FILTER_CR_SERVICE_INSTANCE_BY_ID,
45                         Constants.RegisterToSimulator.SearchForServiceInstance.NAMED_QUERY_CR_VIEW_EDIT,
46                         Constants.RegisterToSimulator.SearchForServiceInstance.GET_SDC_CATALOG_SERVICE_VID_TEST_CR,
47                         Constants.RegisterToSimulator.SearchForServiceInstance.GET_MSO_INSTANCE_ORCH_STATUS_REQ,
48                         Constants.RegisterToSimulator.CreateNewServiceInstance.deploy.GET_AIC_ZONES
49                 }, ImmutableMap.<String, Object>of("<ORCH_STATUS>", orchStatus, "<SERVICE_INSTANCE_ID>", "3f93c7cb-2fd0-4557-9514-e189b7testCR"), SimulatorApi.RegistrationStrategy.APPEND);
50     }
51
52     public static void searchExistingVFServiceWithVFCInstanceGroupInstance(String orchStatus) {
53         genericSearchExistingServiceInstance();
54         SimulatorApi.registerExpectation(
55                 new String [] {
56                         Constants.RegisterToSimulator.AddSubinterface.GET_SUBSCRIBERS_FOR_CUSTOMER_USP_VOICE_VFC_IG,
57                         Constants.RegisterToSimulator.AddSubinterface.FILTER_VFC_IG_SERVICE_INSTANCE_BY_ID,
58                         Constants.RegisterToSimulator.AddSubinterface.NAMED_QUERY_VFC_IG_VIEW_EDIT,
59                         Constants.RegisterToSimulator.AddSubinterface.GET_SDC_CATALOG_SERVICE_VID_TEST_444,
60                         Constants.RegisterToSimulator.AddSubinterface.GET_MSO_VFC_IG_INSTANCE_ORCH_STATUS_REQ,
61                  }, ImmutableMap.<String, Object>of("<ORCH_STATUS>", orchStatus), SimulatorApi.RegistrationStrategy.APPEND);
62     }
63
64     public static void genericSearchExistingServiceInstance() {
65         SimulatorApi.registerExpectation(
66                 new String [] {
67                         Constants.RegisterToSimulator.genericRequest.ECOMP_PORTAL_GET_SESSION_SLOT_CHECK_INTERVAL,
68                         Constants.RegisterToSimulator.SearchForServiceInstance.GET_FULL_SUBSCRIBERS,
69                         Constants.RegisterToSimulator.SearchForServiceInstance.GET_SERVICES
70
71                 }, ImmutableMap.<String, Object>of(), SimulatorApi.RegistrationStrategy.APPEND);
72     }
73
74     public static void searchExistingServiceInstance2(String orchStatus) {
75         genericSearchExistingServiceInstance();
76         SimulatorApi.registerExpectation(
77                 new String [] {
78                         Constants.RegisterToSimulator.SearchForServiceInstance.GET_SUBSCRIBERS_FOR_CUSTOMER_FIREWALL_MISC,
79                         Constants.RegisterToSimulator.SearchForServiceInstance.FILTER_SERVICE_INSTANCE_BY_ID_2,
80                         Constants.RegisterToSimulator.SearchForServiceInstance.NAMED_QUERY_VIEW_EDIT_2
81                 }, ImmutableMap.<String, Object>of("<ORCH_STATUS>", orchStatus), SimulatorApi.RegistrationStrategy.APPEND);
82     }
83
84     public static void searchExistingServiceInstancePortMirroring(String orchStatus, String desiredCloudRegionId) {
85         searchExistingServiceInstancePortMirroring(orchStatus, true, desiredCloudRegionId);
86     }
87
88     public static void searchExistingServiceInstancePortMirroring(String orchStatus, boolean isMirrored, String desiredCloudRegionId) {
89         genericSearchExistingServiceInstance();
90         final String configurationId = "9533-config-LB1113";
91         final String portInterfaceId = "d35bf534-7d8e-4cb4-87f9-0a8bb6cd47b2";
92         final String modelToReplaceWith ="pm1111_equip_model_rename.zip";
93
94         SimulatorApi.registerExpectationFromPreset(new PresetAAICloudRegionAndSourceFromConfigurationPut(configurationId, desiredCloudRegionId), APPEND);
95         SimulatorApi.registerExpectationFromPreset(new PresetAAIGetPortMirroringSourcePorts(configurationId, portInterfaceId, "i'm a port", isMirrored), APPEND);
96         SimulatorApi.registerExpectation(
97                 new String [] {
98                         Constants.RegisterToSimulator.SearchForServiceInstance.GET_SUBSCRIBERS_FOR_CUSTOMER_USP_VOICE,
99                         Constants.RegisterToSimulator.SearchForServiceInstance.FILTER_SERVICE_INSTANCE_BY_ID_PM,
100                         Constants.RegisterToSimulator.SearchForServiceInstance.NAMED_QUERY_VIEW_EDIT_PM,
101                         Constants.RegisterToSimulator.SearchForServiceInstance.GET_SDC_CATALOG_SERVICE_PM,
102                         Constants.RegisterToSimulator.CreateNewServiceInstance.deploy.GET_AIC_ZONES
103                 }, ImmutableMap.<String, Object>of(
104                         "<ORCH_STATUS>", orchStatus, "<IS_MIRRORED>", isMirrored,
105                         "pm1111.zip", modelToReplaceWith
106                         ), SimulatorApi.RegistrationStrategy.APPEND);
107     }
108
109     public static void associatePnf() {
110         SimulatorApi.registerExpectation(
111                 new String [] {
112                         Constants.RegisterToSimulator.pProbe.GET_SERVICE_INSTANCE_WITH_LOGICAL_LINKS,
113                         Constants.RegisterToSimulator.pProbe.GET_SPECIFIC_PNF,
114                         Constants.RegisterToSimulator.pProbe.ADD_PNF_RELATIONSHIP,
115                         Constants.RegisterToSimulator.pProbe.GET_ADD_PNF_RELATIONSHIP_ORCH_REQ
116                 }, ImmutableMap.<String, Object>of(), SimulatorApi.RegistrationStrategy.APPEND);
117     }
118
119     public static void searchPnfError() {
120         SimulatorApi.registerExpectation(
121                 new String [] {
122                         Constants.RegisterToSimulator.pProbe.GET_SERVICE_INSTANCE_WITH_LOGICAL_LINKS,
123                         Constants.RegisterToSimulator.pProbe.GET_SPECIFIC_PNF_ERROR
124                 }, ImmutableMap.<String, Object>of(), SimulatorApi.RegistrationStrategy.APPEND);
125     }
126     public static void associatePnfError() {
127         SimulatorApi.registerExpectation(
128                 new String [] {
129                         Constants.RegisterToSimulator.pProbe.GET_SERVICE_INSTANCE_WITH_LOGICAL_LINKS,
130                         Constants.RegisterToSimulator.pProbe.GET_SPECIFIC_PNF,
131                         Constants.RegisterToSimulator.pProbe.ADD_PNF_RELATIONSHIP_ERROR
132                 }, ImmutableMap.<String, Object>of(), SimulatorApi.RegistrationStrategy.APPEND);
133     }
134
135     public static void dissociatePnf() {
136         SimulatorApi.registerExpectation(
137                 new String [] {
138                         Constants.RegisterToSimulator.pProbe.REMOVE_PNF_RELATIONSHIP,
139                         Constants.RegisterToSimulator.pProbe.GET_REMOVE_PNF_RELATIONSHIP_ORCH_REQ
140                 }, ImmutableMap.<String, Object>of(), SimulatorApi.RegistrationStrategy.APPEND);
141     }
142
143     public static void getAssociatedPnfs() {
144         SimulatorApi.registerExpectation(
145                 new String [] {
146                         Constants.RegisterToSimulator.pProbe.GET_SERVICE_INSTANCE_WITH_LOGICAL_LINKS,
147                         Constants.RegisterToSimulator.pProbe.GET_LOGICAL_LINK
148                 }, ImmutableMap.<String, Object>of(), SimulatorApi.RegistrationStrategy.APPEND);
149     }
150
151     public static void activateServiceInstance(String action) {
152         SimulatorApi.registerExpectation(
153                 new String [] {
154                         Constants.RegisterToSimulator.pProbe.GET_SERVICE_INSTANCE_WITH_LOGICAL_LINKS,
155                         Constants.RegisterToSimulator.activateDeactivate.ACTIVATE_SERVICE_INSTANCE,
156                         Constants.RegisterToSimulator.activateDeactivate.ACTIVATE_SERVICE_INSTANCE_ORCH_REQUEST
157                 }, ImmutableMap.<String, Object>of("<ACTIVE_ACTION>", action), SimulatorApi.RegistrationStrategy.APPEND);
158     }
159
160
161     public static void activateDeactivateConfiguration(String orchStatus, String action, String desiredCloudRegionId) {
162         SimulatorApi.registerExpectation(
163                 new String [] {
164                         Constants.RegisterToSimulator.createConfiguration.MSO_ACTIVATE_CONFIGURATION,
165                 }, ImmutableMap.<String, Object>of("<ACTION>",action,"mdt1", desiredCloudRegionId), SimulatorApi.RegistrationStrategy.APPEND);
166     }
167
168     public static void deleteConfiguration(String desiredCloudRegionId) {
169         SimulatorApi.registerExpectation(
170                 new String [] {
171                         Constants.RegisterToSimulator.createConfiguration.MSO_DELETE_CONFIGURATION,
172                         Constants.RegisterToSimulator.createConfiguration.MSO_CREATE_CONFIGURATION_ORCH_REQ
173                 }, ImmutableMap.of("mdt1", desiredCloudRegionId), SimulatorApi.RegistrationStrategy.APPEND);
174     }
175
176     public static void enableDisablePort(String action, String desiredCloudRegionId){
177         SimulatorApi.registerExpectation(
178                 new String [] {
179                         Constants.RegisterToSimulator.createConfiguration.MSO_ACTIVATE_CONFIGURATION,
180                         Constants.RegisterToSimulator.createConfiguration.MSO_ENABLE_DISABLE_PORT,
181                 }, ImmutableMap.<String, Object>of("<ACTION>", action,"mdt1", desiredCloudRegionId), SimulatorApi.RegistrationStrategy.APPEND);
182     }
183
184     public static void addNetwork() {
185         SimulatorApi.registerExpectation(
186                 new String [] {
187                         Constants.RegisterToSimulator.SearchForServiceInstance.GET_SUBSCRIBERS_FOR_CUSTOMER_Mobility,
188                         Constants.RegisterToSimulator.addNetwork.AAI_GET_TENANTS,
189                         Constants.RegisterToSimulator.addNetwork.AAI_NAMED_QUERY_FOR_VIEW_EDIT,
190                         Constants.RegisterToSimulator.addNetwork.FILTER_SERVICE_INSTANCE_BY_ID,
191                         //Constants.RegisterToSimulator.addNetwork.FILTER_SERVICE_INSTANCE_BY_NAME,
192                         Constants.RegisterToSimulator.addNetwork.GET_SDC_CATALOG_SERVICES_NETWORK,
193
194                 }, ImmutableMap.<String, Object>of(), SimulatorApi.RegistrationStrategy.APPEND);
195     }
196     public static void msoAddNetwork(String instanceName){
197         SimulatorApi.registerExpectation(
198                 new String [] {
199                     Constants.RegisterToSimulator.addNetwork.MSO_ADD_NETWORK_ORCH_REQ,
200                     Constants.RegisterToSimulator.addNetwork.MSO_ADD_NETWORK
201                 }, ImmutableMap.<String, Object>of("<SERVICE_INSTANCE_NAME>",instanceName), SimulatorApi.RegistrationStrategy.APPEND);
202     }
203     public static void msoAddNetworkError(String instanceName){
204         SimulatorApi.registerExpectation(
205                 new String [] {
206                         Constants.RegisterToSimulator.addNetwork.MSO_ADD_NETWORK_ERROR
207                 }, ImmutableMap.<String, Object>of("<SERVICE_INSTANCE_NAME>",instanceName), SimulatorApi.RegistrationStrategy.APPEND);
208     }
209     public static void activateServiceInstanceError(String action) {
210         SimulatorApi.registerExpectation(
211                 new String []{
212                         Constants.RegisterToSimulator.pProbe.GET_SERVICE_INSTANCE_WITH_LOGICAL_LINKS,
213                         Constants.RegisterToSimulator.activateDeactivate.ACTIVATE_SERVICE_INSTANCE_ERROR
214                 } , ImmutableMap.<String, Object>of("<ACTIVE_ACTION>", action), SimulatorApi.RegistrationStrategy.APPEND);
215     }
216
217
218     public static void createPolicyConfiguration(boolean isSuccessFlow, String desiredCloudRegionId) {
219         createConfiguration();
220         SimulatorApi.registerExpectation(
221                 new String []{
222                         Constants.RegisterToSimulator.createConfiguration.GET_PNF_INSTANCES,
223                         Constants.RegisterToSimulator.createConfiguration.GET_MODEL_BY_ONE_INVARIANT_ID
224                 } , ImmutableMap.<String, Object>of("mdt1", desiredCloudRegionId), SimulatorApi.RegistrationStrategy.APPEND);
225         if (isSuccessFlow) {
226             msoCreatePProbeConfiguration();
227         } else {
228             msoCreatePProbeConfigurationError();
229         }
230     }
231
232     public static void deletePolicyConfiguration(boolean isSuccessFlow, String desiredCloudRegionId) {
233         createConfiguration();
234         SimulatorApi.registerExpectation(
235                 new String []{
236                         Constants.RegisterToSimulator.createConfiguration.GET_PNF_INSTANCES,
237                         Constants.RegisterToSimulator.createConfiguration.GET_MODEL_BY_ONE_INVARIANT_ID,
238                         Constants.RegisterToSimulator.createConfiguration.MSO_DELETE_CONFIGURATION,
239
240                 } , ImmutableMap.<String, Object>of("mdt1", desiredCloudRegionId), SimulatorApi.RegistrationStrategy.APPEND);
241         if (isSuccessFlow) {
242             msoCreatePProbeConfiguration();
243         } else {
244             msoCreatePProbeConfigurationError();
245         }
246     }
247
248
249
250
251     private static void msoCreatePProbeConfiguration() {
252         SimulatorApi.registerExpectation(
253                 new String []{
254                         Constants.RegisterToSimulator.createConfiguration.MSO_CREATE_CONFIGURATION,
255                         Constants.RegisterToSimulator.createConfiguration.MSO_CREATE_CONFIGURATION_ORCH_REQ
256                 } , ImmutableMap.<String, Object>of(), SimulatorApi.RegistrationStrategy.APPEND);
257     }
258
259     private static void msoCreatePProbeConfigurationError() {
260         SimulatorApi.registerExpectation(
261                 new String []{
262                         Constants.RegisterToSimulator.createConfiguration.MSO_CREATE_CONFIGURATION_ERROR
263                 } , ImmutableMap.<String, Object>of(), SimulatorApi.RegistrationStrategy.APPEND);
264     }
265
266     public static void createConfiguration() {
267         createConfiguration("model-version-id=2a2ea15f-07c6-4b89-bfca-e8aba39a34d6&model-invariant-id=a7eac2b3-8444-40ee-92e3-b3359b32445c");
268     }
269
270     public static void createConfiguration(String model) {
271         SimulatorApi.registerExpectation(
272                 new String []{
273                         Constants.RegisterToSimulator.createConfiguration.GET_VNF_INSTANCES,
274                         Constants.RegisterToSimulator.createConfiguration.GET_MODEL_BY_2_INVARIANT_IDS
275                 } , ImmutableMap.of("model-version-id=2a2ea15f-07c6-4b89-bfca-e8aba39a34d6&model-invariant-id=a7eac2b3-8444-40ee-92e3-b3359b32445c", model), SimulatorApi.RegistrationStrategy.APPEND);
276     }
277
278     public static void getNetworkNodeFormData() {
279         SimulatorApi.registerExpectation(
280                 new String []{
281                         Constants.RegisterToSimulator.createConfiguration.GET_TENANTS
282                 } , ImmutableMap.<String, Object>of(), SimulatorApi.RegistrationStrategy.APPEND);
283     }
284
285     public static void createNewServiceInstance(String subscriber) {
286         SimulatorApi.registerExpectation(
287                 new String []{
288                         Constants.RegisterToSimulator.CreateNewServiceInstance.GET_FULL_SUBSCRIBES,
289                         Constants.RegisterToSimulator.CreateNewServiceInstance.GET_SERVICES
290                 } , ImmutableMap.<String, Object>of(), SimulatorApi.RegistrationStrategy.APPEND);
291
292         switch (subscriber) {
293             case "USP VOICE": createNewServiceInstanceUspVoice(); break;
294             case "MSO_1610_ST": createNewServiceInstanceMso1610ST(); break;
295         }
296     }
297
298     private static void createNewServiceInstanceMso1610ST() {
299         SimulatorApi.registerExpectation(
300                 new String []{
301                         Constants.RegisterToSimulator.CreateNewServiceInstance.GET_SUBSCRIBERS_FOR_CUSTOMER_MSO_1610_ST,
302                         Constants.RegisterToSimulator.CreateNewServiceInstance.GET_MODELS_BY_SERVICE_TYPE_MSO_1610_ST
303                 } , ImmutableMap.<String, Object>of(), SimulatorApi.RegistrationStrategy.APPEND);
304     }
305
306     private static void createNewServiceInstanceUspVoice() {
307         SimulatorApi.registerExpectation(
308                 new String []{
309                         Constants.RegisterToSimulator.CreateNewServiceInstance.GET_SUBSCRIBERS_FOR_CUSTOMER_USP_VOICE,
310                         Constants.RegisterToSimulator.CreateNewServiceInstance.GET_MODELS_BY_SERVICE_TYPE_USP_VOICE
311                 } , ImmutableMap.<String, Object>of(), SimulatorApi.RegistrationStrategy.APPEND);
312     }
313
314     public static void deployNewServiceInstance(String instanceName) {
315         SimulatorApi.registerExpectation(
316                 new String []{
317                         Constants.RegisterToSimulator.CreateNewServiceInstance.deploy.SDC_GET_CATALOG,
318                         Constants.RegisterToSimulator.CreateNewServiceInstance.deploy.GET_AIC_ZONES,
319                         Constants.RegisterToSimulator.CreateNewServiceInstance.deploy.MSO_CREATE_SVC_INSTANCE,
320                         Constants.RegisterToSimulator.CreateNewServiceInstance.deploy.MSO_CREATE_SVC_INSTANCE_ORCH_REQ
321                 } , ImmutableMap.<String, Object>of("<INSTANCE_NAME>", instanceName), SimulatorApi.RegistrationStrategy.APPEND);
322     }
323
324     public static void searchExistingServiceInstanceWithoutModelVerId() {
325         SimulatorApi.registerExpectation(
326                 new String []{
327                         Constants.RegisterToSimulator.SearchForServiceInstance.GET_SUBSCRIBERS_FOR_CUSTOMER_FIREWALL_MISC,
328                         Constants.RegisterToSimulator.SearchForServiceInstance.FILTER_SERVICE_INSTANCE_BY_ID_NO_MODEL_VER_ID,
329                        // Constants.RegisterToSimulator.SearchForServiceInstance.NAMED_QUERY_VIEW_EDIT_NO_MODEL_VER_ID
330                 } ,  ImmutableMap.<String, Object>of(), SimulatorApi.RegistrationStrategy.APPEND);
331     }
332
333     public static void deleteExistingInstance(String orchStatus, String type) {
334         genericSearchExistingServiceInstance();
335         SimulatorApi.registerExpectation(
336                 new String [] {
337                         Constants.RegisterToSimulator.SearchForServiceInstance.GET_SUBSCRIBERS_FOR_CUSTOMER_USP_VOICE,
338                         Constants.RegisterToSimulator.SearchForServiceInstance.NAMED_QUERY_VIEW_EDIT,
339                         Constants.RegisterToSimulator.CreateNewServiceInstance.deploy.GET_AIC_ZONES
340                 }, ImmutableMap.<String, Object>of("<ORCH_STATUS>", orchStatus), SimulatorApi.RegistrationStrategy.APPEND);
341         SimulatorApi.registerExpectationFromPresets(
342                 ImmutableList.of(
343                         new PresetAAIGetTenants(),
344                         new PresetMSODeleteInstanceOrchestrationRequestGet(type),
345                         new PresetSDCGetServiceMetadataGet("7a6ee536-f052-46fa-aa7e-2fca9d674c44", "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0", "service-Complexservice-aLaCarte-csar.zip"),
346                         new PresetSDCGetServiceToscaModelGet("7a6ee536-f052-46fa-aa7e-2fca9d674c44", "service-Complexservice-aLaCarte-csar.zip")),
347                 SimulatorApi.RegistrationStrategy.APPEND);
348     }
349
350     public static void deleteExistingVolumeGroupInstance(String orchStatus) {
351         deleteExistingInstance(orchStatus, "Volume Group");
352         SimulatorApi.registerExpectationFromPreset(new PresetMSODeleteVolumeGroup(), SimulatorApi.RegistrationStrategy.APPEND);
353     }
354
355     public static void deleteExistingVfModuleInstance(String orchStatus) {
356         deleteExistingInstance(orchStatus, "VF Module");
357         SimulatorApi.registerExpectationFromPreset(new PresetMSODeleteVfModule(), SimulatorApi.RegistrationStrategy.APPEND);
358     }
359
360     public static void deleteExistingVnfInstance(String orchStatus) {
361         deleteExistingInstance(orchStatus, "Vnf");
362         SimulatorApi.registerExpectationFromPreset(new PresetMSODeleteVnf(), SimulatorApi.RegistrationStrategy.APPEND);
363     }
364
365     public static void deleteExistingNetworkInstance(String orchStatus) {
366         deleteExistingInstance(orchStatus, "Network");
367         SimulatorApi.registerExpectationFromPreset(new PresetMSODeleteNetwork(), SimulatorApi.RegistrationStrategy.APPEND);
368     }
369
370     public static void deleteExistingServiceInstance(String orchStatus) {
371         deleteExistingInstance(orchStatus, "Service");
372         SimulatorApi.registerExpectationFromPresets(ImmutableList.of(
373                 new PresetMSODeleteService(),
374                 new PresetAAIPostNamedQueryForViewEdit("3f93c7cb-2fd0-4557-9514-e189b7b04f9d", false)), SimulatorApi.RegistrationStrategy.APPEND);
375     }
376
377     public static void resumeVfModule(String serviceInstanceId, String vnfInstanceId ){
378         BulkRegistration.searchExistingServiceInstance();
379         SimulatorApi.registerExpectationFromPresets(
380                 ImmutableList.of (
381                         new PresetAAIGetTenants(),
382                         new PresetMSOCreateVfModuleInstancePost(serviceInstanceId,vnfInstanceId),
383                         new PresetMSOOrchestrationRequestGet("COMPLETE","c0011670-0e1a-4b74-945d-8bf5aede1d9c",Constants.ViewEdit.VF_MODULE_CREATED_SUCCESSFULLY_TEXT)),
384                 SimulatorApi.RegistrationStrategy.APPEND);
385
386     }
387 }