aboutsummaryrefslogtreecommitdiffstats
path: root/integration-tests/pom.xml
blob: 31abb03d84da043a371ca34edfa26bfde8f7a45d (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
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
<!--
============LICENSE_START=======================================================
SDC
================================================================================
Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
Modifications copyright (c) 2020-2021 Nokia
================================================================================
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=========================================================
================================================================================
-->

<project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <artifactId>sdc-integration-tests</artifactId>
    <packaging>jar</packaging>
    <name>sdc-integration-tests</name>

    <parent>
        <groupId>org.openecomp.sdc</groupId>
        <artifactId>sdc-main</artifactId>
        <version>1.10.2-SNAPSHOT</version>
    </parent>

    <properties>
        <selenium.version>3.141.59</selenium.version>
        <gecko.driver.version>0.29.0</gecko.driver.version>
        <!-- SDC Startup parameters -->
        <it.env.name>integration-test</it.env.name>
        <it.cassandra.port>9042</it.cassandra.port>
        <it.cassandra.password>onap123#@!</it.cassandra.password>
        <it.cassandra.ssl.enabled>false</it.cassandra.ssl.enabled>
        <it.sdc.cluster.name>SDC-CS-${it.env.name}</it.sdc.cluster.name>
        <it.sdc.user>asdc_user</it.sdc.user>
        <it.sdc.password>Aa1234%^!</it.sdc.password>
        <it.chef.config>${project.build.directory}/chef-config</it.chef.config>
        <it.sdc-be.plugins>${project.build.directory}/plugins/sdc-be</it.sdc-be.plugins>
        <it.shared.volume>/tmp/sdc-integration-tests</it.shared.volume>
        <it.docker.version>latest</it.docker.version>
        <it.ui.firefox.version>86.0</it.ui.firefox.version>
        <it.helm-validator.disabled>true</it.helm-validator.disabled>
        <it.helm-validator.version>1.3.1</it.helm-validator.version>

        <!-- parser-->
        <sdc-tosca-parser.version>1.6.6</sdc-tosca-parser.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>${logback.version}</version>
        </dependency>

        <dependency>
            <groupId>org.yaml</groupId>
            <artifactId>snakeyaml</artifactId>
            <version>${snakeyaml.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest</artifactId>
            <version>${hamcrest.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>${testng.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>${gson.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.openecomp.sdc.be</groupId>
            <artifactId>catalog-model</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.openecomp.sdc.be</groupId>
            <artifactId>catalog-dao</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.openecomp.sdc</groupId>
            <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring-core</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.aventstack</groupId>
            <artifactId>extentreports</artifactId>
            <version>3.0.6</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.jsoup</groupId>
                    <artifactId>jsoup</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.httpcomponents</groupId>
                    <artifactId>httpmime</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.mongodb</groupId>
                    <artifactId>mongodb-driver</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.mongodb</groupId>
            <artifactId>mongodb-driver</artifactId>
            <version>3.12.10</version>
        </dependency>

        <dependency>
            <groupId>org.janusgraph</groupId>
            <artifactId>janusgraph-core</artifactId>
            <version>${janusgraph.version}</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <artifactId>gremlin-groovy</artifactId>
                    <groupId>org.apache.tinkerpop</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>slf4j-log4j12</artifactId>
                    <groupId>org.slf4j</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>commons-collections</artifactId>
                    <groupId>commons-collections</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>groovy</artifactId>
                    <groupId>org.codehaus.groovy</groupId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.thrift</groupId>
                    <artifactId>libthrift</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.commons</groupId>
                    <artifactId>commons-text</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>commons-codec</groupId>
                    <artifactId>commons-codec</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>dom4j</groupId>
                    <artifactId>dom4j</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>jcl-over-slf4j</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <version>${assertj.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-text</artifactId>
            <version>${apache-commons-text.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.clearspring.analytics</groupId>
            <artifactId>stream</artifactId>
            <version>${clearspring.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>${httpclient.version}</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>commons-codec</groupId>
                    <artifactId>commons-codec</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.httpcomponents</groupId>
                    <artifactId>httpcore</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpcore</artifactId>
            <version>${httpcore.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>${jackson.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.codehaus.jackson</groupId>
            <artifactId>jackson-mapper-asl</artifactId>
            <version>1.9.2</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>${jackson.version}</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>com.fasterxml.jackson.core</groupId>
                    <artifactId>jackson-core</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>org.onap.sdc.sdc-tosca</groupId>
            <artifactId>sdc-tosca</artifactId>
            <version>${sdc-tosca-parser.version}</version>
        </dependency>

        <!--FOR the Frontend -->
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <scope>test</scope>
            <version>${selenium.version}</version>
        </dependency>
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-server</artifactId>
            <version>${selenium.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-firefox-driver</artifactId>
            <version>${selenium.version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>net.lightbody.bmp</groupId>
            <!-- To use the legacy, Jetty-based implementation, change the artifactId
              to browsermob-core -->
            <artifactId>browsermob-core</artifactId>
            <version>2.1.4</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>com.fasterxml.jackson.core</groupId>
                    <artifactId>jackson-core</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>jcl-over-slf4j</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.paulhammant</groupId>
            <artifactId>ngwebdriver</artifactId>
            <version>0.9.7</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.github.markusbernhardt</groupId>
            <artifactId>proxy-vole</artifactId>
            <version>1.0.2</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>net.java.dev.jna</groupId>
                    <artifactId>jna</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>net.java.dev.jna</groupId>
                    <artifactId>jna-platform</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>commons-net</groupId>
            <artifactId>commons-net</artifactId>
            <version>3.3</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>${spring.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.onap.portal.sdk</groupId>
            <artifactId>epsdk-fw</artifactId>
            <version>${ecomp.version}</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <artifactId>log4j</artifactId>
                    <groupId>log4j</groupId>
                </exclusion>
            </exclusions>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <!-- Section for Integration tests -->
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-chef-resources</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${it.chef.config}</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>environments</directory>
                                    <filtering>true</filtering>
                                    <includes>
                                        <include>integration-test.json</include>
                                        <include>plugins-configuration.yaml</include>
                                    </includes>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                    <execution>
                        <id>copy-sdc-be-plugins</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>
                                        ../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target
                                    </directory>
                                    <filtering>false</filtering>
                                    <includes>
                                        <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar
                                        </include>
                                    </includes>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>wagon-maven-plugin</artifactId>
                <version>2.0.0</version>
                <executions>
                    <execution>
                        <id>download-gecko</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>download-single</goal>
                        </goals>
                        <configuration>
                            <url>https://github.com</url>
                            <fromFile>
                                mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
                            </fromFile>
                            <toDir>${project.build.directory}/gecko</toDir>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>${maven-antrun-plugin.version}</version>
                <executions>
                    <execution>
                        <id>set-folder-permission</id>
                        <phase>pre-integration-test</phase>
                        <configuration>
                            <target>
                                <mkdir dir="/tmp/sdc-integration-tests"/>
                                <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
                                <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
                                <chmod dir="/tmp/sdc-integration-tests/downloadAutomation"
                                    type="dir"
                                    perm="ugo+rwx"/>
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>untar-gecko</id>
                        <phase>pre-integration-test</phase>
                        <configuration>
                            <target>
                                <untar
                                    src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
                                    compression="gzip" dest="${project.build.directory}/gecko/"/>
                                <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir"
                                    perm="ugo+rwx"/>
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>reserve-port-for-tests</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>reserve-network-port</goal>
                        </goals>
                        <configuration>
                            <portNames>
                                <portName>sdc.it.docker.cassandra.port</portName>
                            </portNames>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>io.fabric8</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.httpcomponents</groupId>
                        <artifactId>httpclient</artifactId>
                        <version>${httpclient.version}</version>
                    </dependency>
                </dependencies>
                <configuration>
                    <verbose>${verbose}</verbose>
                    <apiVersion>${docker.api.version}</apiVersion>
                    <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
                    <startParallel>true</startParallel>
                    <images>
                        <image>
                            <name>${docker.namespace}/sdc-cassandra:${it.docker.version}</name>
                            <alias>sdc-cassandra</alias>
                            <run>
                                <env>
                                    <RELEASE>${project.version}</RELEASE>
                                    <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
                                    <ENVNAME>${it.env.name}</ENVNAME>
                                    <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
                                    <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
                                </env>
                                <hostname>sdc-cs</hostname>
                                <volumes>
                                    <bind>
                                        <volume>${it.chef.config}:/root/chef-solo/environments
                                        </volume>
                                    </bind>
                                </volumes>
                                <ulimits>
                                    <ulimit>
                                        <name>memlock</name>
                                        <hard>-1</hard>
                                        <soft>-1</soft>
                                    </ulimit>
                                    <ulimit>
                                        <name>nofile</name>
                                        <hard>100000</hard>
                                        <soft>100000</soft>
                                    </ulimit>
                                </ulimits>
                                <wait>
                                    <time>120000</time>
                                    <tcp>
                                        <host>sdc-cs</host>
                                        <mode>direct</mode>
                                        <ports>
                                            <port>9042</port>
                                        </ports>
                                    </tcp>
                                </wait>
                                <ports>
                                    <port>9042:9042</port>
                                </ports>
                                <network>
                                    <mode>custom</mode>
                                    <name>sdc-network</name>
                                    <alias>sdc-cs</alias>
                                </network>
                            </run>
                        </image>
                        <image>
                            <name>${docker.namespace}/sdc-cassandra-init:${it.docker.version}</name>
                            <alias>sdc-cassandra-init</alias>
                            <run>
                                <dependsOn>
                                    <container>sdc-cassandra</container>
                                </dependsOn>
                                <env>
                                    <RELEASE>${project.version}</RELEASE>
                                    <SDC_USER>${it.sdc.user}</SDC_USER>
                                    <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
                                    <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
                                    <ENVNAME>${it.env.name}</ENVNAME>
                                </env>
                                <hostname>sdc-cs-init</hostname>
                                <volumes>
                                    <bind>
                                        <volume>${it.chef.config}:/home/sdc/chef-solo/environments
                                        </volume>

                                    </bind>
                                </volumes>
                                <wait>
                                    <time>300000</time>
                                    <log>SdcSchemaFileImport successfully completed</log>
                                </wait>
                                <network>
                                    <mode>custom</mode>
                                    <name>sdc-network</name>
                                    <alias>sdc-cs-init</alias>
                                </network>
                            </run>
                        </image>
                        <image>
                            <name>${docker.namespace}/sdc-onboard-cassandra-init:${it.docker.version}</name>
                            <alias>sdc-cassandra-onboard-init</alias>
                            <run>
                                <dependsOn>
                                    <container>sdc-cassandra-init</container>
                                </dependsOn>
                                <env>
                                    <RELEASE>${project.version}</RELEASE>
                                    <SDC_USER>${it.sdc.user}</SDC_USER>
                                    <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
                                    <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
                                    <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
                                    <ENVNAME>${it.env.name}</ENVNAME>
                                    <CS_HOST_IP>sdc-cs</CS_HOST_IP>
                                </env>
                                <hostname>sdc-cs-onboard-init</hostname>
                                <volumes>
                                    <bind>
                                        <volume>${it.chef.config}:/home/sdc/chef-solo/environments
                                        </volume>
                                    </bind>
                                </volumes>
                                <wait>
                                    <time>30000</time>
                                    <log>Onboarding init was successful</log>
                                </wait>
                                <network>
                                    <mode>custom</mode>
                                    <name>sdc-network</name>
                                    <alias>sdc-cs-onboard-init</alias>
                                </network>
                            </run>
                        </image>
                        <image>
                            <name>${docker.namespace}/sdc-onboard-backend:${it.docker.version}</name>
                            <alias>sdc-onboard-backend</alias>
                            <run>
                                <dependsOn>
                                    <container>sdc-cassandra-onboard-init</container>
                                </dependsOn>
                                <env>
                                    <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
                                    </cassandra_ssl_enabled>
                                    <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
                                    <SDC_USER>${it.sdc.user}</SDC_USER>
                                    <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
                                    <ENVNAME>${it.env.name}</ENVNAME>
                                    <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
                                    <JAVA_OPTIONS>
                                        -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001
                                        -Xmx1g -Xms1g
                                    </JAVA_OPTIONS>
                                </env>
                                <hostname>sdc-onboard-BE</hostname>
                                <volumes>
                                    <bind>
                                        <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
                                        <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/app/jetty/onap/cert
                                        </volume>
                                        <volume>${it.shared.volume}:/app/jetty/logs</volume>
                                    </bind>
                                </volumes>
                                <wait>
                                    <time>300000</time>
                                    <tcp>
                                        <host>sdc-onboard-BE</host>
                                        <mode>direct</mode>
                                        <ports>
                                            <port>8445</port>
                                            <port>8081</port>
                                            <port>4001</port>
                                        </ports>
                                    </tcp>
                                </wait>
                                <ports>
                                    <port>8445:8445</port>
                                    <port>8081:8081</port>
                                    <port>4001:4001</port>
                                </ports>
                                <network>
                                    <mode>custom</mode>
                                    <name>sdc-network</name>
                                    <alias>sdc-onboard-BE</alias>
                                </network>
                            </run>
                        </image>
                        <image>
                            <name>${docker.namespace}/sdc-backend-all-plugins:${it.docker.version}</name>
                            <alias>sdc-backend</alias>
                            <run>
                                <dependsOn>
                                    <container>sdc-cassandra-init</container>
                                </dependsOn>
                                <env>
                                    <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
                                    </cassandra_ssl_enabled>
                                    <ENVNAME>${it.env.name}</ENVNAME>
                                    <JAVA_OPTIONS>
                                        -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
                                        -Xmx1536m -Xms1536m
                                    </JAVA_OPTIONS>
                                    <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
                                    <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
                                </env>
                                <hostname>sdc-BE</hostname>
                                <volumes>
                                    <bind>
                                        <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
                                        <volume>${it.shared.volume}:/app/jetty/logs</volume>
                                        <volume>
                                            ${project.basedir}/src/test/resources/cert/catalog-be:/app/jetty/onap/cert
                                        </volume>
                                    </bind>
                                </volumes>
                                <wait>
                                    <time>60000</time>
                                    <tcp>
                                        <host>sdc-BE</host>
                                        <mode>direct</mode>
                                        <ports>
                                            <port>8443</port>
                                            <port>8080</port>
                                            <port>4000</port>
                                        </ports>
                                    </tcp>
                                </wait>
                                <ports>
                                    <port>8443:8443</port>
                                    <port>8080:8080</port>
                                    <port>4000:4000</port>
                                </ports>
                                <network>
                                    <mode>custom</mode>
                                    <name>sdc-network</name>
                                    <alias>sdc-BE</alias>
                                </network>
                            </run>
                        </image>
                        <image>
                            <name>${docker.namespace}/sdc-backend-init:${it.docker.version}</name>
                            <alias>sdc-backend-init</alias>
                            <run>
                                <dependsOn>
                                    <container>sdc-backend</container>
                                </dependsOn>
                                <env>
                                    <ENVNAME>${it.env.name}</ENVNAME>
                                </env>
                                <hostname>sdc-BE-init</hostname>
                                <volumes>
                                    <bind>
                                        <volume>
                                            ${it.chef.config}:/home/onap/chef-solo/environments
                                        </volume>
                                        <volume>${it.shared.volume}:/home/onap/logs</volume>
                                    </bind>
                                </volumes>
                                <wait>
                                    <time>660000</time>
                                    <log>Chef Client finished</log>
                                </wait>
                                <network>
                                    <mode>custom</mode>
                                    <name>sdc-network</name>
                                    <alias>sdc-BE-init</alias>
                                </network>
                            </run>
                        </image>
                        <image>
                            <name>${docker.namespace}/sdc-frontend:${it.docker.version}</name>
                            <alias>sdc-frontend</alias>
                            <run>
                                <env>
                                    <ENVNAME>${it.env.name}</ENVNAME>
                                    <JAVA_OPTIONS>
                                        -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
                                        -Xmx256m -Xms256m
                                    </JAVA_OPTIONS>
                                </env>
                                <hostname>sdc-FE</hostname>
                                <volumes>
                                    <bind>
                                        <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
                                        <volume>${it.shared.volume}:/app/jetty/logs</volume>
                                        <volume>
                                            ${it.chef.config}/plugins-configuration.yaml:/app/jetty/config/catalog-fe/plugins-configuration.yaml
                                        </volume>

                                    </bind>
                                </volumes>
                                <wait>
                                    <time>60000</time>
                                    <tcp>
                                        <host>sdc-FE</host>
                                        <mode>direct</mode>
                                        <ports>
                                            <port>9443</port>
                                            <port>8181</port>
                                            <port>6000</port>
                                        </ports>
                                    </tcp>
                                </wait>
                                <ports>
                                    <port>9443:9443</port>
                                    <port>8181:8181</port>
                                    <port>6000:6000</port>
                                </ports>
                                <network>
                                    <mode>custom</mode>
                                    <name>sdc-network</name>
                                    <alias>sdc-FE</alias>
                                </network>
                            </run>
                        </image>
                        <image>
                            <name>${docker.namespace}/sdc-simulator:${it.docker.version}</name>
                            <alias>sdc-simulator</alias>
                            <run>
                                <env>
                                    <!--<FE_URL>${it.env.name}</FE_URL>-->
                                    <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
                                    <ENVNAME>${it.env.name}</ENVNAME>
                                </env>
                                <hostname>sdc-sim</hostname>
                                <volumes>
                                    <bind>
                                        <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
                                        <volume>${it.shared.volume}:/app/jetty/logs</volume>
                                    </bind>
                                </volumes>
                                <wait>
                                    <time>60000</time>
                                    <tcp>
                                        <host>sdc-sim</host>
                                        <mode>direct</mode>
                                        <ports>
                                            <port>8080</port>
                                            <port>8443</port>
                                            <port>5000</port>
                                        </ports>
                                    </tcp>
                                </wait>
                                <ports>
                                    <!-- http://localhost:8285/login to access SDC -->
                                    <port>8285:8080</port>
                                    <port>8286:8443</port>
                                    <port>5000:5000</port>
                                </ports>
                                <network>
                                    <mode>custom</mode>
                                    <name>sdc-network</name>
                                    <alias>sdc-sim</alias>
                                </network>
                            </run>
                        </image>

                        <image>
                            <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
                            <alias>firefox-standalone</alias>
                            <run>
                                <hostname>firefox-standalone</hostname>
                                <wait>
                                    <time>20000</time>
                                    <tcp>
                                        <host>firefox-standalone</host>
                                        <mode>direct</mode>
                                        <ports>
                                            <!-- Selenium remote automation port -->
                                            <port>4444</port>
                                            <!--<port>5900</port>-->
                                            <!-- VNC port for viewing the browser result -->
                                            <!-- password to access is "secret" -->
                                        </ports>
                                    </tcp>
                                </wait>
                                <env>
                                    <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
                                    <!--<START_XVFB>false</START_XVFB>-->
                                    <SCREEN_WIDTH>1920</SCREEN_WIDTH>
                                    <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
                                </env>
                                <ports>
                                    <port>4444:4444</port>
                                    <!--<port>5900:5900</port>-->
                                </ports>
                                <network>
                                    <mode>custom</mode>
                                    <name>sdc-network</name>
                                    <alias>firefox-standalone</alias>
                                </network>
                                <volumes>
                                    <bind>
                                        <volume>
                                            /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
                                        </volume>
                                        <volume>/dev/shm:/dev/shm</volume>
                                    </bind>
                                </volumes>
                            </run>
                        </image>
                        <image>
                            <name>${docker.namespace}/sdc-helm-validator:${it.helm-validator.version}</name>
                            <alias>helm-validator</alias>
                            <run>
                                <skip>${it.helm-validator.disabled}</skip>
                                <hostname>helm-validator</hostname>
                                <wait>
                                    <time>20000</time>
                                    <tcp>
                                        <host>helm-validator</host>
                                        <mode>direct</mode>
                                        <ports>
                                            <port>8080</port>
                                        </ports>
                                    </tcp>
                                </wait>
                                <ports>
                                    <port>8085:8080</port>
                                </ports>
                                <network>
                                    <mode>custom</mode>
                                    <name>sdc-network</name>
                                    <alias>helm-validator</alias>
                                </network>
                            </run>
                        </image>
                    </images>
                </configuration>
                <executions>
                    <execution>
                        <id>docker-start-for-it</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>start</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>docker-stop-for-it</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>stop</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-failsafe-plugin</artifactId>
                <configuration>
                    <forkCount>1</forkCount>
                    <reuseForks>true</reuseForks>
                    <systemProperties>
                        <property>
                            <name>testng.dtd.http</name>
                            <value>true</value>
                        </property>
                    </systemProperties>
                    <suiteXmlFiles>
                        <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
                        <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
                        <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
                        <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
                        <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
                        <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
                        <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
                        <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
                        <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
                        <!--                        <file>src/test/resources/ci/testSuites/general.xml</file>-->
                        <!--                        <file>src/test/resources/ci/testSuites/imports.xml</file>-->
                        <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
                        <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
                        <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
                        <!--                        <file>src/test/resources/ci/testSuites/product.xml</file>-->
                        <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
                        <!--                        <file>src/test/resources/ci/testSuites/property.xml</file>-->
                        <!--                        <file>src/test/resources/ci/testSuites/resource.xml</file>-->
                        <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
                        <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
                        <!--                        <file>src/test/resources/ci/testSuites/service.xml</file>-->
                        <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
                        <!--                        <file>src/test/resources/ci/testSuites/user.xml</file>-->
                    </suiteXmlFiles>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <profiles>
        <profile>
            <id>all-for-integration-tests-only</id>
            <properties>
                <surefire.skip.tests>true</surefire.skip.tests>
                <skipTest>false</skipTest>
            </properties>
        </profile>
        <profile>
            <id>integration-tests-with-helm-validator</id>
            <properties>
                <it.helm-validator.disabled>false</it.helm-validator.disabled>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <configuration>
                            <forkCount>1</forkCount>
                            <reuseForks>true</reuseForks>
                            <systemProperties>
                                <property>
                                    <name>testng.dtd.http</name>
                                    <value>true</value>
                                </property>
                            </systemProperties>
                            <suiteXmlFiles>
                                <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
                                <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
                                <file>src/test/resources/ci/testSuites/backend/helmValidatorTests.xml</file>
                                <file>src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml</file>
                            </suiteXmlFiles>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>