1 package org.onap.vid.api;
3 import static java.util.stream.Collectors.counting;
4 import static java.util.stream.Collectors.groupingBy;
5 import static java.util.stream.Collectors.toList;
6 import static java.util.stream.Collectors.toMap;
7 import static org.hamcrest.CoreMatchers.hasItem;
8 import static org.hamcrest.CoreMatchers.is;
9 import static org.hamcrest.CoreMatchers.not;
10 import static org.hamcrest.CoreMatchers.startsWith;
11 import static org.hamcrest.MatcherAssert.assertThat;
12 import static org.hamcrest.Matchers.hasSize;
13 import static org.onap.simulator.presetGenerator.presets.mso.PresetMSOOrchestrationRequestGet.COMPLETE;
14 import static org.onap.simulator.presetGenerator.presets.mso.PresetMSOServiceInstanceGen2WithNames.Keys;
15 import static org.testng.AssertJUnit.assertEquals;
16 import static org.testng.AssertJUnit.assertTrue;
17 import static vid.automation.test.infra.Features.FLAG_1906_INSTANTIATION_API_USER_VALIDATION;
18 import static vid.automation.test.services.SimulatorApi.registerExpectationFromPresets;
19 import static vid.automation.test.utils.ExtendedHamcrestMatcher.hasItemsFromCollection;
21 import com.google.common.collect.ImmutableList;
22 import com.google.common.collect.ImmutableMap;
23 import java.util.Arrays;
24 import java.util.Collections;
25 import java.util.LinkedList;
26 import java.util.List;
28 import java.util.Objects;
29 import java.util.Optional;
31 import java.util.UUID;
32 import java.util.concurrent.atomic.AtomicReference;
33 import java.util.stream.IntStream;
34 import java.util.stream.Stream;
35 import net.bytebuddy.utility.RandomString;
36 import net.javacrumbs.jsonunit.JsonAssert;
37 import org.apache.commons.lang3.StringUtils;
38 import org.apache.logging.log4j.LogManager;
39 import org.apache.logging.log4j.Logger;
40 import org.hamcrest.collection.IsCollectionWithSize;
41 import org.onap.sdc.ci.tests.datatypes.UserCredentials;
42 import org.onap.simulator.presetGenerator.presets.BasePresets.BasePreset;
43 import org.onap.simulator.presetGenerator.presets.aai.PresetAAIGetCloudOwnersByCloudRegionId;
44 import org.onap.simulator.presetGenerator.presets.aai.PresetAAIGetSubscribersGet;
45 import org.onap.simulator.presetGenerator.presets.ecompportal_att.PresetGetSessionSlotCheckIntervalGet;
46 import org.onap.simulator.presetGenerator.presets.mso.PresetMSOAssignServiceInstanceGen2WithNames;
47 import org.onap.simulator.presetGenerator.presets.mso.PresetMSOCreateServiceInstanceGen2WithNames;
48 import org.onap.simulator.presetGenerator.presets.mso.PresetMSODeleteMacroService;
49 import org.onap.simulator.presetGenerator.presets.mso.PresetMSOOrchestrationRequestGet;
50 import org.onap.simulator.presetGenerator.presets.mso.PresetMSOOrchestrationRequestGetErrorResponse;
51 import org.onap.simulator.presetGenerator.presets.mso.PresetMSOOrchestrationRequestsManyInstanceStatusesGet;
52 import org.onap.simulator.presetGenerator.presets.mso.PresetMSOServiceInstanceGen2ErrorResponse;
53 import org.onap.vid.model.asyncInstantiation.JobAuditStatus;
54 import org.onap.vid.model.asyncInstantiation.ServiceInfo;
55 import org.springframework.http.HttpStatus;
56 import org.springframework.web.client.HttpClientErrorException;
57 import org.springframework.web.client.HttpServerErrorException;
58 import org.testng.Assert;
59 import org.testng.annotations.DataProvider;
60 import org.testng.annotations.Test;
61 import vid.automation.test.infra.FeatureTogglingTest;
62 import vid.automation.test.infra.Wait;
63 import vid.automation.test.model.JobStatus;
64 import vid.automation.test.model.ServiceAction;
65 import vid.automation.test.services.SimulatorApi;
67 public class AsyncInstantiationMacroApiTest extends AsyncInstantiationBase {
68 private static final Logger logger = LogManager.getLogger(AsyncInstantiationMacroApiTest.class);
70 private static final String MSO_BASE_ERROR =
71 "Received error from SDN-C: java.lang.IllegalArgumentException: All keys must be specified for class org."+
72 "opendaylight.yang.gen.v1.org.onap.sdnc.northbound.generic.resource.rev170824.vf.module.assignments.vf."+
73 "module.assignments.vms.VmKey. Missing key is getVmType. Supplied key is VmKey [].";
74 private static final String MSO_ERROR = MSO_BASE_ERROR + StringUtils.repeat(" and a lot of sentences for long message", 60);
76 private static final String INSTANCE_GROUP_ID_LABEL = "instanceGroupId";
78 private static final String INSTANCE_GROUP_LABEL = "instanceGroup";
80 private static final String DELETE_MACRO_SERVICE_FILE_NAME = "asyncInstantiation/vidRequestDeleteMacroService.json";
83 public void createBulkOfCreateInstances(){
84 Map<Keys, String> names = generateNames();
85 final int bulkSize = 3;
86 ImmutableList<BasePreset> presets = addPresetsForCreateBulkOfCreateInstances(bulkSize, names);
87 createBulkOfInstancesAndAssert(presets, false, bulkSize, JobStatus.COMPLETED, names);
90 @Test(dataProvider = "auditSources")
91 public void getAuditStatus_nonExistingJobId_returnsEmptyList(JobAuditStatus.SourceStatus source){
92 List<JobAuditStatus> audits = getAuditStatuses(UUID.randomUUID().toString(), source.name());
93 Assert.assertEquals(audits.size(),0);
96 @Test(expectedExceptions = HttpClientErrorException.class)
97 public void getAuditStatus_nonExistingSource_returnsError() {
99 getAuditStatuses(UUID.randomUUID().toString(), new RandomString(8).nextString());
100 } catch (HttpClientErrorException e) {
101 Assert.assertEquals(e.getResponseBodyAsString(),"The parameter source must have a value among : MSO, VID");
102 assertThat(e.getStatusCode(), is(HttpStatus.BAD_REQUEST));
108 public void simulateBulkRequest_getAuditStatus_auditStatusesReturnedAccordingSource() {
109 final int bulkSize = 2;
110 final List<String> jobIds = createBulkAndWaitForBeCompleted(bulkSize);
112 for(String jobId: jobIds) {
113 List<JobAuditStatus> actualVidAudits = getAuditStatuses(jobId, JobAuditStatus.SourceStatus.VID.name());
114 List<JobAuditStatus> expectedVidAudits = Stream.of(JobStatus.PENDING, JobStatus.IN_PROGRESS, JobStatus.COMPLETED)
115 .map(status-> vidAuditStatus(jobId, status.name(), status.equals(JobStatus.COMPLETED))).collect(toList());
116 assertThat(actualVidAudits, hasItemsFromCollection(expectedVidAudits));
118 List<JobAuditStatus> actualMsoAudits = getAuditStatuses(jobId, JobAuditStatus.SourceStatus.MSO.name());
119 List<JobAuditStatus> expectedMsoAudits = Stream.of("REQUESTED", "COMPLETE")
120 .map(status-> new JobAuditStatus(UUID.fromString(jobId),
122 JobAuditStatus.SourceStatus.MSO,
123 UUID.fromString("c0011670-0e1a-4b74-945d-8bf5aede1d9c"),
124 status.equals("COMPLETE") ? "Service Instance was created successfully." : null,
125 false)).collect(toList());
126 assertThat(actualMsoAudits, is(expectedMsoAudits));
131 @Test(expectedExceptions = HttpClientErrorException.class)
132 public void addBulkAndDeleteInProgress_deletionIsRejected(){
134 final Map<String, JobStatus> jobs = addBulkAllPendingButOneInProgress();
135 deleteOneJobHavingTheStatus(jobs, JobStatus.IN_PROGRESS);
136 } catch (HttpClientErrorException e) {
137 JsonAssert.assertJsonPartEquals(
139 "Service status does not allow deletion from the queue (Request id: %s)",
140 e.getResponseHeaders().getFirst("X-ECOMP-RequestID-echo")
142 e.getResponseBodyAsString(),
145 assertThat(e.getStatusCode(), is(HttpStatus.METHOD_NOT_ALLOWED));
152 public void addBulkAndDeletePending_deletedIsHiddenFromServiceInfoResults(){
153 Map<String, JobStatus> statusesBefore = addBulkAllPendingButOneInProgress();
155 final String deletedJob = deleteOneJobHavingTheStatus(statusesBefore, JobStatus.PENDING);
157 final Map<String, JobStatus> statusesNow = serviceListCall().getBody().stream()
158 .filter(si -> statusesBefore.keySet().contains(si.jobId))
159 .collect(toMap(si -> si.jobId, si -> si.jobStatus));
161 statusesBefore.remove(deletedJob);
162 assertThat("deleted job shall not be present in StatusInfo response", statusesNow, is(statusesBefore));
165 @Test(invocationCount = 3)
166 public void createBulkOfCreateInstancesWithSinglePreset_firstOneInProgressOtherArePending(){
167 final int bulkSize = 3;
168 Map<String, JobStatus> statusMap = addBulkAllPendingButOneInProgress(bulkSize);
169 Set<String> jobIds = statusMap.keySet();
171 final Map<JobStatus, List<ServiceInfo>> statuses = serviceListCall().getBody().stream()
172 .filter(si -> jobIds.contains(si.jobId))
173 .collect(groupingBy(ServiceInfo::getJobStatus));
175 // Variable "statuses" contains two lists by status:
176 // IN_PROGRESS: The ultimate first job - named with _001 - is always the only one in progress
177 // PENDING: The other two jobs - named with _002 and _003 - are the still pending
178 assertThat(jobIds, hasSize(bulkSize));
179 assertThat(statuses.get(JobStatus.IN_PROGRESS), hasSize(1));
181 assertThat(statuses.get(JobStatus.PENDING), hasSize(bulkSize - 1));
185 @Test(dataProvider = "trueAndFalse" )
186 public void whenServiceInBulkFailed_otherServicesAreStopped(Boolean isPresetForCreate){
187 Map<Keys, String> names = generateNames();
188 final int bulkSize = 3;
190 //if there is a preset for create, service shall failed during in_progress (upon get status)
191 //it there is no preset for create, service shall failed during pending (upon create request)
192 List<BasePreset> msoBulkPresets = isPresetForCreate ?
193 generateMsoCreateBulkPresets(bulkSize, names) :
195 ImmutableList<BasePreset> presets = new ImmutableList.Builder<BasePreset>()
196 .add(new PresetGetSessionSlotCheckIntervalGet())
197 .add(new PresetAAIGetSubscribersGet())
198 .add(PresetAAIGetCloudOwnersByCloudRegionId.PRESET_MTN3_TO_ATT_SABABA)
199 .addAll(msoBulkPresets)
200 .add(new PresetMSOOrchestrationRequestGet("FAILED"))
202 List<String> jobIds = createBulkOfMacroInstances(presets, false, bulkSize, names);
203 Assert.assertEquals(jobIds.size(),bulkSize);
204 boolean result = Wait.waitFor(x->{
205 List<ServiceInfo> serviceInfoList = serviceListCall().getBody();
206 Map<JobStatus, Long> statusCount = serviceInfoList.stream().filter(si->jobIds.contains(si.jobId)).collect(groupingBy(ServiceInfo::getJobStatus, counting()));
207 return Objects.equals(statusCount.get(JobStatus.FAILED), 1L) && Objects.equals(statusCount.get(JobStatus.STOPPED), 2L);
209 assertTrue(String.format("failed to get jobs [%s] to state of: 1 failed and 2 stopped ",
210 String.join(",", jobIds)),result);
214 public void createBulkOfAssignInstances(){
215 Map<Keys, String> names = generateNames();
216 final int bulkSize = 2;
217 ImmutableList<BasePreset> msoBulkPresets = IntStream.rangeClosed(0, bulkSize-1)
218 .mapToObj(i-> new PresetMSOAssignServiceInstanceGen2WithNames(names, i))
219 .collect(ImmutableList.toImmutableList());
220 ImmutableList<BasePreset> presets = new ImmutableList.Builder<BasePreset>()
221 .add(new PresetGetSessionSlotCheckIntervalGet())
222 .add(new PresetAAIGetSubscribersGet())
223 .add(PresetAAIGetCloudOwnersByCloudRegionId.PRESET_MTN3_TO_ATT_SABABA)
224 .addAll(msoBulkPresets)
225 .add(new PresetMSOOrchestrationRequestGet())
227 createBulkOfInstancesAndAssert(presets, true, bulkSize, JobStatus.COMPLETED, names);
231 public void tryToCreateBulkOfAssignInstancesErrorResponseFromMso(){
232 ImmutableList<BasePreset> presets = ImmutableList.of(
233 new PresetGetSessionSlotCheckIntervalGet(),
234 new PresetAAIGetSubscribersGet(),
235 new PresetMSOServiceInstanceGen2ErrorResponse(406));
237 List<String> jobIds = createBulkOfInstancesAndAssert(presets, true,1, JobStatus.FAILED, generateNames());
238 String jobId = jobIds.get(0);
239 List<JobAuditStatus> actualMsoAudits = getAuditStatuses(jobId, JobAuditStatus.SourceStatus.MSO.name());
240 JobAuditStatus expectedMsoAudit = new JobAuditStatus(UUID.fromString(jobId), "FAILED", JobAuditStatus.SourceStatus.MSO,
242 "Http Code:406, \"messageId\":\"SVC0002\",\"text\":\"JSON Object Mapping Request\"" ,
244 assertThat(actualMsoAudits.get(0), is(expectedMsoAudit));
248 public void whenGetLongErrorMessageFromMso_ThenAuditFirst2000Chars() {
249 Map<Keys, String> names = generateNames();
250 ImmutableList<BasePreset> presets = ImmutableList.of(
251 new PresetGetSessionSlotCheckIntervalGet(),
252 new PresetAAIGetSubscribersGet(),
253 new PresetMSOCreateServiceInstanceGen2WithNames(names, 0),
254 new PresetMSOOrchestrationRequestGet("FAILED", PresetMSOOrchestrationRequestGet.DEFAULT_REQUEST_ID, MSO_ERROR));
256 List<String> jobIds = createBulkOfInstancesAndAssert(presets, false, 1, JobStatus.FAILED, names);
257 String jobId = jobIds.get(0);
258 List<JobAuditStatus> actualMsoAudits = getAuditStatuses(jobId, JobAuditStatus.SourceStatus.MSO.name());
259 Optional<JobAuditStatus> jobAuditStatus = actualMsoAudits.stream().filter(x -> x.getJobStatus().equals("FAILED")).findFirst();
260 assertTrue(jobAuditStatus.isPresent());
261 assertThat(jobAuditStatus.get().getAdditionalInfo(), startsWith(MSO_BASE_ERROR));
262 assertThat(jobAuditStatus.get().getAdditionalInfo().length(), is(2000));
266 public void whenHideCompletedService_thenServiceNotReturnInServiceList(){
267 List<String> services = createBulkAndWaitForBeCompleted(2);
268 hideService(services.get(0));
269 List<String> serviceInfoList = serviceListCall().getBody().stream().map(ServiceInfo::getJobId).collect(toList());
270 assertThat(serviceInfoList, hasItem(services.get(1)));
271 assertThat(serviceInfoList, not(hasItem(services.get(0))));
275 public void errorResponseInGetStatusFromMso_getAuditStatusFromMso_errorMsgExistInAdditionalInfo(){
276 Map<Keys, String> names = generateNames();
277 ImmutableList<BasePreset> presets = new ImmutableList.Builder<BasePreset>()
278 .add(new PresetGetSessionSlotCheckIntervalGet())
279 .add(new PresetAAIGetSubscribersGet())
280 .add(PresetAAIGetCloudOwnersByCloudRegionId.PRESET_MTN3_TO_ATT_SABABA)
281 .add(new PresetMSOAssignServiceInstanceGen2WithNames(names, 0))
282 .add(new PresetMSOOrchestrationRequestGetErrorResponse(406))
285 final List<String> jobIds = createBulkOfInstancesAndAssert(presets, true,1, JobStatus.IN_PROGRESS, names);
286 String jobId = jobIds.get(0);
287 Wait.waitFor(y-> getAuditStatuses(jobId, JobAuditStatus.SourceStatus.MSO.name()).stream()
288 .anyMatch(si -> si.getJobStatus().equals("FAILED")),
290 List<JobAuditStatus> actualMsoAudits = getAuditStatuses(jobId, JobAuditStatus.SourceStatus.MSO.name());
291 List<JobAuditStatus> expectedMsoAudits = Stream.of("REQUESTED", "FAILED")
292 .map(status -> new JobAuditStatus(UUID.fromString(jobId),
294 JobAuditStatus.SourceStatus.MSO,
295 UUID.fromString("c0011670-0e1a-4b74-945d-8bf5aede1d9c"),
296 status.equals("FAILED") ? "Http Code:406, \"messageId\":\"SVC0002\",\"text\":\"JSON Object Mapping Request\"" : null,
297 false)).collect(toList());
298 assertThat(actualMsoAudits, is(expectedMsoAudits));
303 public void inProgressJobMoreThan24HoursIsFailedInVidAudit(){
304 addBulkPendingWithCustomList(Collections.singletonList(new PresetMSOOrchestrationRequestGet("IN_PROGRESS",24)));
306 AtomicReference<ServiceInfo> inProgressJob = new AtomicReference<>();
307 boolean isJobFound = Wait.waitFor(x->{
308 List<ServiceInfo> serviceInfoList = serviceListCall().getBody();
309 inProgressJob.set(serviceInfoList.stream().
310 filter(serviceInfo -> serviceInfo.serviceInstanceId.equals(PresetMSOOrchestrationRequestGet.DEFAULT_SERVICE_INSTANCE_ID) && serviceInfo.jobStatus.equals(JobStatus.FAILED))
313 return inProgressJob.get() != null;
316 org.junit.Assert.assertTrue("Job with DEFAULT_SERVICE_INSTANCE_ID and status FAILED should present", isJobFound);
318 verifyAuditStatuses(inProgressJob.get().jobId, Arrays.asList(JobStatus.PENDING.name(), JobStatus.IN_PROGRESS.name(),JobStatus.FAILED.name()), JobAuditStatus.SourceStatus.VID);
319 verifyAuditStatuses(inProgressJob.get().jobId, Arrays.asList("REQUESTED", "IN_PROGRESS"), JobAuditStatus.SourceStatus.MSO);
323 public void inProgressJobLessThan24HoursIsStillInProgressInVidAudit(){
324 addBulkPendingWithCustomList(Collections.singletonList(new PresetMSOOrchestrationRequestGet("IN_PROGRESS",23)));
326 AtomicReference<ServiceInfo> inProgressJob = new AtomicReference<>();
327 boolean isJobFound = Wait.waitFor(x->{
328 List<ServiceInfo> serviceInfoList = serviceListCall().getBody();
329 inProgressJob.set(serviceInfoList.stream().filter(serviceInfo -> serviceInfo.serviceInstanceId.equals(PresetMSOOrchestrationRequestGet.DEFAULT_SERVICE_INSTANCE_ID))
332 return inProgressJob.get() != null;
335 org.junit.Assert.assertTrue("Job with DEFAULT_SERVICE_INSTANCE_ID should present", isJobFound);
336 org.junit.Assert.assertEquals("Tested job status is not as expected", JobStatus.IN_PROGRESS, inProgressJob.get().getJobStatus());
338 verifyAuditStatuses(inProgressJob.get().jobId, Arrays.asList(JobStatus.PENDING.name(), JobStatus.IN_PROGRESS.name()), JobAuditStatus.SourceStatus.VID);
339 verifyAuditStatuses(inProgressJob.get().jobId, Arrays.asList("REQUESTED", "IN_PROGRESS"), JobAuditStatus.SourceStatus.MSO);
343 public void verifyAuditStatusOfInstanceGroupId(){
344 SimulatorApi.registerExpectationFromPreset(new PresetMSOOrchestrationRequestsManyInstanceStatusesGet(INSTANCE_GROUP_ID_LABEL, INSTANCE_GROUP_LABEL), SimulatorApi.RegistrationStrategy.CLEAR_THEN_SET);
345 final List<JobAuditStatus> expectedAuditStatusList = getAuditStatusesForInstance("VNFGROUP", "df305d54-75b4-431b-adb2-eb6b9e5460df");
346 verifyInstanceAuditStatuses(Arrays.asList(
347 new JobAuditStatus("groupTestName", "IN_PROGRESS", UUID.fromString("28502bd2-3aff-4a03-9f2b-5a0d1cb1ca24") , INSTANCE_GROUP_LABEL+" instance creation", null, INSTANCE_GROUP_LABEL),
348 new JobAuditStatus("groupTestName", "COMPLETE",UUID.fromString("28502bd2-3aff-4a03-9f2b-5a0d1cb1ca24") , INSTANCE_GROUP_LABEL+" instance creation", null, INSTANCE_GROUP_LABEL),
349 new JobAuditStatus("groupTestName", "IN_PROGRESS", UUID.fromString("f711f0ff-24b6-4d7f-9314-4b4eae15f48c") , INSTANCE_GROUP_LABEL+" instance deletion", null, INSTANCE_GROUP_LABEL),
350 new JobAuditStatus("groupTestName", "COMPLETE",UUID.fromString("f711f0ff-24b6-4d7f-9314-4b4eae15f48c") , INSTANCE_GROUP_LABEL+" instance deletion", null, INSTANCE_GROUP_LABEL)),
351 expectedAuditStatusList);
354 @Test(expectedExceptions = HttpClientErrorException.class)
355 public void verifyAuditStatusOfInstanceGroupId_notExistingVidType(){
357 getAuditStatusesForInstance("KUKU", "df305d54-75b4-431b-adb2-eb6b9e5460df");
358 } catch (HttpClientErrorException e){ //to verify the properiatary statusCode field
359 assertThat("Code is not as expected", HttpStatus.BAD_REQUEST.equals(e.getStatusCode()));
364 @Test(expectedExceptions = HttpServerErrorException.class)
365 public void verifyAuditStatusOfInstanceGroupId_notExistingMsoInstanceId(){
367 getAuditStatusesForInstance("VNFGROUP", "df305d54-75b4-431b-adb2-eb6b9e5460aa");
368 } catch (HttpServerErrorException e){ //to verify the properiatary statusCode field
369 assertThat("Code is not as expected", HttpStatus.INTERNAL_SERVER_ERROR.equals(e.getStatusCode()));
375 public static Object[][] macroAndALaCarteBulk(){
376 return new Object[][]{{CREATE_BULK_OF_MACRO_REQUEST}, {CREATE_BULK_OF_ALACARTE_REQUEST_WITH_VNF}};
379 @Test(dataProvider = "macroAndALaCarteBulk", expectedExceptions = HttpClientErrorException.class)
380 @FeatureTogglingTest(FLAG_1906_INSTANTIATION_API_USER_VALIDATION)
381 public void verifyCreateBulkOfInstancesUserPermissionValidation(String requestDetailsFileName) {
382 login(new UserCredentials("em1536000", "em1536000", null, null, null));
384 createBulkOfInstances(false, 1, Collections.EMPTY_MAP, requestDetailsFileName);
385 } catch (HttpClientErrorException e){
386 assertEquals("Code is not as expected", HttpStatus.FORBIDDEN.value(), e.getStatusCode().value());
396 public void deleteMacroService_getAuditStatus_verifyCompleted() {
397 String deleteServiceRequestId = UUID.randomUUID().toString();
398 String serviceInstanceId = "service-instance-id";
399 registerExpectationFromPresets(ImmutableList.of(
400 new PresetAAIGetSubscribersGet(),
401 new PresetMSODeleteMacroService(deleteServiceRequestId, serviceInstanceId),
402 new PresetMSOOrchestrationRequestGet(COMPLETE, deleteServiceRequestId)
403 ), SimulatorApi.RegistrationStrategy.CLEAR_THEN_SET);
405 List<String> uuids = createBulkOfInstances(false, 1, ImmutableMap.of(), DELETE_MACRO_SERVICE_FILE_NAME);
406 assertThat(uuids, IsCollectionWithSize.hasSize(1));
407 String jobId = uuids.get(0);
409 assertExpectedStatusAndServiceInfo(JobStatus.COMPLETED, jobId, PATIENCE_LEVEL.FAIL_FAST, new ServiceInfo(
410 "us16807000", JobStatus.COMPLETED, false,
411 "d61e6f2d-12fa-4cc2-91df-7c244011d6fc", "WayneHolland", "WATKINS",
412 "JAG1", "YUDFJULP-JAG1",
413 "092eb9e8e4b7412e8787dd091bc58e86", "USP-SIP-IC-24335-T-01",
415 "service-instance-type", null,
416 null, "InstanceName",
417 "f028b2e2-7080-4b13-91b2-94944d4c42d8", "Service with VRF", "5.0",
418 jobId, null, ServiceAction.DELETE, false)