aboutsummaryrefslogtreecommitdiffstats
path: root/ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/VfDeploymentInformationalArtifacts.java
blob: f7e79452270aaa331667d3f3a5eea9a2d5790d19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
/*-
 * ============LICENSE_START=======================================================
 * SDC
 * ================================================================================
 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 * ================================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============LICENSE_END=========================================================
 */

package org.openecomp.sdc.ci.tests.execute.sanity;

import java.util.ArrayList;
import java.util.List;

import org.openecomp.sdc.be.dao.api.ActionStatus;
import org.openecomp.sdc.be.datatypes.enums.ResourceTypeEnum;
import org.openecomp.sdc.be.model.User;
import org.openecomp.sdc.ci.tests.datatypes.ArtifactInfo;
import org.openecomp.sdc.ci.tests.datatypes.DataTestIdEnum;
import org.openecomp.sdc.ci.tests.datatypes.DataTestIdEnum.Dashboard;
import org.openecomp.sdc.ci.tests.datatypes.ResourceReqDetails;
import org.openecomp.sdc.ci.tests.datatypes.enums.UserRoleEnum;
import org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest;
import org.openecomp.sdc.ci.tests.pages.CompositionPage;
import org.openecomp.sdc.ci.tests.pages.ResourceGeneralPage;
import org.openecomp.sdc.ci.tests.utilities.ArtifactUIUtils;
import org.openecomp.sdc.ci.tests.utilities.FileHandling;
import org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils;
import org.openecomp.sdc.ci.tests.utilities.ResourceUIUtils;
import org.openecomp.sdc.ci.tests.utils.general.ElementFactory;
import org.openecomp.sdc.ci.tests.utils.validation.ErrorValidationUtils;
import org.openecomp.sdc.common.api.ArtifactTypeEnum;
import org.openqa.selenium.WebElement;
import org.testng.Assert;
import org.testng.SkipException;
import org.testng.annotations.Test;


