Sync Integ to Master
[sdc.git] / ui-ci / src / main / java / org / openecomp / sdc / ci / tests / execute / sanity / VFCArtifacts.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.ci.tests.execute.sanity;
22
23 import com.aventstack.extentreports.Status;
24 import com.clearspring.analytics.util.Pair;
25 import org.openecomp.sdc.be.datatypes.enums.ResourceTypeEnum;
26 import org.openecomp.sdc.ci.tests.datatypes.AmdocsLicenseMembers;
27 import org.openecomp.sdc.ci.tests.datatypes.HeatMetaFirstLevelDefinition;
28 import org.openecomp.sdc.ci.tests.datatypes.ResourceReqDetails;
29 import org.openecomp.sdc.ci.tests.datatypes.VendorSoftwareProductObject;
30 import org.openecomp.sdc.ci.tests.datatypes.enums.NormativeTypesEnum;
31 import org.openecomp.sdc.ci.tests.datatypes.enums.ResourceCategoryEnum;
32 import org.openecomp.sdc.ci.tests.datatypes.enums.UserRoleEnum;
33 import org.openecomp.sdc.ci.tests.datatypes.http.RestResponse;
34 import org.openecomp.sdc.ci.tests.execute.devCI.ArtifactFromCsar;
35 import org.openecomp.sdc.ci.tests.execute.setup.ExtentTestActions;
36 import org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest;
37 import org.openecomp.sdc.ci.tests.pages.DeploymentArtifactPage;
38 import org.openecomp.sdc.ci.tests.pages.HomePage;
39 import org.openecomp.sdc.ci.tests.pages.ResourceGeneralPage;
40 import org.openecomp.sdc.ci.tests.pages.TesterOperationPage;
41 import org.openecomp.sdc.ci.tests.utilities.*;
42 import org.openecomp.sdc.ci.tests.utils.general.ElementFactory;
43 import org.openecomp.sdc.ci.tests.verificator.VFCArtifactVerificator;
44 import org.testng.annotations.BeforeClass;
45 import org.testng.annotations.Test;
46
47 import java.util.HashMap;
48 import java.util.LinkedList;
49 import java.util.List;
50 import java.util.Map;
51 import java.util.stream.Collectors;
52
53 import static org.testng.Assert.assertTrue;
54 import org.openecomp.sdc.ci.tests.utils.general.VendorLicenseModelRestUtils;
55 import org.openecomp.sdc.ci.tests.utils.general.VendorSoftwareProductRestUtils;
56
57 public class VFCArtifacts extends SetupCDTest {
58         
59         private static final String DEPLOYMENT = "Deployment";
60         private static final String INFORMATIONAL = "Informational";
61         private static final String ARTIFACTS = "artifacts";
62         private static final String DEPLOYMENT_ARTIFACTS = "deploymentArtifacts";
63         private String filePath;
64         @BeforeClass
65         public void beforeClass(){
66                 filePath = FileHandling.getFilePath("VFCArtifacts");
67         }
68
69         @Test
70         public void ImportMultiVFCTest_TC1407998() throws Exception{
71                 
72                 String csarFile = "Import_Multi_VFC.csar";
73                 
74                 ResourceReqDetails resourceMetaData = ElementFactory.getDefaultResourceByType("ciRes", NormativeTypesEnum.ROOT, ResourceCategoryEnum.APPLICATION_L4_DATABASE, getUser().getUserId(), ResourceTypeEnum.VF.toString());
75                 resourceMetaData.setVersion("0.1");
76                 ResourceUIUtils.importVfFromCsar(resourceMetaData, filePath, csarFile, getUser());
77                 
78                 RestResponse getResponse = RestCDUtils.getResource(resourceMetaData, getUser());
79                 assertTrue(getResponse.getErrorCode().intValue() == 200);
80                 
81                 Map<String, LinkedList<HeatMetaFirstLevelDefinition>> expectedArtifactMap = verifyVfcArtifacts(filePath, csarFile, resourceMetaData, getResponse);
82                 
83                 VFCArtifactVerificator.verifyVFCArtifactsNotInVFArtifactList(resourceMetaData, getUser(), getResponse, expectedArtifactMap);
84                 
85                 
86         }
87
88         @Test
89         public void updateCsarWithVFCArtifacts_ModifyArtifacts_TC1449482() throws Exception{
90                 
91                 String csarFile = "LDSA-ORIG.csar";
92                 ResourceReqDetails resourceMetaData = ElementFactory.getDefaultResourceByType("ciRes", NormativeTypesEnum.ROOT, ResourceCategoryEnum.APPLICATION_L4_DATABASE, getUser().getUserId(), ResourceTypeEnum.VF.toString());
93                 resourceMetaData.setVersion("0.1");
94                 ResourceUIUtils.importVfFromCsar(resourceMetaData, filePath, csarFile, getUser());
95                 
96                 Map<String, Object> artifactsFromCsar = ArtifactFromCsar.getVFCArtifacts(filePath + csarFile);
97                 List<String> vfcKeys = artifactsFromCsar.keySet().stream().filter(p -> p.contains("vfc")).collect(Collectors.toList());
98                 for (String key : vfcKeys){
99                         VFCArtifactVerificator.setActualVfcArtifactList(key, resourceMetaData, getUser());
100                 }
101                 
102                 String updatedCsarFile = "LDSA-MODIFY.csar";
103                 ResourceUIUtils.updateVfWithCsar(filePath, updatedCsarFile);
104                 
105                 Map<String, Object> updatedArtifactsFromCsar = ArtifactFromCsar.getVFCArtifacts(filePath + updatedCsarFile);
106                 List<String> updatedVfcKeys = updatedArtifactsFromCsar.keySet().stream().filter(p -> p.contains("vfc")).collect(Collectors.toList());
107                 for (String key : updatedVfcKeys){
108                         verifyVfcInstanceArtifacts(resourceMetaData, null, updatedArtifactsFromCsar, key);
109                         VFCArtifactVerificator.verifyVfcArtifactUpdated(key, resourceMetaData, getUser());
110                 }
111         }
112         
113         @Test
114         public void updateCsarWithVFCArtifacts_DeleteAndAddArtifacts_TC1449473() throws Exception{
115                 
116                 String csarFile = "LDSA-ORIG.csar";
117                 ResourceReqDetails resourceMetaData = ElementFactory.getDefaultResourceByType("ciRes", NormativeTypesEnum.ROOT, ResourceCategoryEnum.APPLICATION_L4_DATABASE, getUser().getUserId(), ResourceTypeEnum.VF.toString());
118                 resourceMetaData.setVersion("0.1");
119                 ResourceUIUtils.importVfFromCsar(resourceMetaData, filePath, csarFile, getUser());
120
121                 String updatedCsarFile = "LDSA-DELETE-ADD.csar";
122                 ResourceUIUtils.updateVfWithCsar(filePath, updatedCsarFile);
123                 
124                 verifyVfcArtifacts(filePath, updatedCsarFile, resourceMetaData, null);
125         }
126         
127         @Test
128         public void updateCsarWithVFCArtifacts_AddFirstVFCIdentifier_TC1425896() throws Exception{
129                 
130                 String csarFile = "LDSA-ORIG-OLD_STRUCTURE.csar";
131                 ResourceReqDetails resourceMetaData = ElementFactory.getDefaultResourceByType("ciRes", NormativeTypesEnum.ROOT, ResourceCategoryEnum.APPLICATION_L4_DATABASE, getUser().getUserId(), ResourceTypeEnum.VF.toString());
132                 resourceMetaData.setVersion("0.1");
133                 ResourceUIUtils.importVfFromCsar(resourceMetaData, filePath, csarFile, getUser());
134                 
135                 VFCArtifactVerificator.verifyNoVfcArtifacts(resourceMetaData, getUser(), null);
136
137                 ResourceGeneralPage.getLeftMenu().moveToDeploymentArtifactScreen();
138                 String[] artifactNamesFromFile = ArtifactFromCsar.getArtifactNamesFromCsar(filePath, csarFile);
139                 String[] artifactsFromFileBeforeUpdate = DeploymentArtifactPage.verifyArtifactsExistInTable(artifactNamesFromFile);
140                 DeploymentArtifactPage.getLeftMenu().moveToGeneralScreen();
141                 
142                 String updatedCsarFile = "LDSA-ADD.csar";
143                 ResourceUIUtils.updateVfWithCsar(filePath, updatedCsarFile);
144
145                 verifyVfcArtifacts(filePath, updatedCsarFile, resourceMetaData, null);
146                 
147                 ResourceGeneralPage.getLeftMenu().moveToDeploymentArtifactScreen();
148                 DeploymentArtifactPage.verifyArtifactsExistInTable(artifactsFromFileBeforeUpdate);
149         }
150         
151         
152         @Test
153         public void updateCsarWithVFCArtifacts_AddAdditionalVFCIdentifier_TC1425898() throws Exception{
154                 
155                 String csarFile = "LDSA-SINGLE.csar";
156                 ResourceReqDetails resourceMetaData = ElementFactory.getDefaultResourceByType("ciRes", NormativeTypesEnum.ROOT, ResourceCategoryEnum.APPLICATION_L4_DATABASE, getUser().getUserId(), ResourceTypeEnum.VF.toString());
157                 resourceMetaData.setVersion("0.1");
158                 ResourceUIUtils.importVfFromCsar(resourceMetaData, filePath, csarFile, getUser());
159                 
160                 Map<String, Object> artifactsFromCsar = ArtifactFromCsar.getVFCArtifacts(filePath + csarFile);
161                 List<String> vfcKeys = artifactsFromCsar.keySet().stream().filter(p -> p.contains("vfc")).collect(Collectors.toList());
162                 for (String key : vfcKeys){
163                         VFCArtifactVerificator.setActualVfcArtifactList(key, resourceMetaData, getUser());
164                 }
165                 
166                 ResourceGeneralPage.getLeftMenu().moveToDeploymentArtifactScreen();
167                 String[] artifactNamesFromFile = ArtifactFromCsar.getArtifactNamesFromCsar(filePath, csarFile);
168                 String[] artifactsFromFileBeforeUpdate = DeploymentArtifactPage.verifyArtifactsExistInTable(artifactNamesFromFile);
169                 DeploymentArtifactPage.getLeftMenu().moveToGeneralScreen();
170                 
171                 String updatedCsarFile = "LDSA-MULTI.csar";
172                 ResourceUIUtils.updateVfWithCsar(filePath, updatedCsarFile);
173                 
174                 Map<String, Object> updatedArtifactsFromCsar = ArtifactFromCsar.getVFCArtifacts(filePath + updatedCsarFile);
175                 List<String> updatedVfcKeys = updatedArtifactsFromCsar.keySet().stream().filter(p -> p.contains("vfc")).collect(Collectors.toList());
176                 for (String key : updatedVfcKeys){
177                         verifyVfcInstanceArtifacts(resourceMetaData, null, updatedArtifactsFromCsar, key);
178                         if (vfcKeys.contains(key)){
179                                 VFCArtifactVerificator.verifyVFCArtifactNotChanged(key, resourceMetaData, getUser());
180                         }
181                 }
182                 
183                 ResourceGeneralPage.getLeftMenu().moveToDeploymentArtifactScreen();
184                 DeploymentArtifactPage.verifyArtifactsExistInTable(artifactsFromFileBeforeUpdate);
185         }
186         
187         @Test
188         public void updateCsarWithVFCArtifacts_DeleteAll_TC1425581() throws Exception{
189                 
190                 String csarFile = "LDSA-ORIG.csar";
191                 ResourceReqDetails resourceMetaData = ElementFactory.getDefaultResourceByType("ciRes", NormativeTypesEnum.ROOT, ResourceCategoryEnum.APPLICATION_L4_DATABASE, getUser().getUserId(), ResourceTypeEnum.VF.toString());
192                 resourceMetaData.setVersion("0.1");
193                 ResourceUIUtils.importVfFromCsar(resourceMetaData, filePath, csarFile, getUser());
194                 
195                 ResourceGeneralPage.getLeftMenu().moveToDeploymentArtifactScreen();
196                 String[] artifactNamesFromFile = ArtifactFromCsar.getArtifactNamesFromCsar(filePath, csarFile);
197                 String[] artifactsFromFileBeforeUpdate = DeploymentArtifactPage.verifyArtifactsExistInTable(artifactNamesFromFile);
198                 DeploymentArtifactPage.getLeftMenu().moveToGeneralScreen();
199                 
200                 String updatedCsarFile = "LDSA-DELETE-ALL.csar";
201                 ResourceUIUtils.updateVfWithCsar(filePath, updatedCsarFile);
202                 
203                 VFCArtifactVerificator.verifyNoVfcArtifacts(resourceMetaData, getUser(), null);
204
205                 ResourceGeneralPage.getLeftMenu().moveToDeploymentArtifactScreen();
206                 DeploymentArtifactPage.verifyArtifactsExistInTable(artifactsFromFileBeforeUpdate);
207         }
208         
209         @Test
210         public void importComplexVFCArtifacts_Onboarding_TC1484153() throws Exception{
211                 
212                 ResourceReqDetails resourceMetaData = ElementFactory.getDefaultResourceByType(ResourceTypeEnum.VF, getUser());
213                 
214                 String vnfFile = "2016-043_vsaegw_fdnt_30_1607_e2e.zip";
215                 String snmpFile = "Fault-alarms-ASDC-vprobes-vLB.zip";
216                 
217                 AmdocsLicenseMembers amdocsLicenseMembers = VendorLicenseModelRestUtils.createVendorLicense(getUser());
218                 Pair<String, VendorSoftwareProductObject> createVSP = VendorSoftwareProductRestUtils.createVSP(resourceMetaData, vnfFile, filePath, getUser(), amdocsLicenseMembers);
219                 String vspName = createVSP.left;
220                 resourceMetaData.setName(vspName);
221                 VendorSoftwareProductObject resourceMeta = createVSP.right;
222                 String vspid = resourceMeta.getVspId();
223                 VendorSoftwareProductRestUtils.addVFCArtifacts(filePath, snmpFile, null, resourceMeta, getUser());
224                 VendorSoftwareProductRestUtils.prepareVspForUse(getUser(), resourceMeta, true);
225                 
226                 String downloadDirectory = getWindowTest().getDownloadDirectory();
227                 String csarFile = vspid + ".csar";
228                 
229                 DownloadManager.downloadCsarByNameFromVSPRepository(vspName, vspid);
230                 HomePage.showVspRepository();
231                 OnboardingUiUtils.importVSP(createVSP);
232                 resourceMetaData.setVersion("0.1");
233                 
234                 verifyVfcArtifacts(downloadDirectory, csarFile, resourceMetaData, null);
235
236                 ResourceGeneralPage.getLeftMenu().moveToDeploymentArtifactScreen();
237                 DeploymentArtifactPage.verifyArtifactsExistInTable(filePath, vnfFile);
238
239         }
240         
241         @Test
242         public void updateComplexVFCArtifacts_AddRemove_Onboarding_TC1484185() throws Exception{
243                 
244                 //check of version is 1
245                 ResourceReqDetails resourceMetaData = ElementFactory.getDefaultResourceByType(ResourceTypeEnum.VF, getUser());
246                 
247                 String vnfFile = "2016-043_vsaegw_fdnt_30_1607_e2e.zip";
248                 String snmpPollFile = "vprobes-vLB.zip";
249                 String updatedSnmpPollFile = "vprobes-vLBAgent.zip";
250                 
251                 AmdocsLicenseMembers amdocsLicenseMembers = VendorLicenseModelRestUtils.createVendorLicense(getUser());
252                 Pair<String, VendorSoftwareProductObject> createVSP = VendorSoftwareProductRestUtils.createVSP(resourceMetaData, vnfFile, filePath, getUser(), amdocsLicenseMembers);
253                 String vspName = createVSP.left;
254                 resourceMetaData.setName(vspName);
255                 VendorSoftwareProductObject resourceMeta = createVSP.right;
256                 String vspid = resourceMeta.getVspId();
257                 String montoringComponentId = VendorSoftwareProductRestUtils.addVFCArtifacts(filePath, snmpPollFile, null, resourceMeta, getUser());
258                 VendorSoftwareProductRestUtils.prepareVspForUse(getUser(), resourceMeta, true);
259                 
260                 String downloadDirectory = getWindowTest().getDownloadDirectory();
261                 String csarFile = vspid + ".csar";
262                 
263                 DownloadManager.downloadCsarByNameFromVSPRepository(vspName, vspid);
264                 HomePage.showVspRepository();
265                 OnboardingUiUtils.importVSP(createVSP);
266                 
267                 ResourceGeneralPage.clickSubmitForTestingButton(vspName);
268                 
269                 reloginWithNewRole(UserRoleEnum.TESTER);
270                 GeneralUIUtils.findComponentAndClick(vspName);
271                 TesterOperationPage.certifyComponent(vspName);
272                 
273                 reloginWithNewRole(UserRoleEnum.DESIGNER);
274                 VendorSoftwareProductRestUtils.updateVspWithVfcArtifacts(filePath, updatedSnmpPollFile, null, montoringComponentId, getUser(), resourceMeta);
275                 DownloadManager.downloadCsarByNameFromVSPRepository(vspName, vspid);
276                 HomePage.showVspRepository();
277                 OnboardingUiUtils.updateVSP(createVSP);
278                 resourceMetaData.setVersion("1.1");
279                 
280                 ResourceGeneralPage.getLeftMenu().moveToDeploymentArtifactScreen();
281                 DeploymentArtifactPage.verifyArtifactsExistInTable(filePath, vnfFile);
282                 
283                 verifyVfcArtifacts(downloadDirectory, csarFile, resourceMetaData, null);
284                 
285         }
286         
287         @Test
288         public void updateComplexVFCArtifacts_Modify_Onboarding_TC1484195() throws Exception{
289                 
290                 //check of version is 2
291                 ResourceReqDetails resourceMetaData = ElementFactory.getDefaultResourceByType(ResourceTypeEnum.VF, getUser());
292                 
293                 String vnfFile = "2016-043_vsaegw_fdnt_30_1607_e2e.zip";
294                 String snmpFile = "vprobes-vLB.zip";
295                 String updatedSnmpFile = "vprobes-vLB-Modified.zip";
296                 
297                 AmdocsLicenseMembers amdocsLicenseMembers = VendorLicenseModelRestUtils.createVendorLicense(getUser());
298                 Pair<String, VendorSoftwareProductObject> createVSP = VendorSoftwareProductRestUtils.createVSP(resourceMetaData, vnfFile, filePath, getUser(), amdocsLicenseMembers);
299                 String vspName = createVSP.left;
300                 resourceMetaData.setName(vspName);
301                 VendorSoftwareProductObject resourceMeta = createVSP.right;
302                 String vspid = resourceMeta.getVspId();
303                 String monitoringId = VendorSoftwareProductRestUtils.addVFCArtifacts(filePath, snmpFile, null, resourceMeta, getUser());
304                 VendorSoftwareProductRestUtils.prepareVspForUse(getUser(), resourceMeta, true);
305                 
306                 String downloadDirectory = getWindowTest().getDownloadDirectory();
307                 String csarFile = vspid + ".csar";
308                 
309                 DownloadManager.downloadCsarByNameFromVSPRepository(vspName, vspid);
310                 HomePage.showVspRepository();
311                 OnboardingUiUtils.importVSP(createVSP);
312                 
313                 Map<String, Object> artifactsFromCsar = ArtifactFromCsar.getVFCArtifacts(downloadDirectory + csarFile);
314                 List<String> vfcKeys = artifactsFromCsar.keySet().stream().filter(p -> p.contains("vfc")).collect(Collectors.toList());
315                 for (String key : vfcKeys){
316                         resourceMetaData.setVersion("0.1");
317                         VFCArtifactVerificator.setActualVfcArtifactList(key, resourceMetaData, getUser());
318                 }
319                 
320                 ResourceGeneralPage.clickSubmitForTestingButton(vspName);
321                 
322                 reloginWithNewRole(UserRoleEnum.TESTER);
323                 GeneralUIUtils.findComponentAndClick(vspName);
324                 TesterOperationPage.certifyComponent(vspName);
325                 
326                 reloginWithNewRole(UserRoleEnum.DESIGNER);
327                 VendorSoftwareProductRestUtils.updateVspWithVfcArtifacts(filePath, updatedSnmpFile, null, monitoringId, getUser(), resourceMeta);
328                 DownloadManager.downloadCsarByNameFromVSPRepository(vspName, vspid);
329                 HomePage.showVspRepository();
330                 OnboardingUiUtils.updateVSP(createVSP);
331                 resourceMetaData.setVersion("1.1");
332                 
333                 ResourceGeneralPage.getLeftMenu().moveToDeploymentArtifactScreen();
334                 DeploymentArtifactPage.verifyArtifactsExistInTable(filePath, vnfFile);
335                 
336                 Map<String, Object> artifactsFromCsarAfterUpdate = ArtifactFromCsar.getVFCArtifacts(downloadDirectory + csarFile);
337                 List<String> vfcKeysAfterUpdate = artifactsFromCsarAfterUpdate.keySet().stream().filter(p -> p.contains("vfc")).collect(Collectors.toList());
338                 for (String key : vfcKeysAfterUpdate){
339                         verifyVfcInstanceArtifacts(resourceMetaData, null, artifactsFromCsarAfterUpdate, key);
340                         VFCArtifactVerificator.verifyVfcArtifactUpdated(key, resourceMetaData, getUser());
341                 }
342                 
343         }
344         
345         
346         @Override
347         protected UserRoleEnum getRole() {
348                 return UserRoleEnum.DESIGNER;
349         }
350         
351         private Map<String, LinkedList<HeatMetaFirstLevelDefinition>> verifyVfcArtifacts(String filepath, String csarFile,
352                         ResourceReqDetails resourceMetaData, RestResponse getResponse) throws Exception {
353                 
354                 ExtentTestActions.log(Status.INFO, "Verifying VFC artifacts");
355                 Map<String, LinkedList<HeatMetaFirstLevelDefinition>> expectedArtifactMap = null;
356                 ExtentTestActions.log(Status.INFO, "Reading artifacts in CSAR file");
357                 Map<String, Object> artifactsFromCsar = ArtifactFromCsar.getVFCArtifacts(filepath + csarFile);
358                 List<String> vfcKeys = artifactsFromCsar.keySet().stream().filter(p -> p.contains("vfc")).collect(Collectors.toList());
359                 for (String key : vfcKeys){
360                         expectedArtifactMap = verifyVfcInstanceArtifacts(resourceMetaData, getResponse, artifactsFromCsar, key);
361                 }
362                 return expectedArtifactMap;
363         }
364
365         private Map<String, LinkedList<HeatMetaFirstLevelDefinition>> verifyVfcInstanceArtifacts(
366                         ResourceReqDetails resourceMetaData, RestResponse getResponse, Map<String, Object> artifactsFromCsar, String key) {
367                 
368                 Map<String, LinkedList<HeatMetaFirstLevelDefinition>> expectedArtifactMap;
369                 Map<String,LinkedList<HeatMetaFirstLevelDefinition>> vfcDeploymentArtifacts = (Map<String,LinkedList<HeatMetaFirstLevelDefinition>>)artifactsFromCsar.get(key);
370                 LinkedList<HeatMetaFirstLevelDefinition> deploymentList = vfcDeploymentArtifacts.get(DEPLOYMENT);
371                 LinkedList<HeatMetaFirstLevelDefinition> informationalList = (LinkedList<HeatMetaFirstLevelDefinition>) vfcDeploymentArtifacts.get(INFORMATIONAL);
372                 
373                 expectedArtifactMap = new HashMap<String, LinkedList<HeatMetaFirstLevelDefinition>>();
374                 if(deploymentList == null){
375                         expectedArtifactMap.put(DEPLOYMENT_ARTIFACTS, new LinkedList<HeatMetaFirstLevelDefinition>());
376                 }else{
377                         expectedArtifactMap.put(DEPLOYMENT_ARTIFACTS, deploymentList);
378                 }
379                 if(informationalList == null){
380                         expectedArtifactMap.put(ARTIFACTS, new LinkedList<HeatMetaFirstLevelDefinition>());
381                 }else{
382                         expectedArtifactMap.put(ARTIFACTS, informationalList);
383                 }
384                 
385                 VFCArtifactVerificator.verifyVfcArtifacts(resourceMetaData, getUser(), key, expectedArtifactMap, getResponse);
386                 return expectedArtifactMap;
387         }
388 }