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.10.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.2.2</it.helm-validator.version>
58 <sdc-tosca-parser.version>1.6.6</sdc-tosca-parser.version>
63 <groupId>ch.qos.logback</groupId>
64 <artifactId>logback-classic</artifactId>
65 <version>${logback.version}</version>
69 <groupId>org.yaml</groupId>
70 <artifactId>snakeyaml</artifactId>
71 <version>${snakeyaml.version}</version>
75 <groupId>org.hamcrest</groupId>
76 <artifactId>hamcrest</artifactId>
77 <version>${hamcrest.version}</version>
81 <groupId>org.testng</groupId>
82 <artifactId>testng</artifactId>
83 <version>${testng.version}</version>
87 <groupId>com.google.code.gson</groupId>
88 <artifactId>gson</artifactId>
89 <version>${gson.version}</version>
93 <groupId>org.openecomp.sdc.be</groupId>
94 <artifactId>catalog-model</artifactId>
95 <version>${project.version}</version>
99 <groupId>org.openecomp.sdc.be</groupId>
100 <artifactId>catalog-dao</artifactId>
101 <version>${project.version}</version>
105 <groupId>org.openecomp.sdc</groupId>
106 <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
107 <version>${project.version}</version>
111 <groupId>org.springframework</groupId>
112 <artifactId>spring-core</artifactId>
117 <groupId>com.aventstack</groupId>
118 <artifactId>extentreports</artifactId>
119 <version>3.0.6</version>
123 <groupId>org.jsoup</groupId>
124 <artifactId>jsoup</artifactId>
127 <groupId>org.apache.httpcomponents</groupId>
128 <artifactId>httpmime</artifactId>
131 <groupId>org.mongodb</groupId>
132 <artifactId>mongodb-driver</artifactId>
137 <groupId>org.mongodb</groupId>
138 <artifactId>mongodb-driver</artifactId>
139 <version>3.12.10</version>
143 <groupId>org.janusgraph</groupId>
144 <artifactId>janusgraph-core</artifactId>
145 <version>${janusgraph.version}</version>
149 <artifactId>gremlin-groovy</artifactId>
150 <groupId>org.apache.tinkerpop</groupId>
153 <artifactId>slf4j-log4j12</artifactId>
154 <groupId>org.slf4j</groupId>
157 <artifactId>commons-collections</artifactId>
158 <groupId>commons-collections</groupId>
161 <artifactId>groovy</artifactId>
162 <groupId>org.codehaus.groovy</groupId>
165 <groupId>org.apache.thrift</groupId>
166 <artifactId>libthrift</artifactId>
169 <groupId>org.apache.commons</groupId>
170 <artifactId>commons-text</artifactId>
173 <groupId>commons-codec</groupId>
174 <artifactId>commons-codec</artifactId>
177 <groupId>dom4j</groupId>
178 <artifactId>dom4j</artifactId>
181 <groupId>org.slf4j</groupId>
182 <artifactId>jcl-over-slf4j</artifactId>
187 <groupId>org.assertj</groupId>
188 <artifactId>assertj-core</artifactId>
189 <version>${assertj.version}</version>
193 <groupId>org.apache.commons</groupId>
194 <artifactId>commons-text</artifactId>
195 <version>${apache-commons-text.version}</version>
199 <groupId>com.clearspring.analytics</groupId>
200 <artifactId>stream</artifactId>
201 <version>${clearspring.version}</version>
205 <groupId>org.apache.httpcomponents</groupId>
206 <artifactId>httpclient</artifactId>
207 <version>${httpclient.version}</version>
211 <groupId>commons-codec</groupId>
212 <artifactId>commons-codec</artifactId>
215 <groupId>org.apache.httpcomponents</groupId>
216 <artifactId>httpcore</artifactId>
221 <groupId>org.apache.httpcomponents</groupId>
222 <artifactId>httpcore</artifactId>
223 <version>${httpcore.version}</version>
227 <groupId>com.fasterxml.jackson.core</groupId>
228 <artifactId>jackson-core</artifactId>
229 <version>${jackson.version}</version>
233 <groupId>org.codehaus.jackson</groupId>
234 <artifactId>jackson-mapper-asl</artifactId>
235 <version>1.9.2</version>
239 <groupId>com.fasterxml.jackson.core</groupId>
240 <artifactId>jackson-databind</artifactId>
241 <version>${jackson.version}</version>
245 <groupId>com.fasterxml.jackson.core</groupId>
246 <artifactId>jackson-core</artifactId>
252 <groupId>org.onap.sdc.sdc-tosca</groupId>
253 <artifactId>sdc-tosca</artifactId>
254 <version>${sdc-tosca-parser.version}</version>
257 <!--FOR the Frontend -->
259 <groupId>org.seleniumhq.selenium</groupId>
260 <artifactId>selenium-java</artifactId>
262 <version>${selenium.version}</version>
265 <groupId>org.seleniumhq.selenium</groupId>
266 <artifactId>selenium-server</artifactId>
267 <version>${selenium.version}</version>
271 <groupId>org.seleniumhq.selenium</groupId>
272 <artifactId>selenium-firefox-driver</artifactId>
273 <version>${selenium.version}</version>
278 <groupId>net.lightbody.bmp</groupId>
279 <!-- To use the legacy, Jetty-based implementation, change the artifactId
280 to browsermob-core -->
281 <artifactId>browsermob-core</artifactId>
282 <version>2.1.4</version>
286 <groupId>com.fasterxml.jackson.core</groupId>
287 <artifactId>jackson-core</artifactId>
290 <groupId>org.slf4j</groupId>
291 <artifactId>jcl-over-slf4j</artifactId>
296 <groupId>com.paulhammant</groupId>
297 <artifactId>ngwebdriver</artifactId>
298 <version>0.9.7</version>
302 <groupId>com.github.markusbernhardt</groupId>
303 <artifactId>proxy-vole</artifactId>
304 <version>1.0.2</version>
308 <groupId>net.java.dev.jna</groupId>
309 <artifactId>jna</artifactId>
312 <groupId>net.java.dev.jna</groupId>
313 <artifactId>jna-platform</artifactId>
318 <groupId>commons-net</groupId>
319 <artifactId>commons-net</artifactId>
320 <version>3.3</version>
324 <groupId>org.springframework</groupId>
325 <artifactId>spring-core</artifactId>
326 <version>${spring.version}</version>
330 <groupId>org.onap.portal.sdk</groupId>
331 <artifactId>epsdk-fw</artifactId>
332 <version>${ecomp.version}</version>
336 <artifactId>log4j</artifactId>
337 <groupId>log4j</groupId>
345 <!-- Section for Integration tests -->
347 <artifactId>maven-resources-plugin</artifactId>
350 <id>copy-chef-resources</id>
351 <phase>pre-integration-test</phase>
353 <goal>copy-resources</goal>
356 <outputDirectory>${it.chef.config}</outputDirectory>
359 <directory>environments</directory>
360 <filtering>true</filtering>
362 <include>integration-test.json</include>
363 <include>plugins-configuration.yaml</include>
370 <id>copy-sdc-be-plugins</id>
371 <phase>pre-integration-test</phase>
373 <goal>copy-resources</goal>
376 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
380 ../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target
382 <filtering>false</filtering>
384 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar
394 <groupId>org.codehaus.mojo</groupId>
395 <artifactId>wagon-maven-plugin</artifactId>
396 <version>2.0.0</version>
399 <id>download-gecko</id>
400 <phase>validate</phase>
402 <goal>download-single</goal>
405 <url>https://github.com</url>
407 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
409 <toDir>${project.build.directory}/gecko</toDir>
415 <groupId>org.apache.maven.plugins</groupId>
416 <artifactId>maven-antrun-plugin</artifactId>
417 <version>${maven-antrun-plugin.version}</version>
420 <id>set-folder-permission</id>
421 <phase>pre-integration-test</phase>
424 <mkdir dir="/tmp/sdc-integration-tests"/>
425 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
426 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
427 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation"
438 <phase>pre-integration-test</phase>
442 src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
443 compression="gzip" dest="${project.build.directory}/gecko/"/>
444 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir"
455 <groupId>org.codehaus.mojo</groupId>
456 <artifactId>build-helper-maven-plugin</artifactId>
459 <id>reserve-port-for-tests</id>
460 <phase>validate</phase>
462 <goal>reserve-network-port</goal>
466 <portName>sdc.it.docker.cassandra.port</portName>
473 <groupId>io.fabric8</groupId>
474 <artifactId>docker-maven-plugin</artifactId>
477 <groupId>org.apache.httpcomponents</groupId>
478 <artifactId>httpclient</artifactId>
479 <version>${httpclient.version}</version>
483 <verbose>${verbose}</verbose>
484 <apiVersion>${docker.api.version}</apiVersion>
485 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
486 <startParallel>true</startParallel>
489 <name>${docker.namespace}/sdc-cassandra:${it.docker.version}</name>
490 <alias>sdc-cassandra</alias>
493 <RELEASE>${project.version}</RELEASE>
494 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
495 <ENVNAME>${it.env.name}</ENVNAME>
496 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
497 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
499 <hostname>sdc-cs</hostname>
502 <volume>${it.chef.config}:/root/chef-solo/environments
529 <port>9042:9042</port>
533 <name>sdc-network</name>
534 <alias>sdc-cs</alias>
539 <name>${docker.namespace}/sdc-cassandra-init:${it.docker.version}</name>
540 <alias>sdc-cassandra-init</alias>
543 <container>sdc-cassandra</container>
546 <RELEASE>${project.version}</RELEASE>
547 <SDC_USER>${it.sdc.user}</SDC_USER>
548 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
549 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
550 <ENVNAME>${it.env.name}</ENVNAME>
552 <hostname>sdc-cs-init</hostname>
555 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
562 <log>SdcSchemaFileImport successfully completed</log>
566 <name>sdc-network</name>
567 <alias>sdc-cs-init</alias>
572 <name>${docker.namespace}/sdc-onboard-cassandra-init:${it.docker.version}</name>
573 <alias>sdc-cassandra-onboard-init</alias>
576 <container>sdc-cassandra-init</container>
579 <RELEASE>${project.version}</RELEASE>
580 <SDC_USER>${it.sdc.user}</SDC_USER>
581 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
582 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
583 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
584 <ENVNAME>${it.env.name}</ENVNAME>
585 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
587 <hostname>sdc-cs-onboard-init</hostname>
590 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
596 <log>Onboarding init was successful</log>
600 <name>sdc-network</name>
601 <alias>sdc-cs-onboard-init</alias>
606 <name>${docker.namespace}/sdc-onboard-backend:${it.docker.version}</name>
607 <alias>sdc-onboard-backend</alias>
610 <container>sdc-cassandra-onboard-init</container>
613 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
614 </cassandra_ssl_enabled>
615 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
616 <SDC_USER>${it.sdc.user}</SDC_USER>
617 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
618 <ENVNAME>${it.env.name}</ENVNAME>
619 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
621 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001
625 <hostname>sdc-onboard-BE</hostname>
628 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
629 <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/app/jetty/onap/cert
631 <volume>${it.shared.volume}:/app/jetty/logs</volume>
637 <host>sdc-onboard-BE</host>
647 <port>8445:8445</port>
648 <port>8081:8081</port>
649 <port>4001:4001</port>
653 <name>sdc-network</name>
654 <alias>sdc-onboard-BE</alias>
659 <name>${docker.namespace}/sdc-backend-all-plugins:${it.docker.version}</name>
660 <alias>sdc-backend</alias>
663 <container>sdc-cassandra-init</container>
666 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
667 </cassandra_ssl_enabled>
668 <ENVNAME>${it.env.name}</ENVNAME>
670 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
673 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
674 <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
676 <hostname>sdc-BE</hostname>
679 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
680 <volume>${it.shared.volume}:/app/jetty/logs</volume>
682 ${project.basedir}/src/test/resources/cert/catalog-be:/app/jetty/onap/cert
699 <port>8443:8443</port>
700 <port>8080:8080</port>
701 <port>4000:4000</port>
705 <name>sdc-network</name>
706 <alias>sdc-BE</alias>
711 <name>${docker.namespace}/sdc-backend-init:${it.docker.version}</name>
712 <alias>sdc-backend-init</alias>
715 <container>sdc-backend</container>
718 <ENVNAME>${it.env.name}</ENVNAME>
720 <hostname>sdc-BE-init</hostname>
724 ${it.chef.config}:/home/onap/chef-solo/environments
726 <volume>${it.shared.volume}:/home/onap/logs</volume>
731 <log>Chef Client finished</log>
735 <name>sdc-network</name>
736 <alias>sdc-BE-init</alias>
741 <name>${docker.namespace}/sdc-frontend:${it.docker.version}</name>
742 <alias>sdc-frontend</alias>
745 <ENVNAME>${it.env.name}</ENVNAME>
747 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
751 <hostname>sdc-FE</hostname>
754 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
755 <volume>${it.shared.volume}:/app/jetty/logs</volume>
757 ${it.chef.config}/plugins-configuration.yaml:/app/jetty/config/catalog-fe/plugins-configuration.yaml
775 <port>9443:9443</port>
776 <port>8181:8181</port>
777 <port>6000:6000</port>
781 <name>sdc-network</name>
782 <alias>sdc-FE</alias>
787 <name>${docker.namespace}/sdc-simulator:${it.docker.version}</name>
788 <alias>sdc-simulator</alias>
791 <!--<FE_URL>${it.env.name}</FE_URL>-->
792 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
793 <ENVNAME>${it.env.name}</ENVNAME>
795 <hostname>sdc-sim</hostname>
798 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
799 <volume>${it.shared.volume}:/app/jetty/logs</volume>
815 <!-- http://localhost:8285/login to access SDC -->
816 <port>8285:8080</port>
817 <port>8286:8443</port>
818 <port>5000:5000</port>
822 <name>sdc-network</name>
823 <alias>sdc-sim</alias>
829 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
830 <alias>firefox-standalone</alias>
832 <hostname>firefox-standalone</hostname>
836 <host>firefox-standalone</host>
839 <!-- Selenium remote automation port -->
841 <!--<port>5900</port>-->
842 <!-- VNC port for viewing the browser result -->
843 <!-- password to access is "secret" -->
848 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
849 <!--<START_XVFB>false</START_XVFB>-->
850 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
851 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
854 <port>4444:4444</port>
855 <!--<port>5900:5900</port>-->
859 <name>sdc-network</name>
860 <alias>firefox-standalone</alias>
865 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
867 <volume>/dev/shm:/dev/shm</volume>
873 <name>${docker.namespace}/org.onap.sdc.sdc-helm-validator:${it.helm-validator.version}</name>
874 <alias>helm-validator</alias>
876 <skip>${it.helm-validator.disabled}</skip>
877 <hostname>helm-validator</hostname>
881 <host>helm-validator</host>
889 <port>8085:8080</port>
893 <name>sdc-network</name>
894 <alias>helm-validator</alias>
902 <id>docker-start-for-it</id>
903 <phase>pre-integration-test</phase>
909 <id>docker-stop-for-it</id>
910 <phase>post-integration-test</phase>
919 <groupId>org.apache.maven.plugins</groupId>
920 <artifactId>maven-surefire-plugin</artifactId>
927 <groupId>org.apache.maven.plugins</groupId>
928 <artifactId>maven-failsafe-plugin</artifactId>
930 <forkCount>1</forkCount>
931 <reuseForks>true</reuseForks>
934 <name>testng.dtd.http</name>
939 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
940 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
941 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
942 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
943 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
944 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
945 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
946 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
947 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
948 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
949 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
950 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
951 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
952 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
953 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
954 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
955 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
956 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
957 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
958 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
959 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
960 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
961 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
969 <id>all-for-integration-tests-only</id>
971 <surefire.skip.tests>true</surefire.skip.tests>
972 <skipTest>false</skipTest>
976 <id>integration-tests-with-helm-validator</id>
978 <it.helm-validator.disabled>false</it.helm-validator.disabled>
983 <groupId>org.apache.maven.plugins</groupId>
984 <artifactId>maven-failsafe-plugin</artifactId>
986 <forkCount>1</forkCount>
987 <reuseForks>true</reuseForks>
990 <name>testng.dtd.http</name>
995 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
996 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
997 <file>src/test/resources/ci/testSuites/backend/helmValidatorTests.xml</file>
998 <file>src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml</file>