2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
6 Modifications copyright (c) 2020 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.9.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.0</it.helm-validator.version>
58 <sdc-tosca-parser.version>1.6.5</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>junit</groupId>
82 <artifactId>junit</artifactId>
83 <version>${junit.version}</version>
87 <groupId>org.hamcrest</groupId>
88 <artifactId>hamcrest-core</artifactId>
93 <groupId>org.testng</groupId>
94 <artifactId>testng</artifactId>
95 <version>${testng.version}</version>
99 <groupId>com.google.code.gson</groupId>
100 <artifactId>gson</artifactId>
101 <version>${gson.version}</version>
105 <groupId>org.openecomp.sdc.be</groupId>
106 <artifactId>catalog-model</artifactId>
107 <version>${project.version}</version>
111 <groupId>org.openecomp.sdc.be</groupId>
112 <artifactId>catalog-dao</artifactId>
113 <version>${project.version}</version>
117 <groupId>org.openecomp.sdc</groupId>
118 <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
119 <version>${project.version}</version>
123 <groupId>com.aventstack</groupId>
124 <artifactId>extentreports</artifactId>
125 <version>3.0.6</version>
129 <groupId>org.janusgraph</groupId>
130 <artifactId>janusgraph-core</artifactId>
131 <version>${janusgraph.version}</version>
135 <artifactId>gremlin-groovy</artifactId>
136 <groupId>org.apache.tinkerpop</groupId>
139 <artifactId>slf4j-log4j12</artifactId>
140 <groupId>org.slf4j</groupId>
143 <artifactId>commons-collections</artifactId>
144 <groupId>commons-collections</groupId>
147 <artifactId>groovy</artifactId>
148 <groupId>org.codehaus.groovy</groupId>
151 <groupId>org.apache.thrift</groupId>
152 <artifactId>libthrift</artifactId>
155 <groupId>org.apache.commons</groupId>
156 <artifactId>commons-text</artifactId>
159 <groupId>commons-codec</groupId>
160 <artifactId>commons-codec</artifactId>
165 <groupId>org.assertj</groupId>
166 <artifactId>assertj-core</artifactId>
167 <version>${assertj.version}</version>
171 <groupId>org.apache.commons</groupId>
172 <artifactId>commons-text</artifactId>
173 <version>${apache-commons-text.version}</version>
177 <groupId>com.clearspring.analytics</groupId>
178 <artifactId>stream</artifactId>
179 <version>${clearspring.version}</version>
183 <groupId>org.apache.httpcomponents</groupId>
184 <artifactId>httpclient</artifactId>
185 <version>${httpclient.version}</version>
189 <groupId>commons-codec</groupId>
190 <artifactId>commons-codec</artifactId>
195 <groupId>org.apache.httpcomponents</groupId>
196 <artifactId>httpcore</artifactId>
197 <version>${httpcore.version}</version>
201 <groupId>com.fasterxml.jackson.core</groupId>
202 <artifactId>jackson-core</artifactId>
203 <version>${jackson.version}</version>
207 <groupId>org.codehaus.jackson</groupId>
208 <artifactId>jackson-mapper-asl</artifactId>
209 <version>1.9.2</version>
213 <groupId>com.fasterxml.jackson.core</groupId>
214 <artifactId>jackson-databind</artifactId>
215 <version>${jackson.version}</version>
219 <groupId>com.fasterxml.jackson.core</groupId>
220 <artifactId>jackson-core</artifactId>
226 <groupId>org.onap.sdc.sdc-tosca</groupId>
227 <artifactId>sdc-tosca</artifactId>
228 <version>${sdc-tosca-parser.version}</version>
231 <!--FOR the Frontend -->
233 <groupId>org.seleniumhq.selenium</groupId>
234 <artifactId>selenium-java</artifactId>
236 <version>${selenium.version}</version>
239 <groupId>org.seleniumhq.selenium</groupId>
240 <artifactId>selenium-server</artifactId>
241 <version>${selenium.version}</version>
245 <groupId>org.seleniumhq.selenium</groupId>
246 <artifactId>selenium-firefox-driver</artifactId>
247 <version>${selenium.version}</version>
252 <groupId>net.lightbody.bmp</groupId>
253 <!-- To use the legacy, Jetty-based implementation, change the artifactId
254 to browsermob-core -->
255 <artifactId>browsermob-core</artifactId>
256 <version>2.1.4</version>
260 <groupId>com.fasterxml.jackson.core</groupId>
261 <artifactId>jackson-core</artifactId>
266 <groupId>com.paulhammant</groupId>
267 <artifactId>ngwebdriver</artifactId>
268 <version>0.9.7</version>
272 <groupId>com.github.markusbernhardt</groupId>
273 <artifactId>proxy-vole</artifactId>
274 <version>1.0.2</version>
278 <groupId>commons-net</groupId>
279 <artifactId>commons-net</artifactId>
280 <version>3.3</version>
284 <groupId>org.apache.logging.log4j</groupId>
285 <artifactId>log4j-api</artifactId>
286 <version>2.13.1</version>
293 <!-- Section for Integration tests -->
295 <artifactId>maven-resources-plugin</artifactId>
298 <id>copy-chef-resources</id>
299 <phase>pre-integration-test</phase>
301 <goal>copy-resources</goal>
304 <outputDirectory>${it.chef.config}</outputDirectory>
307 <directory>environments</directory>
308 <filtering>true</filtering>
310 <include>integration-test.json</include>
311 <include>plugins-configuration.yaml</include>
318 <id>copy-sdc-be-plugins</id>
319 <phase>pre-integration-test</phase>
321 <goal>copy-resources</goal>
324 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
328 ../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target
330 <filtering>false</filtering>
332 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar
342 <groupId>org.codehaus.mojo</groupId>
343 <artifactId>wagon-maven-plugin</artifactId>
344 <version>2.0.0</version>
347 <id>download-gecko</id>
348 <phase>validate</phase>
350 <goal>download-single</goal>
353 <url>https://github.com</url>
355 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
357 <toDir>${project.build.directory}/gecko</toDir>
363 <groupId>org.apache.maven.plugins</groupId>
364 <artifactId>maven-antrun-plugin</artifactId>
365 <version>${maven-antrun-plugin.version}</version>
368 <id>set-folder-permission</id>
369 <phase>pre-integration-test</phase>
372 <mkdir dir="/tmp/sdc-integration-tests"/>
373 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
374 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
375 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation"
386 <phase>pre-integration-test</phase>
390 src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
391 compression="gzip" dest="${project.build.directory}/gecko/"/>
392 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir"
403 <groupId>org.codehaus.mojo</groupId>
404 <artifactId>build-helper-maven-plugin</artifactId>
407 <id>reserve-port-for-tests</id>
408 <phase>validate</phase>
410 <goal>reserve-network-port</goal>
414 <portName>sdc.it.docker.cassandra.port</portName>
421 <groupId>io.fabric8</groupId>
422 <artifactId>docker-maven-plugin</artifactId>
425 <groupId>org.apache.httpcomponents</groupId>
426 <artifactId>httpclient</artifactId>
427 <version>${httpclient.version}</version>
431 <verbose>${verbose}</verbose>
432 <apiVersion>${docker.api.version}</apiVersion>
433 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
436 <name>onap/sdc-cassandra:${it.docker.version}</name>
437 <alias>sdc-cassandra</alias>
440 <RELEASE>${project.version}</RELEASE>
441 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
442 <ENVNAME>${it.env.name}</ENVNAME>
443 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
444 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
446 <hostname>sdc-cs</hostname>
449 <volume>${it.chef.config}:/root/chef-solo/environments
476 <port>9042:9042</port>
480 <name>sdc-network</name>
481 <alias>sdc-cs</alias>
486 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
487 <alias>sdc-cassandra-init</alias>
490 <container>sdc-cassandra</container>
493 <RELEASE>${project.version}</RELEASE>
494 <SDC_USER>${it.sdc.user}</SDC_USER>
495 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
496 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
497 <ENVNAME>${it.env.name}</ENVNAME>
499 <hostname>sdc-cs-init</hostname>
502 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
509 <log>SdcSchemaFileImport successfully completed</log>
513 <name>sdc-network</name>
514 <alias>sdc-cs-init</alias>
519 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
520 <alias>sdc-cassandra-onboard-init</alias>
523 <container>sdc-cassandra</container>
526 <RELEASE>${project.version}</RELEASE>
527 <SDC_USER>${it.sdc.user}</SDC_USER>
528 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
529 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
530 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
531 <ENVNAME>${it.env.name}</ENVNAME>
532 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
534 <hostname>sdc-cs-onboard-init</hostname>
537 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
543 <log>Initializing onboard schemas</log>
547 <name>sdc-network</name>
548 <alias>sdc-cs-onboard-init</alias>
553 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
554 <alias>sdc-onboard-backend</alias>
557 <container>sdc-cassandra-onboard-init</container>
560 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
561 </cassandra_ssl_enabled>
562 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
563 <SDC_USER>${it.sdc.user}</SDC_USER>
564 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
565 <ENVNAME>${it.env.name}</ENVNAME>
566 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
568 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001
572 <hostname>sdc-onboard-BE</hostname>
575 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
576 <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/app/jetty/onap/cert
578 <volume>${it.shared.volume}:/app/jetty/logs</volume>
584 <host>sdc-onboard-BE</host>
594 <port>8445:8445</port>
595 <port>8081:8081</port>
596 <port>4001:4001</port>
600 <name>sdc-network</name>
601 <alias>sdc-onboard-BE</alias>
606 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
607 <alias>sdc-backend</alias>
610 <container>sdc-cassandra-init</container>
613 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
614 </cassandra_ssl_enabled>
615 <ENVNAME>${it.env.name}</ENVNAME>
617 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
620 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
621 <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
623 <hostname>sdc-BE</hostname>
626 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
627 <volume>${it.shared.volume}:/app/jetty/logs</volume>
629 ${project.basedir}/src/test/resources/cert/catalog-be:/app/jetty/onap/cert
646 <port>8443:8443</port>
647 <port>8080:8080</port>
648 <port>4000:4000</port>
652 <name>sdc-network</name>
653 <alias>sdc-BE</alias>
658 <name>onap/sdc-backend-init:${it.docker.version}</name>
659 <alias>sdc-backend-init</alias>
662 <container>sdc-backend</container>
665 <ENVNAME>${it.env.name}</ENVNAME>
667 <hostname>sdc-BE-init</hostname>
671 ${it.chef.config}:/home/onap/chef-solo/environments
673 <volume>${it.shared.volume}:/home/onap/logs</volume>
678 <log>Chef Client finished</log>
682 <name>sdc-network</name>
683 <alias>sdc-BE-init</alias>
688 <name>onap/sdc-frontend:${it.docker.version}</name>
689 <alias>sdc-frontend</alias>
692 <ENVNAME>${it.env.name}</ENVNAME>
694 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
698 <hostname>sdc-FE</hostname>
701 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
702 <volume>${it.shared.volume}:/app/jetty/logs</volume>
704 ${it.chef.config}/plugins-configuration.yaml:/app/jetty/config/catalog-fe/plugins-configuration.yaml
722 <port>9443:9443</port>
723 <port>8181:8181</port>
724 <port>6000:6000</port>
728 <name>sdc-network</name>
729 <alias>sdc-FE</alias>
734 <name>onap/sdc-simulator:${it.docker.version}</name>
735 <alias>sdc-simulator</alias>
738 <container>sdc-frontend</container>
741 <!--<FE_URL>${it.env.name}</FE_URL>-->
742 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
743 <ENVNAME>${it.env.name}</ENVNAME>
745 <hostname>sdc-sim</hostname>
748 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
749 <volume>${it.shared.volume}:/app/jetty/logs</volume>
764 <!-- http://localhost:8285/login to access SDC -->
765 <port>8285:8080</port>
766 <port>8286:8443</port>
770 <name>sdc-network</name>
771 <alias>sdc-sim</alias>
777 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
778 <alias>firefox-standalone</alias>
780 <hostname>firefox-standalone</hostname>
784 <host>firefox-standalone</host>
787 <!-- Selenium remote automation port -->
789 <!--<port>5900</port>-->
790 <!-- VNC port for viewing the browser result -->
791 <!-- password to access is "secret" -->
796 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
797 <!--<START_XVFB>false</START_XVFB>-->
798 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
799 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
802 <port>4444:4444</port>
803 <!--<port>5900:5900</port>-->
807 <name>sdc-network</name>
808 <alias>firefox-standalone</alias>
813 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
815 <volume>/dev/shm:/dev/shm</volume>
821 <name>onap/org.onap.sdc.sdc-helm-validator:${it.helm-validator.version}</name>
822 <alias>helm-validator</alias>
824 <skip>${it.helm-validator.disabled}</skip>
825 <hostname>helm-validator</hostname>
829 <host>helm-validator</host>
837 <port>8085:8080</port>
841 <name>sdc-network</name>
842 <alias>helm-validator</alias>
850 <id>docker-start-for-it</id>
851 <phase>pre-integration-test</phase>
857 <id>docker-stop-for-it</id>
858 <phase>post-integration-test</phase>
867 <groupId>org.apache.maven.plugins</groupId>
868 <artifactId>maven-surefire-plugin</artifactId>
875 <groupId>org.apache.maven.plugins</groupId>
876 <artifactId>maven-failsafe-plugin</artifactId>
878 <forkCount>1</forkCount>
879 <reuseForks>true</reuseForks>
882 <name>testng.dtd.http</name>
887 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
888 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
889 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
890 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
891 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
892 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
893 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
894 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
895 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
896 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
897 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
898 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
899 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
900 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
901 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
902 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
903 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
904 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
905 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
906 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
907 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
908 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
909 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
917 <id>all-for-integration-tests-only</id>
919 <surefire.skip.tests>true</surefire.skip.tests>
920 <skipTest>false</skipTest>
924 <id>integration-tests-with-helm-validator</id>
926 <it.helm-validator.disabled>false</it.helm-validator.disabled>
931 <groupId>org.apache.maven.plugins</groupId>
932 <artifactId>maven-failsafe-plugin</artifactId>
934 <forkCount>1</forkCount>
935 <reuseForks>true</reuseForks>
938 <name>testng.dtd.http</name>
943 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
944 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
945 <file>src/test/resources/ci/testSuites/backend/helmValidatorTests.xml</file>
946 <file>src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml</file>