2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
6 Modifications copyright (c) 2020-2021 Nokia
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20 ================================================================================
23 <project xmlns="http://maven.apache.org/POM/4.0.0"
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
28 <artifactId>sdc-integration-tests</artifactId>
29 <packaging>jar</packaging>
30 <name>sdc-integration-tests</name>
33 <groupId>org.openecomp.sdc</groupId>
34 <artifactId>sdc-main</artifactId>
35 <version>1.12.0-SNAPSHOT</version>
39 <selenium.version>3.141.59</selenium.version>
40 <gecko.driver.version>0.29.0</gecko.driver.version>
41 <!-- SDC Startup parameters -->
42 <it.env.name>integration-test</it.env.name>
43 <it.cassandra.port>9042</it.cassandra.port>
44 <it.cassandra.password>onap123#@!</it.cassandra.password>
45 <it.cassandra.ssl.enabled>false</it.cassandra.ssl.enabled>
46 <it.sdc.cluster.name>SDC-CS-${it.env.name}</it.sdc.cluster.name>
47 <it.sdc.user>asdc_user</it.sdc.user>
48 <it.sdc.password>Aa1234%^!</it.sdc.password>
49 <it.chef.config>${project.build.directory}/chef-config</it.chef.config>
50 <it.sdc-be.plugins>${project.build.directory}/plugins/sdc-be</it.sdc-be.plugins>
51 <it.shared.volume>/tmp/sdc-integration-tests</it.shared.volume>
52 <it.docker.version>latest</it.docker.version>
53 <it.ui.firefox.version>86.0</it.ui.firefox.version>
54 <it.helm-validator.disabled>true</it.helm-validator.disabled>
55 <it.helm-validator.version>1.3.1</it.helm-validator.version>
58 <sdc-tosca-parser.version>1.7.0</sdc-tosca-parser.version>
59 <docker.showLogs>false</docker.showLogs>
64 <groupId>ch.qos.logback</groupId>
65 <artifactId>logback-classic</artifactId>
66 <version>${logback.version}</version>
70 <groupId>org.yaml</groupId>
71 <artifactId>snakeyaml</artifactId>
72 <version>${snakeyaml.version}</version>
76 <groupId>org.hamcrest</groupId>
77 <artifactId>hamcrest</artifactId>
78 <version>${hamcrest.version}</version>
82 <groupId>org.testng</groupId>
83 <artifactId>testng</artifactId>
84 <version>${testng.version}</version>
88 <groupId>com.google.code.gson</groupId>
89 <artifactId>gson</artifactId>
90 <version>${gson.version}</version>
94 <groupId>org.openecomp.sdc.be</groupId>
95 <artifactId>catalog-model</artifactId>
96 <version>${project.version}</version>
100 <groupId>org.openecomp.sdc.be</groupId>
101 <artifactId>catalog-dao</artifactId>
102 <version>${project.version}</version>
106 <groupId>org.openecomp.sdc</groupId>
107 <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
108 <version>${project.version}</version>
112 <groupId>org.springframework</groupId>
113 <artifactId>spring-core</artifactId>
118 <groupId>com.aventstack</groupId>
119 <artifactId>extentreports</artifactId>
120 <version>3.0.6</version>
124 <groupId>org.jsoup</groupId>
125 <artifactId>jsoup</artifactId>
128 <groupId>org.apache.httpcomponents</groupId>
129 <artifactId>httpmime</artifactId>
132 <groupId>org.mongodb</groupId>
133 <artifactId>mongodb-driver</artifactId>
138 <groupId>org.mongodb</groupId>
139 <artifactId>mongodb-driver</artifactId>
140 <version>3.12.10</version>
144 <groupId>org.janusgraph</groupId>
145 <artifactId>janusgraph-core</artifactId>
146 <version>${janusgraph.version}</version>
150 <groupId>org.apache.tinkerpop</groupId>
151 <artifactId>gremlin-groovy</artifactId>
154 <groupId>org.apache.tinkerpop</groupId>
155 <artifactId>gremlin-core</artifactId>
158 <artifactId>slf4j-log4j12</artifactId>
159 <groupId>org.slf4j</groupId>
162 <artifactId>commons-collections</artifactId>
163 <groupId>commons-collections</groupId>
166 <artifactId>groovy</artifactId>
167 <groupId>org.codehaus.groovy</groupId>
170 <groupId>org.apache.thrift</groupId>
171 <artifactId>libthrift</artifactId>
174 <groupId>org.apache.commons</groupId>
175 <artifactId>commons-text</artifactId>
178 <groupId>commons-codec</groupId>
179 <artifactId>commons-codec</artifactId>
182 <groupId>dom4j</groupId>
183 <artifactId>dom4j</artifactId>
186 <groupId>org.slf4j</groupId>
187 <artifactId>jcl-over-slf4j</artifactId>
192 <groupId>org.assertj</groupId>
193 <artifactId>assertj-core</artifactId>
194 <version>${assertj.version}</version>
198 <groupId>org.apache.commons</groupId>
199 <artifactId>commons-text</artifactId>
200 <version>${apache-commons-text.version}</version>
204 <groupId>com.clearspring.analytics</groupId>
205 <artifactId>stream</artifactId>
206 <version>${clearspring.version}</version>
210 <groupId>org.apache.httpcomponents</groupId>
211 <artifactId>httpclient</artifactId>
212 <version>${httpclient.version}</version>
216 <groupId>commons-codec</groupId>
217 <artifactId>commons-codec</artifactId>
220 <groupId>org.apache.httpcomponents</groupId>
221 <artifactId>httpcore</artifactId>
226 <groupId>org.apache.httpcomponents</groupId>
227 <artifactId>httpcore</artifactId>
228 <version>${httpcore.version}</version>
232 <groupId>com.fasterxml.jackson.core</groupId>
233 <artifactId>jackson-core</artifactId>
234 <version>${jackson.version}</version>
238 <groupId>org.codehaus.jackson</groupId>
239 <artifactId>jackson-mapper-asl</artifactId>
240 <version>1.9.2</version>
244 <groupId>com.fasterxml.jackson.core</groupId>
245 <artifactId>jackson-databind</artifactId>
246 <version>${jackson.version}</version>
250 <groupId>com.fasterxml.jackson.core</groupId>
251 <artifactId>jackson-core</artifactId>
257 <groupId>org.onap.sdc.sdc-tosca</groupId>
258 <artifactId>sdc-tosca</artifactId>
259 <version>${sdc-tosca-parser.version}</version>
262 <!--FOR the Frontend -->
264 <groupId>org.seleniumhq.selenium</groupId>
265 <artifactId>selenium-java</artifactId>
267 <version>${selenium.version}</version>
270 <groupId>org.seleniumhq.selenium</groupId>
271 <artifactId>selenium-server</artifactId>
272 <version>${selenium.version}</version>
276 <groupId>org.seleniumhq.selenium</groupId>
277 <artifactId>selenium-firefox-driver</artifactId>
278 <version>${selenium.version}</version>
283 <groupId>net.lightbody.bmp</groupId>
284 <!-- To use the legacy, Jetty-based implementation, change the artifactId
285 to browsermob-core -->
286 <artifactId>browsermob-core</artifactId>
287 <version>2.1.4</version>
291 <groupId>com.fasterxml.jackson.core</groupId>
292 <artifactId>jackson-core</artifactId>
295 <groupId>org.slf4j</groupId>
296 <artifactId>jcl-over-slf4j</artifactId>
301 <groupId>com.paulhammant</groupId>
302 <artifactId>ngwebdriver</artifactId>
303 <version>0.9.7</version>
307 <groupId>com.github.markusbernhardt</groupId>
308 <artifactId>proxy-vole</artifactId>
309 <version>1.0.2</version>
313 <groupId>net.java.dev.jna</groupId>
314 <artifactId>jna</artifactId>
317 <groupId>net.java.dev.jna</groupId>
318 <artifactId>jna-platform</artifactId>
323 <groupId>commons-net</groupId>
324 <artifactId>commons-net</artifactId>
325 <version>3.3</version>
329 <groupId>org.springframework</groupId>
330 <artifactId>spring-core</artifactId>
331 <version>${spring.version}</version>
335 <groupId>org.onap.portal.sdk</groupId>
336 <artifactId>epsdk-fw</artifactId>
337 <version>${ecomp.version}</version>
341 <groupId>log4j</groupId>
342 <artifactId>log4j</artifactId>
345 <groupId>org.owasp.esapi</groupId>
346 <artifactId>esapi</artifactId>
351 <groupId>org.functionaljava</groupId>
352 <artifactId>functionaljava</artifactId>
353 <version>${functionaljava.version}</version>
360 <!-- Section for Integration tests -->
362 <artifactId>maven-resources-plugin</artifactId>
365 <id>copy-chef-resources</id>
366 <phase>pre-integration-test</phase>
368 <goal>copy-resources</goal>
371 <outputDirectory>${it.chef.config}</outputDirectory>
374 <directory>environments</directory>
375 <filtering>true</filtering>
377 <include>integration-test.json</include>
381 <directory>environments</directory>
382 <filtering>false</filtering>
384 <include>plugins-configuration.yaml</include>
391 <id>copy-sdc-be-plugins</id>
392 <phase>pre-integration-test</phase>
394 <goal>copy-resources</goal>
397 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
401 ../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target
403 <filtering>false</filtering>
405 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar
415 <groupId>org.codehaus.mojo</groupId>
416 <artifactId>wagon-maven-plugin</artifactId>
417 <version>2.0.0</version>
420 <id>download-gecko</id>
421 <phase>validate</phase>
423 <goal>download-single</goal>
426 <url>https://github.com</url>
428 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
430 <toDir>${project.build.directory}/gecko</toDir>
436 <groupId>org.apache.maven.plugins</groupId>
437 <artifactId>maven-antrun-plugin</artifactId>
438 <version>${maven-antrun-plugin.version}</version>
441 <id>set-folder-permission</id>
442 <phase>pre-integration-test</phase>
445 <mkdir dir="/tmp/sdc-integration-tests"/>
446 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
447 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
448 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation"
459 <phase>pre-integration-test</phase>
463 src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
464 compression="gzip" dest="${project.build.directory}/gecko/"/>
465 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir"
476 <groupId>org.codehaus.mojo</groupId>
477 <artifactId>build-helper-maven-plugin</artifactId>
480 <id>reserve-port-for-tests</id>
481 <phase>validate</phase>
483 <goal>reserve-network-port</goal>
487 <portName>sdc.it.docker.cassandra.port</portName>
494 <groupId>io.fabric8</groupId>
495 <artifactId>docker-maven-plugin</artifactId>
498 <groupId>org.apache.httpcomponents</groupId>
499 <artifactId>httpclient</artifactId>
500 <version>${httpclient.version}</version>
504 <verbose>${verbose}</verbose>
505 <apiVersion>${docker.api.version}</apiVersion>
506 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
507 <startParallel>true</startParallel>
510 <name>${docker.namespace}/sdc-cassandra:${it.docker.version}</name>
511 <alias>sdc-cassandra</alias>
514 <RELEASE>${project.version}</RELEASE>
515 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
516 <ENVNAME>${it.env.name}</ENVNAME>
517 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
518 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
520 <hostname>sdc-cs</hostname>
523 <volume>${it.chef.config}:/root/chef-solo/environments
550 <port>9042:9042</port>
554 <name>sdc-network</name>
555 <alias>sdc-cs</alias>
560 <name>${docker.namespace}/sdc-cassandra-init:${it.docker.version}</name>
561 <alias>sdc-cassandra-init</alias>
564 <container>sdc-cassandra</container>
567 <RELEASE>${project.version}</RELEASE>
568 <SDC_USER>${it.sdc.user}</SDC_USER>
569 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
570 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
571 <ENVNAME>${it.env.name}</ENVNAME>
573 <hostname>sdc-cs-init</hostname>
576 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
583 <log>SdcSchemaFileImport successfully completed</log>
587 <name>sdc-network</name>
588 <alias>sdc-cs-init</alias>
593 <name>${docker.namespace}/sdc-onboard-cassandra-init:${it.docker.version}</name>
594 <alias>sdc-cassandra-onboard-init</alias>
597 <container>sdc-cassandra-init</container>
600 <RELEASE>${project.version}</RELEASE>
601 <SDC_USER>${it.sdc.user}</SDC_USER>
602 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
603 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
604 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
605 <ENVNAME>${it.env.name}</ENVNAME>
606 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
608 <hostname>sdc-cs-onboard-init</hostname>
611 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
617 <log>Onboarding init was successful</log>
621 <name>sdc-network</name>
622 <alias>sdc-cs-onboard-init</alias>
627 <name>${docker.namespace}/sdc-onboard-backend:${it.docker.version}</name>
628 <alias>sdc-onboard-backend</alias>
631 <container>sdc-cassandra-onboard-init</container>
634 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
635 </cassandra_ssl_enabled>
636 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
637 <SDC_USER>${it.sdc.user}</SDC_USER>
638 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
639 <ENVNAME>${it.env.name}</ENVNAME>
640 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
642 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001
646 <hostname>sdc-onboard-BE</hostname>
649 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
650 <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/app/jetty/onap/cert
652 <volume>${it.shared.volume}:/app/jetty/logs</volume>
658 <host>sdc-onboard-BE</host>
668 <port>8445:8445</port>
669 <port>8081:8081</port>
670 <port>4001:4001</port>
674 <name>sdc-network</name>
675 <alias>sdc-onboard-BE</alias>
680 <name>${docker.namespace}/sdc-backend-all-plugins:${it.docker.version}</name>
681 <alias>sdc-backend</alias>
684 <container>sdc-cassandra-init</container>
687 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
688 </cassandra_ssl_enabled>
689 <ENVNAME>${it.env.name}</ENVNAME>
691 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
694 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
695 <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
697 <hostname>sdc-BE</hostname>
700 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
701 <volume>${it.shared.volume}:/app/jetty/logs</volume>
703 ${project.basedir}/src/test/resources/cert/catalog-be:/app/jetty/onap/cert
720 <port>8443:8443</port>
721 <port>8080:8080</port>
722 <port>4000:4000</port>
726 <name>sdc-network</name>
727 <alias>sdc-BE</alias>
732 <name>${docker.namespace}/sdc-backend-init:${it.docker.version}</name>
733 <alias>sdc-backend-init</alias>
736 <container>sdc-backend</container>
739 <ENVNAME>${it.env.name}</ENVNAME>
741 <hostname>sdc-BE-init</hostname>
745 ${it.chef.config}:/home/onap/chef-solo/environments
747 <volume>${it.shared.volume}:/home/onap/logs</volume>
752 <log>Chef Client finished</log>
756 <name>sdc-network</name>
757 <alias>sdc-BE-init</alias>
762 <name>${docker.namespace}/sdc-frontend:${it.docker.version}</name>
763 <alias>sdc-frontend</alias>
766 <ENVNAME>${it.env.name}</ENVNAME>
768 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
772 <hostname>sdc-FE</hostname>
775 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
776 <volume>${it.shared.volume}:/app/jetty/logs</volume>
778 ${it.chef.config}/plugins-configuration.yaml:/app/jetty/config/catalog-fe/plugins-configuration.yaml
796 <port>9443:9443</port>
797 <port>8181:8181</port>
798 <port>6000:6000</port>
802 <name>sdc-network</name>
803 <alias>sdc-FE</alias>
808 <name>${docker.namespace}/sdc-simulator:${it.docker.version}</name>
809 <alias>sdc-simulator</alias>
812 <!--<FE_URL>${it.env.name}</FE_URL>-->
813 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
814 <ENVNAME>${it.env.name}</ENVNAME>
816 <hostname>sdc-sim</hostname>
819 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
820 <volume>${it.shared.volume}:/app/jetty/logs</volume>
836 <!-- http://localhost:8285/login to access SDC -->
837 <port>8285:8080</port>
838 <port>8286:8443</port>
839 <port>5000:5000</port>
843 <name>sdc-network</name>
844 <alias>sdc-sim</alias>
850 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
851 <alias>firefox-standalone</alias>
853 <hostname>firefox-standalone</hostname>
857 <host>firefox-standalone</host>
860 <!-- Selenium remote automation port -->
862 <!--<port>5900</port>-->
863 <!-- VNC port for viewing the browser result -->
864 <!-- password to access is "secret" -->
869 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
870 <!--<START_XVFB>false</START_XVFB>-->
871 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
872 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
875 <port>4444:4444</port>
876 <!--<port>5900:5900</port>-->
880 <name>sdc-network</name>
881 <alias>firefox-standalone</alias>
886 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
888 <volume>/dev/shm:/dev/shm</volume>
894 <name>${docker.namespace}/sdc-helm-validator:${it.helm-validator.version}</name>
895 <alias>helm-validator</alias>
897 <skip>${it.helm-validator.disabled}</skip>
898 <hostname>helm-validator</hostname>
902 <host>helm-validator</host>
910 <port>8085:8080</port>
914 <name>sdc-network</name>
915 <alias>helm-validator</alias>
923 <id>docker-start-for-it</id>
924 <phase>pre-integration-test</phase>
930 <id>docker-stop-for-it</id>
931 <phase>post-integration-test</phase>
940 <groupId>org.apache.maven.plugins</groupId>
941 <artifactId>maven-surefire-plugin</artifactId>
948 <groupId>org.apache.maven.plugins</groupId>
949 <artifactId>maven-failsafe-plugin</artifactId>
951 <forkCount>1</forkCount>
952 <reuseForks>true</reuseForks>
955 <name>testng.dtd.http</name>
960 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
961 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
962 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
963 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
964 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
965 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
966 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
967 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
968 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
969 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
970 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
971 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
972 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
973 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
974 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
975 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
976 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
977 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
978 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
979 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
980 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
981 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
982 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
990 <id>all-for-integration-tests-only</id>
992 <surefire.skip.tests>true</surefire.skip.tests>
993 <skipTest>false</skipTest>
997 <id>integration-tests-with-helm-validator</id>
999 <it.helm-validator.disabled>false</it.helm-validator.disabled>
1004 <groupId>org.apache.maven.plugins</groupId>
1005 <artifactId>maven-failsafe-plugin</artifactId>
1007 <forkCount>1</forkCount>
1008 <reuseForks>true</reuseForks>
1011 <name>testng.dtd.http</name>
1016 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
1017 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
1018 <file>src/test/resources/ci/testSuites/backend/helmValidatorTests.xml</file>
1019 <file>src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml</file>