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.janusgraph</groupId>
124 <artifactId>janusgraph-core</artifactId>
125 <version>${janusgraph.version}</version>
129 <artifactId>gremlin-groovy</artifactId>
130 <groupId>org.apache.tinkerpop</groupId>
133 <artifactId>slf4j-log4j12</artifactId>
134 <groupId>org.slf4j</groupId>
137 <artifactId>commons-collections</artifactId>
138 <groupId>commons-collections</groupId>
141 <artifactId>groovy</artifactId>
142 <groupId>org.codehaus.groovy</groupId>
145 <groupId>org.apache.thrift</groupId>
146 <artifactId>libthrift</artifactId>
149 <groupId>org.apache.commons</groupId>
150 <artifactId>commons-text</artifactId>
153 <groupId>commons-codec</groupId>
154 <artifactId>commons-codec</artifactId>
157 <groupId>dom4j</groupId>
158 <artifactId>dom4j</artifactId>
163 <groupId>org.assertj</groupId>
164 <artifactId>assertj-core</artifactId>
165 <version>${assertj.version}</version>
169 <groupId>org.apache.commons</groupId>
170 <artifactId>commons-text</artifactId>
171 <version>${apache-commons-text.version}</version>
175 <groupId>com.clearspring.analytics</groupId>
176 <artifactId>stream</artifactId>
177 <version>${clearspring.version}</version>
181 <groupId>org.apache.httpcomponents</groupId>
182 <artifactId>httpclient</artifactId>
183 <version>${httpclient.version}</version>
187 <groupId>commons-codec</groupId>
188 <artifactId>commons-codec</artifactId>
193 <groupId>org.apache.httpcomponents</groupId>
194 <artifactId>httpcore</artifactId>
195 <version>${httpcore.version}</version>
199 <groupId>com.fasterxml.jackson.core</groupId>
200 <artifactId>jackson-core</artifactId>
201 <version>${jackson.version}</version>
205 <groupId>org.codehaus.jackson</groupId>
206 <artifactId>jackson-mapper-asl</artifactId>
207 <version>1.9.2</version>
211 <groupId>com.fasterxml.jackson.core</groupId>
212 <artifactId>jackson-databind</artifactId>
213 <version>${jackson.version}</version>
217 <groupId>com.fasterxml.jackson.core</groupId>
218 <artifactId>jackson-core</artifactId>
224 <groupId>org.onap.sdc.sdc-tosca</groupId>
225 <artifactId>sdc-tosca</artifactId>
226 <version>${sdc-tosca-parser.version}</version>
229 <!--FOR the Frontend -->
231 <groupId>org.seleniumhq.selenium</groupId>
232 <artifactId>selenium-java</artifactId>
234 <version>${selenium.version}</version>
237 <groupId>org.seleniumhq.selenium</groupId>
238 <artifactId>selenium-server</artifactId>
239 <version>${selenium.version}</version>
243 <groupId>org.seleniumhq.selenium</groupId>
244 <artifactId>selenium-firefox-driver</artifactId>
245 <version>${selenium.version}</version>
250 <groupId>net.lightbody.bmp</groupId>
251 <!-- To use the legacy, Jetty-based implementation, change the artifactId
252 to browsermob-core -->
253 <artifactId>browsermob-core</artifactId>
254 <version>2.1.4</version>
258 <groupId>com.fasterxml.jackson.core</groupId>
259 <artifactId>jackson-core</artifactId>
264 <groupId>com.paulhammant</groupId>
265 <artifactId>ngwebdriver</artifactId>
266 <version>0.9.7</version>
270 <groupId>com.github.markusbernhardt</groupId>
271 <artifactId>proxy-vole</artifactId>
272 <version>1.0.2</version>
276 <groupId>commons-net</groupId>
277 <artifactId>commons-net</artifactId>
278 <version>3.3</version>
282 <groupId>org.apache.logging.log4j</groupId>
283 <artifactId>log4j-api</artifactId>
284 <version>2.13.1</version>
288 <groupId>org.springframework</groupId>
289 <artifactId>spring-core</artifactId>
290 <version>${spring.version}</version>
297 <!-- Section for Integration tests -->
299 <artifactId>maven-resources-plugin</artifactId>
302 <id>copy-chef-resources</id>
303 <phase>pre-integration-test</phase>
305 <goal>copy-resources</goal>
308 <outputDirectory>${it.chef.config}</outputDirectory>
311 <directory>environments</directory>
312 <filtering>true</filtering>
314 <include>integration-test.json</include>
315 <include>plugins-configuration.yaml</include>
322 <id>copy-sdc-be-plugins</id>
323 <phase>pre-integration-test</phase>
325 <goal>copy-resources</goal>
328 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
332 ../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target
334 <filtering>false</filtering>
336 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar
346 <groupId>org.codehaus.mojo</groupId>
347 <artifactId>wagon-maven-plugin</artifactId>
348 <version>2.0.0</version>
351 <id>download-gecko</id>
352 <phase>validate</phase>
354 <goal>download-single</goal>
357 <url>https://github.com</url>
359 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
361 <toDir>${project.build.directory}/gecko</toDir>
367 <groupId>org.apache.maven.plugins</groupId>
368 <artifactId>maven-antrun-plugin</artifactId>
369 <version>${maven-antrun-plugin.version}</version>
372 <id>set-folder-permission</id>
373 <phase>pre-integration-test</phase>
376 <mkdir dir="/tmp/sdc-integration-tests"/>
377 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
378 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
379 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation"
390 <phase>pre-integration-test</phase>
394 src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
395 compression="gzip" dest="${project.build.directory}/gecko/"/>
396 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir"
407 <groupId>org.codehaus.mojo</groupId>
408 <artifactId>build-helper-maven-plugin</artifactId>
411 <id>reserve-port-for-tests</id>
412 <phase>validate</phase>
414 <goal>reserve-network-port</goal>
418 <portName>sdc.it.docker.cassandra.port</portName>
425 <groupId>io.fabric8</groupId>
426 <artifactId>docker-maven-plugin</artifactId>
429 <groupId>org.apache.httpcomponents</groupId>
430 <artifactId>httpclient</artifactId>
431 <version>${httpclient.version}</version>
435 <verbose>${verbose}</verbose>
436 <apiVersion>${docker.api.version}</apiVersion>
437 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
440 <name>onap/sdc-cassandra:${it.docker.version}</name>
441 <alias>sdc-cassandra</alias>
444 <RELEASE>${project.version}</RELEASE>
445 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
446 <ENVNAME>${it.env.name}</ENVNAME>
447 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
448 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
450 <hostname>sdc-cs</hostname>
453 <volume>${it.chef.config}:/root/chef-solo/environments
480 <port>9042:9042</port>
484 <name>sdc-network</name>
485 <alias>sdc-cs</alias>
490 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
491 <alias>sdc-cassandra-init</alias>
494 <container>sdc-cassandra</container>
497 <RELEASE>${project.version}</RELEASE>
498 <SDC_USER>${it.sdc.user}</SDC_USER>
499 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
500 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
501 <ENVNAME>${it.env.name}</ENVNAME>
503 <hostname>sdc-cs-init</hostname>
506 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
513 <log>SdcSchemaFileImport successfully completed</log>
517 <name>sdc-network</name>
518 <alias>sdc-cs-init</alias>
523 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
524 <alias>sdc-cassandra-onboard-init</alias>
527 <container>sdc-cassandra</container>
530 <RELEASE>${project.version}</RELEASE>
531 <SDC_USER>${it.sdc.user}</SDC_USER>
532 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
533 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
534 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
535 <ENVNAME>${it.env.name}</ENVNAME>
536 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
538 <hostname>sdc-cs-onboard-init</hostname>
541 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
547 <log>Onboarding init was successful</log>
551 <name>sdc-network</name>
552 <alias>sdc-cs-onboard-init</alias>
557 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
558 <alias>sdc-onboard-backend</alias>
561 <container>sdc-cassandra-onboard-init</container>
564 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
565 </cassandra_ssl_enabled>
566 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
567 <SDC_USER>${it.sdc.user}</SDC_USER>
568 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
569 <ENVNAME>${it.env.name}</ENVNAME>
570 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
572 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001
576 <hostname>sdc-onboard-BE</hostname>
579 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
580 <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/app/jetty/onap/cert
582 <volume>${it.shared.volume}:/app/jetty/logs</volume>
588 <host>sdc-onboard-BE</host>
598 <port>8445:8445</port>
599 <port>8081:8081</port>
600 <port>4001:4001</port>
604 <name>sdc-network</name>
605 <alias>sdc-onboard-BE</alias>
610 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
611 <alias>sdc-backend</alias>
614 <container>sdc-cassandra-init</container>
617 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
618 </cassandra_ssl_enabled>
619 <ENVNAME>${it.env.name}</ENVNAME>
621 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
624 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
625 <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
627 <hostname>sdc-BE</hostname>
630 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
631 <volume>${it.shared.volume}:/app/jetty/logs</volume>
633 ${project.basedir}/src/test/resources/cert/catalog-be:/app/jetty/onap/cert
650 <port>8443:8443</port>
651 <port>8080:8080</port>
652 <port>4000:4000</port>
656 <name>sdc-network</name>
657 <alias>sdc-BE</alias>
662 <name>onap/sdc-backend-init:${it.docker.version}</name>
663 <alias>sdc-backend-init</alias>
666 <container>sdc-backend</container>
669 <ENVNAME>${it.env.name}</ENVNAME>
671 <hostname>sdc-BE-init</hostname>
675 ${it.chef.config}:/home/onap/chef-solo/environments
677 <volume>${it.shared.volume}:/home/onap/logs</volume>
682 <log>Chef Client finished</log>
686 <name>sdc-network</name>
687 <alias>sdc-BE-init</alias>
692 <name>onap/sdc-frontend:${it.docker.version}</name>
693 <alias>sdc-frontend</alias>
696 <ENVNAME>${it.env.name}</ENVNAME>
698 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
702 <hostname>sdc-FE</hostname>
705 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
706 <volume>${it.shared.volume}:/app/jetty/logs</volume>
708 ${it.chef.config}/plugins-configuration.yaml:/app/jetty/config/catalog-fe/plugins-configuration.yaml
726 <port>9443:9443</port>
727 <port>8181:8181</port>
728 <port>6000:6000</port>
732 <name>sdc-network</name>
733 <alias>sdc-FE</alias>
738 <name>onap/sdc-simulator:${it.docker.version}</name>
739 <alias>sdc-simulator</alias>
742 <container>sdc-frontend</container>
745 <!--<FE_URL>${it.env.name}</FE_URL>-->
746 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
747 <ENVNAME>${it.env.name}</ENVNAME>
749 <hostname>sdc-sim</hostname>
752 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
753 <volume>${it.shared.volume}:/app/jetty/logs</volume>
768 <!-- http://localhost:8285/login to access SDC -->
769 <port>8285:8080</port>
770 <port>8286:8443</port>
774 <name>sdc-network</name>
775 <alias>sdc-sim</alias>
781 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
782 <alias>firefox-standalone</alias>
784 <hostname>firefox-standalone</hostname>
788 <host>firefox-standalone</host>
791 <!-- Selenium remote automation port -->
793 <!--<port>5900</port>-->
794 <!-- VNC port for viewing the browser result -->
795 <!-- password to access is "secret" -->
800 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
801 <!--<START_XVFB>false</START_XVFB>-->
802 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
803 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
806 <port>4444:4444</port>
807 <!--<port>5900:5900</port>-->
811 <name>sdc-network</name>
812 <alias>firefox-standalone</alias>
817 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
819 <volume>/dev/shm:/dev/shm</volume>
825 <name>onap/org.onap.sdc.sdc-helm-validator:${it.helm-validator.version}</name>
826 <alias>helm-validator</alias>
828 <skip>${it.helm-validator.disabled}</skip>
829 <hostname>helm-validator</hostname>
833 <host>helm-validator</host>
841 <port>8085:8080</port>
845 <name>sdc-network</name>
846 <alias>helm-validator</alias>
854 <id>docker-start-for-it</id>
855 <phase>pre-integration-test</phase>
861 <id>docker-stop-for-it</id>
862 <phase>post-integration-test</phase>
871 <groupId>org.apache.maven.plugins</groupId>
872 <artifactId>maven-surefire-plugin</artifactId>
879 <groupId>org.apache.maven.plugins</groupId>
880 <artifactId>maven-failsafe-plugin</artifactId>
882 <forkCount>1</forkCount>
883 <reuseForks>true</reuseForks>
886 <name>testng.dtd.http</name>
891 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
892 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
893 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
894 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
895 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
896 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
897 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
898 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
899 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
900 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
901 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
902 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
903 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
904 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
905 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
906 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
907 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
908 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
909 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
910 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
911 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
912 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
913 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
921 <id>all-for-integration-tests-only</id>
923 <surefire.skip.tests>true</surefire.skip.tests>
924 <skipTest>false</skipTest>
928 <id>integration-tests-with-helm-validator</id>
930 <it.helm-validator.disabled>false</it.helm-validator.disabled>
935 <groupId>org.apache.maven.plugins</groupId>
936 <artifactId>maven-failsafe-plugin</artifactId>
938 <forkCount>1</forkCount>
939 <reuseForks>true</reuseForks>
942 <name>testng.dtd.http</name>
947 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
948 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
949 <file>src/test/resources/ci/testSuites/backend/helmValidatorTests.xml</file>
950 <file>src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml</file>