public class VfDeploymentInformationalArtifacts extends SetupCDTest {
	
	
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	// START US824719
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	
	// US824719 - Import VSP - VF informational artifacts
	// TC1434241 - Import VF Artifacts - Deployment Artifacts - One Artifact, One Type
	@Test
	public void importVfArtifactsDeploymentArtifactsOneArtifactOneType() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 320081");			
		}
		String fileName = "TC1434241.csar";
		String folder ="US825779";
		
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "heatartifactname1.yaml", null, "heatartifactname1", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));
		
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder, deploymentArtifacts, null);
	}
	
	// US824719 - Import VSP - VF informational artifacts
	// TC1434245 - Import VF Artifacts - Deployment Artifacts - Multiple Artifacts, Multiple Types
	@Test
	public void importVfArtifactsDeploymentArtifactsMultipleArtifactsMultipleTypes() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 320081");			
		}
		String fileName = "TC1434245.csar";
		String folder ="US825779";
		
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "heatartifactname1.yaml", null, "heatartifactname1", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "heatartifactname2.yaml", null, "heatartifactname2", ArtifactTypeEnum.HEAT.getType(), "1"));
		
		deploymentArtifacts.add(new ArtifactInfo(null, "HeatVolArtifactName1.yaml", null, "HeatVolArtifactName1", ArtifactTypeEnum.HEAT_VOL.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "HeatVolArtifactName2.yaml", null, "HeatVolArtifactName2", ArtifactTypeEnum.HEAT_VOL.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "HeatVolArtifactName3.yaml", null, "HeatVolArtifactName3", ArtifactTypeEnum.HEAT_VOL.getType(), "1"));
		
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));
		
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName,folder, deploymentArtifacts, null);
	}
	
	// US824719 - Import VSP - VF informational artifacts
	// TC1434247 - Import VF Artifacts - Informational Artifacts - One Artifact, One Type
	@Test
	public void importVfArtifactsInformationalArtifactsOneArtifactOneType() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 299719");			
		}
		
		String fileName = "TC1434247.csar";
		String folder ="US825779";
		
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));
		
		List<ArtifactInfo> informationalArtifacts = new ArrayList<ArtifactInfo>();
		informationalArtifacts.add(new ArtifactInfo(null, "artifactname1.xml", null, "artifactname1", ArtifactTypeEnum.OTHER.getType(), "1"));
		
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder, deploymentArtifacts, informationalArtifacts);
	}
	
	// US824719 - Import VSP - VF informational artifacts
	// TC1434248 - 	Import VF Artifacts - Informational Artifacts - Multiple Artifacts, Multiple Types
	@Test
	public void importVfArtifactsInformationalArtifactsMultipleArtifactsMultipleTypes() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 299719");			
		}
		
		String fileName = "TC1434248.csar";
		String folder ="US825779";
		
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));
		
		List<ArtifactInfo> informationalArtifacts = new ArrayList<ArtifactInfo>();
		informationalArtifacts.add(new ArtifactInfo(null, "artifactname1.xml", null, "artifactname1", ArtifactTypeEnum.OTHER.getType(), "1"));
		informationalArtifacts.add(new ArtifactInfo(null, "GuideInfoArtifact1.yml", null, "GuideInfoArtifact1", ArtifactTypeEnum.GUIDE.getType(), "1"));
		informationalArtifacts.add(new ArtifactInfo(null, "GuideInfoArtifact2.yml", null, "GuideInfoArtifact2", ArtifactTypeEnum.GUIDE.getType(), "1"));
		
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName,  folder, deploymentArtifacts, informationalArtifacts);
	}
	
	// US824719 - Import VSP - VF informational artifacts
	// TC1434249 - 	Import VF Artifacts - Deployment and Informational Artifacts - Multiple Artifacts, Multiple Types
	@Test
	public void importVfArtifactsDeploymentAndInformationalArtifactsMultipleArtifactsMultipleTypes() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 299719");			
		}
		
		String fileName = "TC1434249.csar";
		String folder ="US825779";
		
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "heatartifactname1.yaml", null, "heatartifactname1", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "heatartifactname2.yaml", null, "heatartifactname2", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "HeatVolArtifactName1.yaml", null, "HeatVolArtifactName1", ArtifactTypeEnum.HEAT_VOL.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "HeatVolArtifactName2.yaml", null, "HeatVolArtifactName2", ArtifactTypeEnum.HEAT_VOL.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "HeatVolArtifactName3.yaml", null, "HeatVolArtifactName3", ArtifactTypeEnum.HEAT_VOL.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));
		
		List<ArtifactInfo> informationalArtifacts = new ArrayList<ArtifactInfo>();
		informationalArtifacts.add(new ArtifactInfo(null, "artifactname1.xml", null, "artifactname1", ArtifactTypeEnum.OTHER.getType(), "1"));
		informationalArtifacts.add(new ArtifactInfo(null, "GuideInfoArtifact1.yml", null, "GuideInfoArtifact1", ArtifactTypeEnum.GUIDE.getType(), "1"));
		informationalArtifacts.add(new ArtifactInfo(null, "GuideInfoArtifact2.yml", null, "GuideInfoArtifact2", ArtifactTypeEnum.GUIDE.getType(), "1"));
		
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  deploymentArtifacts, informationalArtifacts);
	}
	
	// TODO: there is defect in flow: "Updated button enabled for artifact in invalid type folder"
	// TODO: re-check it after defect fix
	// US824719 - Import VSP - VF informational artifacts
	// TC1438310 - Import VF Artifacts - Deployment Artifacts - Artifact Type Invalid
	@Test
	public void importVFArtifactsDeploymentArtifactsArtifactTypeInvalid() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 299719");			
		}
		
		String fileName = "DeploymentArtifactWithInvalidType.csar";
		String folder ="US825779";
		
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "ArtifactName.yaml", null, "ArtifactName", ArtifactTypeEnum.OTHER.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));
		
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  deploymentArtifacts, null);
	}
	
	// US824719 - Import VSP - VF informational artifacts
	// TC1438311 - Import VF Artifacts - Informational Artifacts - Artifact Type Invalid
	@Test
	public void importVfArtifactsInformationalArtifactsArtifactTypeInvalid() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 299719");			
		}
		
		String fileName = "InformationArtifactWithInvalidType.csar";
		String folder ="US825779";
		
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));
		
		List<ArtifactInfo> informationalArtifacts = new ArrayList<ArtifactInfo>();
		informationalArtifacts.add(new ArtifactInfo(null, "ArtifactName.yaml", null, "ArtifactName", ArtifactTypeEnum.OTHER.getType(), "1"));
		
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  deploymentArtifacts, informationalArtifacts);
	}
	
	// US824719 - Import VSP - VF informational artifacts
	// TC1438231 - 	Import VF Artifacts - Deployment Artifacts - Artifact Name To Long
	@Test
	public void importVfArtifactsDeploymentArtifactsArtifactNameToLong() throws Exception {		
		String folder = "US825779";
		ResourceReqDetails resourceMetaData = ElementFactory.getDefaultResourceByType(ResourceTypeEnum.VF, getUser());
	
		String fileName = "DeploymentArtifactWithLongName.csar";
		
		importVfFromCsar(resourceMetaData, folder, fileName, getUser());	
		
		String errorMessage = GeneralUIUtils.getWebElementByClassName("w-sdc-modal-caption").getText();
        String checkUIResponseOnError = ErrorValidationUtils.checkUIResponseOnError(ActionStatus.EXCEEDS_LIMIT.name());
        Assert.assertTrue(errorMessage.contains(checkUIResponseOnError));
	}
	
	// US824719 - Import VSP - VF informational artifacts
	// TC1438232 - Import VF Artifacts - Informational Artifacts - Artifact Name To Long
	// TODO: make informational artifact name longer then 255
	// TODO: windows/linux not allowed it
	@Test(enabled=false)
	public void importVfArtifactsInformationalArtifactsArtifactNameToLong() throws Exception {
		String folder ="US825779";
		ResourceReqDetails resourceMetaData = ElementFactory.getDefaultResourceByType(ResourceTypeEnum.VF, getUser());
	
		String fileName = "InformationArtifactWithLongName.csar";
		
		importVfFromCsar(resourceMetaData, folder, fileName, getUser());	
		
		String errorMessage = GeneralUIUtils.getWebElementByClassName("w-sdc-modal-caption").getText();
	    String checkUIResponseOnError = ErrorValidationUtils.checkUIResponseOnError(ActionStatus.EXCEEDS_LIMIT.name());
	    Assert.assertTrue(errorMessage.contains(checkUIResponseOnError));
	}
	
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	// END US824719
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	
	
	
	
	
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	// START US825779
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	
	
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1443736 - Update With One New Deployment Artifact
	@Test
	public void updateWithOneNewDeploymentArtifact() throws Exception {
		String fileName =  "ImportTC1443736.csar";
		String folder ="US825779";
		
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "4"));
		
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  deploymentArtifacts, null);
		
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
		
		fileName = "UpdateTC1443736.csar";
		deploymentArtifacts.add(new ArtifactInfo(null, "artifactname1.yaml", null, "artifactname1", ArtifactTypeEnum.HEAT.getType(), "1"));
		
		updateVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(folder, fileName, deploymentArtifacts, null, null, null);
	}
	
	
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1443737 - Update With One Removed Deployment Artifact
	@Test
	public void updateWithOneRemovedDeploymentArtifact() throws Exception {
		String fileName =  "ImportTC1443737.csar";
		String folder ="US825779";
		
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "4"));
		ArtifactInfo artifactInfo = new ArtifactInfo(null, "artifactname1.yaml", null, "artifactname1", ArtifactTypeEnum.HEAT.getType(), "1");
		deploymentArtifacts.add(artifactInfo);
		
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder, deploymentArtifacts, null);
		
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
		
		fileName = "UpdateTC1443737.csar";
		deploymentArtifacts.remove(artifactInfo);
		
		List<ArtifactInfo> deploymentArtifactsNotExist = new ArrayList<ArtifactInfo>();
		deploymentArtifactsNotExist.add(artifactInfo);
		
		updateVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(folder, fileName, deploymentArtifacts, null, deploymentArtifactsNotExist, null);
	}
	
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1443738 - Update With One New Version Deployment Artifact
	@Test
	public void updateWithOneNewVersionDeploymentArtifact() throws Exception {
		String fileName =  "ImportTC1443738.csar";
		String folder ="US825779";
			
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
			
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "4"));
		ArtifactInfo artifactInfo = new ArtifactInfo(null, "artifactname1.yaml", null, "artifactname1", ArtifactTypeEnum.HEAT.getType(), "1");
		deploymentArtifacts.add(artifactInfo);
			
			
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder, deploymentArtifacts, null);
			
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
			
		fileName = "UpdateTC1443738.csar";
		artifactInfo.setArtifactVersion("2");
			
		updateVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(folder, fileName, deploymentArtifacts, null, null, null);
	}
	
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1443887 - Update With One New Informational Artifact
	@Test
	public void updateWithOneNewInformationalArtifact() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 299719");			
		}
		
		String fileName =  "ImportTC1443887.csar";
		String folder ="US825779";
			
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));			
			
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  deploymentArtifacts, null);
			
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
			
		fileName = "UpdateTC1443887.csar";
		
		List<ArtifactInfo> informationalArtifacts = new ArrayList<ArtifactInfo>();
		informationalArtifacts.add(new ArtifactInfo(null, "artifactname1.xml", null, "artifactname1", ArtifactTypeEnum.OTHER.getType(), "1"));
			
		updateVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(folder, fileName, deploymentArtifacts, informationalArtifacts, null, null);
	}
	
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1443888 - Update With One Removed Informational Artifact
	@Test
	public void updateWithOneRemovedInformationalArtifact() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 299719");			
		}
		
		String folder ="US825779";
		String fileName =  "ImportTC1443888.csar";
			
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));			
		
		List<ArtifactInfo> informationalArtifacts = new ArrayList<ArtifactInfo>();
		ArtifactInfo artifactInfo = new ArtifactInfo(null, "artifactname1.xml", null, "artifactname1", ArtifactTypeEnum.OTHER.getType(), "1");
		informationalArtifacts.add(artifactInfo);
			
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  deploymentArtifacts, informationalArtifacts);
		
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
			
		fileName = "UpdateTC1443888.csar";
		
		informationalArtifacts.remove(artifactInfo);
		
		List<ArtifactInfo> informationalArtifactNotExist = new ArrayList<ArtifactInfo>();
		informationalArtifactNotExist.add(artifactInfo);
			
		updateVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(folder, fileName, deploymentArtifacts, informationalArtifacts, null, informationalArtifactNotExist);
	}
	
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1443890 - Update With One New Artifact Version Informational Artifact
	@Test
	public void updateWithOneNewArtifactVersionInformationalArtifact() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 299719");			
		}
		
		String folder ="US825779";
		String fileName =  "ImportTC1443890.csar";
			
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));			
		
		List<ArtifactInfo> informationalArtifacts = new ArrayList<ArtifactInfo>();
		ArtifactInfo artifactInfo = new ArtifactInfo(null, "artifactname1.xml", null, "artifactname1", ArtifactTypeEnum.OTHER.getType(), "1");
		informationalArtifacts.add(artifactInfo);
			
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  deploymentArtifacts, informationalArtifacts);
		
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
			
		fileName = "UpdateTC1443890.csar";
		artifactInfo.setArtifactVersion("2");
			
		updateVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(folder, fileName, deploymentArtifacts, informationalArtifacts, null, null);
	}
	
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1443893 - Update CSAR With Same Artifacts As Imported
	@Test
	public void updateCSARWithSameArtifactsAsImported() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 299719");			
		}
		
		String folder ="US825779";
		String fileName =  "ImportUpdateTC1443893.csar";
			
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));			
		deploymentArtifacts.add(new ArtifactInfo(null, "heatartifactname1.yaml", null, "heatartifactname1", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "heatartifactname2.yaml", null, "heatartifactname2", ArtifactTypeEnum.HEAT.getType(), "1"));	
		deploymentArtifacts.add(new ArtifactInfo(null, "HeatVolArtifactName1.yaml", null, "HeatVolArtifactName1", ArtifactTypeEnum.HEAT_VOL.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "HeatVolArtifactName2.yaml", null, "HeatVolArtifactName2", ArtifactTypeEnum.HEAT_VOL.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "HeatVolArtifactName3.yaml", null, "HeatVolArtifactName3", ArtifactTypeEnum.HEAT_VOL.getType(), "1"));
		
		List<ArtifactInfo> informationalArtifacts = new ArrayList<ArtifactInfo>();
		informationalArtifacts.add(new ArtifactInfo(null, "artifactname1.xml", null, "artifactname1", ArtifactTypeEnum.OTHER.getType(), "1"));
		informationalArtifacts.add(new ArtifactInfo(null, "GuideInfoArtifact1.yml", null, "GuideInfoArtifact1", ArtifactTypeEnum.GUIDE.getType(), "1"));
		informationalArtifacts.add(new ArtifactInfo(null, "GuideInfoArtifact2.yml", null, "GuideInfoArtifact2", ArtifactTypeEnum.GUIDE.getType(), "1"));
			
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  deploymentArtifacts, informationalArtifacts);
		
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
			
		fileName = "ImportUpdateTC1443893.csar";
			
		updateVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(folder, fileName, deploymentArtifacts, informationalArtifacts, null, null);
	}
	
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1443954 - Update With Multiple Changes In Deployment And Informational Artifacts
	@Test
	public void updateWithMultipleChangesInDeploymentAndInformationalArtifacts() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 299719");			
		}
		
		String folder ="US825779";
		String fileName =  "ImportTC1443954.csar";
		
		ArtifactInfo deploymentHeat1 = new ArtifactInfo(null, "heatartifactname1.yaml", null, "heatartifactname1", ArtifactTypeEnum.HEAT.getType(), "1");
		ArtifactInfo deploymentHeat2 = new ArtifactInfo(null, "heatartifactname2.yaml", null, "heatartifactname2", ArtifactTypeEnum.HEAT.getType(), "1");
		ArtifactInfo deploymentHeat3 = new ArtifactInfo(null, "heatartifactname3.yaml", null, "heatartifactname3", ArtifactTypeEnum.HEAT.getType(), "1");
		
		ArtifactInfo deploymentHeatVol1 = new ArtifactInfo(null, "HeatVolArtifactName1.yaml", null, "HeatVolArtifactName1", ArtifactTypeEnum.HEAT_VOL.getType(), "1");
		ArtifactInfo deploymentHeatVol2 = new ArtifactInfo(null, "HeatVolArtifactName2.yaml", null, "HeatVolArtifactName2", ArtifactTypeEnum.HEAT_VOL.getType(), "1");
		
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(deploymentHeat1);
		deploymentArtifacts.add(deploymentHeat2);
		deploymentArtifacts.add(deploymentHeat3);
		deploymentArtifacts.add(deploymentHeatVol1);
		deploymentArtifacts.add(deploymentHeatVol2);
		
		ArtifactInfo infoGuide1 = new ArtifactInfo(null, "GuideInfoArtifact1.yml", null, "GuideInfoArtifact1", ArtifactTypeEnum.GUIDE.getType(), "1");
		ArtifactInfo infoGuide2 = new ArtifactInfo(null, "GuideInfoArtifact2.yml", null, "GuideInfoArtifact2", ArtifactTypeEnum.GUIDE.getType(), "1");
		
		ArtifactInfo infoOther1 = new ArtifactInfo(null, "artifactname1.xml", null, "artifactname1", ArtifactTypeEnum.OTHER.getType(), "1");
		ArtifactInfo infoOther2 = new ArtifactInfo(null, "artifactname2.txt", null, "artifactname2", ArtifactTypeEnum.OTHER.getType(), "1");
		ArtifactInfo infoOther3 = new ArtifactInfo(null, "artifactname3.txt", null, "artifactname3", ArtifactTypeEnum.OTHER.getType(), "1");
		
		List<ArtifactInfo> informationalArtifacts = new ArrayList<ArtifactInfo>();
		informationalArtifacts.add(infoGuide1);
		informationalArtifacts.add(infoGuide2);
		informationalArtifacts.add(infoOther1);
		informationalArtifacts.add(infoOther2);
		informationalArtifacts.add(infoOther3);
			
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  deploymentArtifacts, informationalArtifacts);
		
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
			
		fileName = "UpdateTC1443954.csar";
		
		List<ArtifactInfo> informationalArtifactsNotExist = new ArrayList<ArtifactInfo>();
		List<ArtifactInfo> deploymentArtifactsNotExist = new ArrayList<ArtifactInfo>();
		
		// Changes in deployment artifacts
		deploymentArtifactsNotExist.add(deploymentHeat1);
		deploymentArtifactsNotExist.add(deploymentHeat2);
		deploymentArtifacts.remove(deploymentHeat1);
		deploymentArtifacts.remove(deploymentHeat2);
		deploymentArtifacts.add(new ArtifactInfo(null, "heatartifactname4.yaml", null, "heatartifactname4", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "heatartifactname5.yaml", null, "heatartifactname5", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentHeatVol1.setArtifactVersion("2");
		deploymentHeatVol2.setArtifactVersion("2");
		
		// Changes in informational artifacts
		infoGuide1.setArtifactVersion("2");
		infoOther1.setArtifactVersion("2");
		informationalArtifactsNotExist.add(infoGuide2);
		informationalArtifactsNotExist.add(infoOther2);
		informationalArtifacts.remove(infoGuide2);
		informationalArtifacts.remove(infoOther2);
		informationalArtifacts.add(new ArtifactInfo(null, "GuideInfoArtifact3.yml", null, "GuideInfoArtifact3", ArtifactTypeEnum.GUIDE.getType(), "1"));
		informationalArtifacts.add(new ArtifactInfo(null, "artifactname4.txt", null, "artifactname4", ArtifactTypeEnum.OTHER.getType(), "1"));
			
		updateVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(folder, fileName, deploymentArtifacts, informationalArtifacts, deploymentArtifactsNotExist, informationalArtifactsNotExist);
	}
	
	
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1444206 - Update With Existed Deployment Artifact By Artifact With Different Type
	@Test
	public void updateWithExistedDeploymentArtifactByArtifactWithDifferentType() throws Exception {
		String folder ="US825779";
		String fileName =  "ImportTC1444206.csar";
		if(true){
			throw new SkipException("Open bug 320081");			
		}	
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));			
		deploymentArtifacts.add(new ArtifactInfo(null, "artifactname1.yaml", null, "artifactname1", ArtifactTypeEnum.HEAT.getType(), "1"));
			
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  deploymentArtifacts, null);
		
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
			
		fileName = "UpdateTC1444206.csar";
		String filePath = FileHandling.getFilePath(folder); ;
			
		ResourceUIUtils.updateVfWithCsar(filePath, fileName);
		
		String errorMessage = GeneralUIUtils.getWebElementByClassName("w-sdc-modal-caption").getText();
	    String checkUIResponseOnError = ErrorValidationUtils.checkUIResponseOnError(ActionStatus.ARTIFACT_ALRADY_EXIST_IN_DIFFERENT_TYPE_IN_CSAR.name());
	    Assert.assertTrue(errorMessage.contains(checkUIResponseOnError));
	}
	
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1444207 - Update With Existed Informational Artifact By Artifact With Different Type
	@Test
	public void updateWithExistedInformationalArtifactByArtifactWithDifferentType() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 299719");			
		}
		
		String folder ="US825779";
		String fileName =  "ImportTC1444207.csar";
			
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));		
		
		List<ArtifactInfo> informationalArtifacts = new ArrayList<ArtifactInfo>();
		informationalArtifacts.add(new ArtifactInfo(null, "artifactname1.xml", null, "artifactname1", ArtifactTypeEnum.OTHER.getType(), "1"));
			
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  deploymentArtifacts, informationalArtifacts);
		
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
		
		fileName = "UpdateTC1444207.csar";
		String filePath = FileHandling.getFilePath(folder); ;
			
		ResourceUIUtils.updateVfWithCsar(filePath, fileName);
		
		String errorMessage = GeneralUIUtils.getWebElementByClassName("w-sdc-modal-caption").getText();
	    String checkUIResponseOnError = ErrorValidationUtils.checkUIResponseOnError(ActionStatus.ARTIFACT_ALRADY_EXIST_IN_DIFFERENT_TYPE_IN_CSAR.name());
	    Assert.assertTrue(errorMessage.contains(checkUIResponseOnError));
	}
	
	
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1444208 - Update With Existed Informational Artifact By Deployment Artifact With Different Type
	@Test
	public void updateWithExistedInformationalArtifactByDeploymentArtifactWithDifferentType() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 320081");			
		}
		String folder ="US825779";
		String fileName =  "ImportTC1444208.csar";
			
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));		
		deploymentArtifacts.add(new ArtifactInfo(null, "artifactname1.yaml", null, "artifactname1", ArtifactTypeEnum.HEAT.getType(), "1"));
			
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  deploymentArtifacts, null);
		
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
		
		fileName = "UpdateTC1444208.csar";
		String filePath = FileHandling.getFilePath(folder); ;
				
		ResourceUIUtils.updateVfWithCsar(filePath, fileName);
		
		String errorMessage = GeneralUIUtils.getWebElementByClassName("w-sdc-modal-caption").getText();
	    String checkUIResponseOnError = ErrorValidationUtils.checkUIResponseOnError(ActionStatus.ARTIFACT_ALRADY_EXIST_IN_DIFFERENT_TYPE_IN_CSAR.name());
	    Assert.assertTrue(errorMessage.contains(checkUIResponseOnError));
	}
	
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1444520 - Update Deployment Artifact With Name To Long
	@Test
	public void updateDeploymentArtifactWithNameToLong() throws Exception {
		String folder ="US825779";
		
		String fileName =  "ImportTC1444520.csar";
			
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  null, null);
		
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
		
		fileName = "UpdateTC1444520.csar";
		String filePath = FileHandling.getFilePath(folder); ;
				
		ResourceUIUtils.updateVfWithCsar(filePath, fileName);
		
		String errorMessage = GeneralUIUtils.getWebElementByClassName("w-sdc-modal-caption").getText();
	    String checkUIResponseOnError = ErrorValidationUtils.checkUIResponseOnError(ActionStatus.EXCEEDS_LIMIT.name());
	    Assert.assertTrue(errorMessage.contains(checkUIResponseOnError));
	}
	
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1444521 - Update Informational Artifact With Name To Long
	@Test
	public void updateInformationalArtifactWithNameToLong() throws Exception {
		
		String folder = "US825779";
		String fileName =  "ImportTC1444521.csar";
			
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  null, null);
		
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
		
		fileName = "UpdateTC1444521.csar";
		String filePath = FileHandling.getFilePath(folder); ;
				
		ResourceUIUtils.updateVfWithCsar(filePath, fileName);
		
		String errorMessage = GeneralUIUtils.getWebElementByClassName("w-sdc-modal-caption").getText();
	    String checkUIResponseOnError = ErrorValidationUtils.checkUIResponseOnError(ActionStatus.EXCEEDS_LIMIT.name());
	    Assert.assertTrue(errorMessage.contains(checkUIResponseOnError));
	}
	
	// TODO: only after below TODO's it complete test
	// TODO: verify that if delete/edit button need to be disabled then check that there is no such buttons
	// TODO: in composition & artifact pages
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1444530 - Update Deployment Artifact With Invalid Type
	@Test
	public void updateDeploymentArtifactWithInvalidType() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 299719");			
		}
		
		String folder ="US825779";
		String fileName =  "ImportTC1444530.csar";
		
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));
		
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  deploymentArtifacts, null);
		
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
		
		fileName = "UpdateTC1444530.csar";
		deploymentArtifacts.add(new ArtifactInfo(null, "artifactname1.yaml", null, "artifactname1", ArtifactTypeEnum.OTHER.getType(), "1"));
		
		updateVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(folder, fileName, deploymentArtifacts, null, null, null);
	}
	
	
	// US825779 - Story: [BE] Import VSP - VF informational artifacts  - Update
	// TC1444531 - Update Informational Artifact With Invalid Type
	@Test
	public void updateInformationalArtifactWithInvalidType() throws Exception {
		
		if(true){
			throw new SkipException("Open bug 299719");			
		}
		
		String folder ="US825779";
		String fileName =  "ImportTC1444531.csar";
		
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  null, null);
		
		GeneralUIUtils.clickOnElementByTestId("breadcrumbs-button-1");
		
		fileName = "UpdateTC1444531.csar";
		
		List<ArtifactInfo> informationalArtifacts = new ArrayList<ArtifactInfo>();
		informationalArtifacts.add(new ArtifactInfo(null, "artifactname1.xml", null, "artifactname1", ArtifactTypeEnum.OTHER.getType(), "1"));
		
		updateVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(folder, fileName, null, informationalArtifacts, null, null);
	}
	
	
	@Test
	public void importValidInformationalArtifactInInvalidFolerTest_TC1438313() throws Exception{
		
		if(true){
			throw new SkipException("Open bug 320081");			
		}
		String fileName =  "ValidArtifactNameInInvalidFolder.csar";
		String folder = "US824719";
		
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "1"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));			
		
		importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(fileName, folder,  deploymentArtifacts, null);
	}
	
	@Test
	public void updateValidInformationalArtifactInInvalidFolerTest_TC1444533() throws Exception{
		if(true){
			throw new SkipException("Open bug 320081");			
		}
		
		String fileName =  "ImportTC1444533.csar";
		String folder = "US824719";
		String filePath = FileHandling.getFilePath(folder);
		
		ResourceReqDetails resourceMetaData = ElementFactory.getDefaultResourceByType(ResourceTypeEnum.VF, getUser());
		ResourceUIUtils.importVfFromCsar(resourceMetaData, filePath, fileName, getUser());
		
		String updatedCsarFileName = "UpdateTC1444533.csar";
		
		List<ArtifactInfo> deploymentArtifacts = new ArrayList<ArtifactInfo>();
		deploymentArtifacts.add(new ArtifactInfo(null, "base_ldsa.yaml", null, "base_ldsa", ArtifactTypeEnum.HEAT.getType(), "2"));
		deploymentArtifacts.add(new ArtifactInfo(null, "module_1_ldsa.yaml", null, "module_1_ldsa", ArtifactTypeEnum.HEAT.getType(), "4"));			
		
		updateVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(folder, updatedCsarFileName, deploymentArtifacts, null, null, null);
	}
	
	
	
	
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	// END US825779
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	
	
	
	public void updateVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(String folder, String fileName,
			List<ArtifactInfo> deploymentArtifacts, List<ArtifactInfo> informationalArtifacts,
			List<ArtifactInfo> deploymentArtifactsNotExist, List<ArtifactInfo> informationalArtifactsNotExist) throws Exception {
		String filePath = FileHandling.getFilePath(folder);
		ResourceUIUtils.updateVfWithCsar(filePath, fileName);
		
		validateDeploymentArtifactPage(deploymentArtifacts, null);
		validateInformationalArtifactPage(informationalArtifacts, null);
		
		ResourceGeneralPage.getLeftMenu().moveToCompositionScreen();
		
		validateDeploymentArtifactInComposition(deploymentArtifacts, null);
		validateInformationalArtifactInComposition(informationalArtifacts, null);
		
	}
	

	public void importVfFromCsar(ResourceReqDetails resourceMetaData, String folder, String fileName, User user) {
		String filePath = FileHandling.getFilePath(folder);
		GeneralUIUtils.hoverOnAreaByTestId(Dashboard.IMPORT_AREA.getValue());
		// Insert file to the browse dialog
		WebElement browseWebElement = GeneralUIUtils.getInputElement(DataTestIdEnum.Dashboard.IMPORT_VF_FILE.getValue());
		browseWebElement.sendKeys(filePath + fileName);

		// Fill the general page fields.
		GeneralUIUtils.waitForLoader();
		ResourceUIUtils.fillResourceGeneralInformationPage(resourceMetaData, getUser(), true);
		GeneralUIUtils.clickOnAreaJS(DataTestIdEnum.GeneralElementsEnum.CREATE_BUTTON.getValue());
	}

	
	
	
	public void importVfAndValidateInformationalDeploymentArtifactPagesOnPagesAndComposition(String fileName, String folder, List<ArtifactInfo> deploymentArtifacts, List<ArtifactInfo> informationalArtifacts) throws Exception {
		String filePath = FileHandling.getFilePath(folder);
		ResourceReqDetails resourceMetaData = ElementFactory.getDefaultResourceByType(ResourceTypeEnum.VF, getUser());
		ResourceUIUtils.importVfFromCsar(resourceMetaData, filePath, fileName, getUser());
		
		validateDeploymentArtifactPage(deploymentArtifacts, null);
		validateInformationalArtifactPage(informationalArtifacts, null);
		
		ResourceGeneralPage.getLeftMenu().moveToCompositionScreen();
		
		validateDeploymentArtifactInComposition(deploymentArtifacts, null);
		validateInformationalArtifactInComposition(informationalArtifacts, null);
	}
	
	public void validateInformationalArtifactInComposition(List<ArtifactInfo> informationalArtifacts, List<ArtifactInfo> informationalArtifactsNotExist) throws Exception {
		CompositionPage.showInformationArtifactTab();
		// Composition informational
		if(informationalArtifacts != null && informationalArtifacts.size() > 0) {
			validateEachArtifactOnCompositionRightMenuInformationPage(informationalArtifacts);
		}
		if(informationalArtifactsNotExist != null && informationalArtifactsNotExist.size() > 0) {
			validateEachArtifactNotExistOnCompositionRightMenuInformationPage(informationalArtifactsNotExist);
		}
	}
	
	public void validateDeploymentArtifactInComposition(List<ArtifactInfo> deploymentArtifacts, List<ArtifactInfo> deploymentArtifactsNotExist) throws Exception {
		CompositionPage.showDeploymentArtifactTab();
		// Composition deployment
		if(deploymentArtifacts != null && deploymentArtifacts.size() > 0) {
			validateEachArtifactOnCompositionRightMenuDeploymentPage(deploymentArtifacts);
		}
		if(deploymentArtifactsNotExist != null && deploymentArtifactsNotExist.size() > 0) {
			validateEachArtifactNotExistOnCompositionRightMenuDeploymentPage(deploymentArtifactsNotExist);
		}
	}
	
	public void validateInformationalArtifactPage(List<ArtifactInfo> informationalArtifacts, List<ArtifactInfo> informationalArtifactsNotExist) {
		ResourceGeneralPage.getLeftMenu().moveToInformationalArtifactScreen();
		// Informational page
		if(informationalArtifacts != null && informationalArtifacts.size() > 0) {	
			validateEachArtifactInformationPage(informationalArtifacts);
		}
		if(informationalArtifactsNotExist != null && informationalArtifactsNotExist.size() > 0) {	
			validateEachArtifactNotExistInformationPage(informationalArtifactsNotExist);
		}
	}
	
	public void validateDeploymentArtifactPage(List<ArtifactInfo> deploymentArtifacts, List<ArtifactInfo> deploymentArtifactsNotExist) {
		ResourceGeneralPage.getLeftMenu().moveToDeploymentArtifactScreen();
		// Deployment page
		if(deploymentArtifacts != null && deploymentArtifacts.size() > 0) {
			validateEachArtifactOnDeploymentPage(deploymentArtifacts);
		}
		if(deploymentArtifactsNotExist != null && deploymentArtifactsNotExist.size() > 0) {
			validateEachArtifactNotExistOnDeploymentPage(deploymentArtifactsNotExist);
		}
	}
	
	// TODO: add validation that if not editable / deleteable then button should not appear
	public void validateEachArtifactOnDeploymentPage(List<ArtifactInfo> artifactInfoList) {
		for(ArtifactInfo artifact: artifactInfoList) {
			String type = artifact.getArtifactType();
			String label = artifact.getArtifactLabel();
			String version = artifact.getArtifactVersion();
			
			if (type.equals(ArtifactTypeEnum.HEAT.getType()) || type.equals(ArtifactTypeEnum.HEAT_VOL.getType()) || type.equals(ArtifactTypeEnum.HEAT_NET.getType())){
				ArtifactUIUtils.validateExistArtifactOnDeploymentInformationPage(label, null, version, type, true, false, false, true);
			}
			else{
				ArtifactUIUtils.validateExistArtifactOnDeploymentInformationPage(label, null, version, type, true, true, true, false);
			}
		}
	}
	
	public void validateEachArtifactNotExistOnDeploymentPage(List<ArtifactInfo> artifactInfoList) {
		for(ArtifactInfo artifact: artifactInfoList) {
			ArtifactUIUtils.validateNotExistArtifactOnDeploymentInformationPage(artifact.getArtifactLabel());
		}
	}
	
	public void validateEachArtifactInformationPage(List<ArtifactInfo> artifactInfoList) {
		for(ArtifactInfo artifact: artifactInfoList) {
			ArtifactUIUtils.validateExistArtifactOnDeploymentInformationPage(artifact.getArtifactLabel(), null, artifact.getArtifactVersion(), artifact.getArtifactType(), true, true, true, false);
		}
	}
	
	public void validateEachArtifactNotExistInformationPage(List<ArtifactInfo> artifactInfoList) {
		for(ArtifactInfo artifact: artifactInfoList) {
			ArtifactUIUtils.validateNotExistArtifactOnDeploymentInformationPage(artifact.getArtifactLabel());
		}
	}
	
	public void validateEachArtifactOnCompositionRightMenuDeploymentPage(List<ArtifactInfo> artifactInfoList) {
		for(ArtifactInfo artifact: artifactInfoList) {
			
			String type = artifact.getArtifactType();
			String label = artifact.getArtifactLabel();
			String filename = artifact.getFilename();
			
			if (type.equals(ArtifactTypeEnum.HEAT.getType()) || type.equals(ArtifactTypeEnum.HEAT_VOL.getType()) || type.equals(ArtifactTypeEnum.HEAT_NET.getType())){
				ArtifactUIUtils.validateExistArtifactOnCompositionRightMenuDeploymentInformationPage(filename, label, false, true, true, false);
			}
			else{
				ArtifactUIUtils.validateExistArtifactOnCompositionRightMenuDeploymentInformationPage(filename, label, true, false, true, true);
			}
		}
	}
	
	public void validateEachArtifactNotExistOnCompositionRightMenuDeploymentPage(List<ArtifactInfo> artifactInfoList) {
		for(ArtifactInfo artifact: artifactInfoList) {
			ArtifactUIUtils.validateNotExistArtifactOnCompositionRightMenuDeploymentInformationPage(artifact.getArtifactLabel());
		}
	}
	
	// TODO: there is defect in this flow
	// TODO: change isEditable to false when defect fix
	public void validateEachArtifactOnCompositionRightMenuInformationPage(List<ArtifactInfo> artifactInfoList) {
		for(ArtifactInfo artifact: artifactInfoList) {
			ArtifactUIUtils.validateExistArtifactOnCompositionRightMenuDeploymentInformationPage(artifact.getFilename(), artifact.getArtifactLabel(), true, false, true, true);
		}
	}
	
	public void validateEachArtifactNotExistOnCompositionRightMenuInformationPage(List<ArtifactInfo> artifactInfoList) {
		for(ArtifactInfo artifact: artifactInfoList) {
			ArtifactUIUtils.validateNotExistArtifactOnCompositionRightMenuDeploymentInformationPage(artifact.getArtifactLabel());
		}
	}



	@Override
	protected UserRoleEnum getRole() {
		return UserRoleEnum.DESIGNER;
	}

}