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>
133 <groupId>org.janusgraph</groupId>
134 <artifactId>janusgraph-core</artifactId>
135 <version>${janusgraph.version}</version>
139 <artifactId>gremlin-groovy</artifactId>
140 <groupId>org.apache.tinkerpop</groupId>
143 <artifactId>slf4j-log4j12</artifactId>
144 <groupId>org.slf4j</groupId>
147 <artifactId>commons-collections</artifactId>
148 <groupId>commons-collections</groupId>
151 <artifactId>groovy</artifactId>
152 <groupId>org.codehaus.groovy</groupId>
155 <groupId>org.apache.thrift</groupId>
156 <artifactId>libthrift</artifactId>
159 <groupId>org.apache.commons</groupId>
160 <artifactId>commons-text</artifactId>
163 <groupId>commons-codec</groupId>
164 <artifactId>commons-codec</artifactId>
167 <groupId>dom4j</groupId>
168 <artifactId>dom4j</artifactId>
171 <groupId>org.slf4j</groupId>
172 <artifactId>jcl-over-slf4j</artifactId>
177 <groupId>org.assertj</groupId>
178 <artifactId>assertj-core</artifactId>
179 <version>${assertj.version}</version>
183 <groupId>org.apache.commons</groupId>
184 <artifactId>commons-text</artifactId>
185 <version>${apache-commons-text.version}</version>
189 <groupId>com.clearspring.analytics</groupId>
190 <artifactId>stream</artifactId>
191 <version>${clearspring.version}</version>
195 <groupId>org.apache.httpcomponents</groupId>
196 <artifactId>httpclient</artifactId>
197 <version>${httpclient.version}</version>
201 <groupId>commons-codec</groupId>
202 <artifactId>commons-codec</artifactId>
205 <groupId>org.apache.httpcomponents</groupId>
206 <artifactId>httpcore</artifactId>
211 <groupId>org.apache.httpcomponents</groupId>
212 <artifactId>httpcore</artifactId>
213 <version>${httpcore.version}</version>
217 <groupId>com.fasterxml.jackson.core</groupId>
218 <artifactId>jackson-core</artifactId>
219 <version>${jackson.version}</version>
223 <groupId>org.codehaus.jackson</groupId>
224 <artifactId>jackson-mapper-asl</artifactId>
225 <version>1.9.2</version>
229 <groupId>com.fasterxml.jackson.core</groupId>
230 <artifactId>jackson-databind</artifactId>
231 <version>${jackson.version}</version>
235 <groupId>com.fasterxml.jackson.core</groupId>
236 <artifactId>jackson-core</artifactId>
242 <groupId>org.onap.sdc.sdc-tosca</groupId>
243 <artifactId>sdc-tosca</artifactId>
244 <version>${sdc-tosca-parser.version}</version>
247 <!--FOR the Frontend -->
249 <groupId>org.seleniumhq.selenium</groupId>
250 <artifactId>selenium-java</artifactId>
252 <version>${selenium.version}</version>
255 <groupId>org.seleniumhq.selenium</groupId>
256 <artifactId>selenium-server</artifactId>
257 <version>${selenium.version}</version>
261 <groupId>org.seleniumhq.selenium</groupId>
262 <artifactId>selenium-firefox-driver</artifactId>
263 <version>${selenium.version}</version>
268 <groupId>net.lightbody.bmp</groupId>
269 <!-- To use the legacy, Jetty-based implementation, change the artifactId
270 to browsermob-core -->
271 <artifactId>browsermob-core</artifactId>
272 <version>2.1.4</version>
276 <groupId>com.fasterxml.jackson.core</groupId>
277 <artifactId>jackson-core</artifactId>
280 <groupId>org.slf4j</groupId>
281 <artifactId>jcl-over-slf4j</artifactId>
286 <groupId>com.paulhammant</groupId>
287 <artifactId>ngwebdriver</artifactId>
288 <version>0.9.7</version>
292 <groupId>com.github.markusbernhardt</groupId>
293 <artifactId>proxy-vole</artifactId>
294 <version>1.0.2</version>
298 <groupId>net.java.dev.jna</groupId>
299 <artifactId>jna</artifactId>
302 <groupId>net.java.dev.jna</groupId>
303 <artifactId>jna-platform</artifactId>
308 <groupId>commons-net</groupId>
309 <artifactId>commons-net</artifactId>
310 <version>3.3</version>
314 <groupId>org.apache.logging.log4j</groupId>
315 <artifactId>log4j-api</artifactId>
316 <version>2.13.1</version>
320 <groupId>org.springframework</groupId>
321 <artifactId>spring-core</artifactId>
322 <version>${spring.version}</version>
326 <groupId>org.onap.portal.sdk</groupId>
327 <artifactId>epsdk-fw</artifactId>
328 <version>${ecomp.version}</version>
335 <!-- Section for Integration tests -->
337 <artifactId>maven-resources-plugin</artifactId>
340 <id>copy-chef-resources</id>
341 <phase>pre-integration-test</phase>
343 <goal>copy-resources</goal>
346 <outputDirectory>${it.chef.config}</outputDirectory>
349 <directory>environments</directory>
350 <filtering>true</filtering>
352 <include>integration-test.json</include>
353 <include>plugins-configuration.yaml</include>
360 <id>copy-sdc-be-plugins</id>
361 <phase>pre-integration-test</phase>
363 <goal>copy-resources</goal>
366 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
370 ../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target
372 <filtering>false</filtering>
374 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar
384 <groupId>org.codehaus.mojo</groupId>
385 <artifactId>wagon-maven-plugin</artifactId>
386 <version>2.0.0</version>
389 <id>download-gecko</id>
390 <phase>validate</phase>
392 <goal>download-single</goal>
395 <url>https://github.com</url>
397 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
399 <toDir>${project.build.directory}/gecko</toDir>
405 <groupId>org.apache.maven.plugins</groupId>
406 <artifactId>maven-antrun-plugin</artifactId>
407 <version>${maven-antrun-plugin.version}</version>
410 <id>set-folder-permission</id>
411 <phase>pre-integration-test</phase>
414 <mkdir dir="/tmp/sdc-integration-tests"/>
415 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
416 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
417 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation"
428 <phase>pre-integration-test</phase>
432 src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
433 compression="gzip" dest="${project.build.directory}/gecko/"/>
434 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir"
445 <groupId>org.codehaus.mojo</groupId>
446 <artifactId>build-helper-maven-plugin</artifactId>
449 <id>reserve-port-for-tests</id>
450 <phase>validate</phase>
452 <goal>reserve-network-port</goal>
456 <portName>sdc.it.docker.cassandra.port</portName>
463 <groupId>io.fabric8</groupId>
464 <artifactId>docker-maven-plugin</artifactId>
467 <groupId>org.apache.httpcomponents</groupId>
468 <artifactId>httpclient</artifactId>
469 <version>${httpclient.version}</version>
473 <verbose>${verbose}</verbose>
474 <apiVersion>${docker.api.version}</apiVersion>
475 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
476 <startParallel>true</startParallel>
479 <name>${docker.namespace}/sdc-cassandra:${it.docker.version}</name>
480 <alias>sdc-cassandra</alias>
483 <RELEASE>${project.version}</RELEASE>
484 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
485 <ENVNAME>${it.env.name}</ENVNAME>
486 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
487 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
489 <hostname>sdc-cs</hostname>
492 <volume>${it.chef.config}:/root/chef-solo/environments
519 <port>9042:9042</port>
523 <name>sdc-network</name>
524 <alias>sdc-cs</alias>
529 <name>${docker.namespace}/sdc-cassandra-init:${it.docker.version}</name>
530 <alias>sdc-cassandra-init</alias>
533 <container>sdc-cassandra</container>
536 <RELEASE>${project.version}</RELEASE>
537 <SDC_USER>${it.sdc.user}</SDC_USER>
538 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
539 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
540 <ENVNAME>${it.env.name}</ENVNAME>
542 <hostname>sdc-cs-init</hostname>
545 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
552 <log>SdcSchemaFileImport successfully completed</log>
556 <name>sdc-network</name>
557 <alias>sdc-cs-init</alias>
562 <name>${docker.namespace}/sdc-onboard-cassandra-init:${it.docker.version}</name>
563 <alias>sdc-cassandra-onboard-init</alias>
566 <container>sdc-cassandra-init</container>
569 <RELEASE>${project.version}</RELEASE>
570 <SDC_USER>${it.sdc.user}</SDC_USER>
571 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
572 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
573 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
574 <ENVNAME>${it.env.name}</ENVNAME>
575 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
577 <hostname>sdc-cs-onboard-init</hostname>
580 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
586 <log>Onboarding init was successful</log>
590 <name>sdc-network</name>
591 <alias>sdc-cs-onboard-init</alias>
596 <name>${docker.namespace}/sdc-onboard-backend:${it.docker.version}</name>
597 <alias>sdc-onboard-backend</alias>
600 <container>sdc-cassandra-onboard-init</container>
603 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
604 </cassandra_ssl_enabled>
605 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
606 <SDC_USER>${it.sdc.user}</SDC_USER>
607 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
608 <ENVNAME>${it.env.name}</ENVNAME>
609 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
611 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001
615 <hostname>sdc-onboard-BE</hostname>
618 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
619 <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/app/jetty/onap/cert
621 <volume>${it.shared.volume}:/app/jetty/logs</volume>
627 <host>sdc-onboard-BE</host>
637 <port>8445:8445</port>
638 <port>8081:8081</port>
639 <port>4001:4001</port>
643 <name>sdc-network</name>
644 <alias>sdc-onboard-BE</alias>
649 <name>${docker.namespace}/sdc-backend-all-plugins:${it.docker.version}</name>
650 <alias>sdc-backend</alias>
653 <container>sdc-cassandra-init</container>
656 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
657 </cassandra_ssl_enabled>
658 <ENVNAME>${it.env.name}</ENVNAME>
660 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
663 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
664 <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
666 <hostname>sdc-BE</hostname>
669 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
670 <volume>${it.shared.volume}:/app/jetty/logs</volume>
672 ${project.basedir}/src/test/resources/cert/catalog-be:/app/jetty/onap/cert
689 <port>8443:8443</port>
690 <port>8080:8080</port>
691 <port>4000:4000</port>
695 <name>sdc-network</name>
696 <alias>sdc-BE</alias>
701 <name>${docker.namespace}/sdc-backend-init:${it.docker.version}</name>
702 <alias>sdc-backend-init</alias>
705 <container>sdc-backend</container>
708 <ENVNAME>${it.env.name}</ENVNAME>
710 <hostname>sdc-BE-init</hostname>
714 ${it.chef.config}:/home/onap/chef-solo/environments
716 <volume>${it.shared.volume}:/home/onap/logs</volume>
721 <log>Chef Client finished</log>
725 <name>sdc-network</name>
726 <alias>sdc-BE-init</alias>
731 <name>${docker.namespace}/sdc-frontend:${it.docker.version}</name>
732 <alias>sdc-frontend</alias>
735 <ENVNAME>${it.env.name}</ENVNAME>
737 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
741 <hostname>sdc-FE</hostname>
744 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
745 <volume>${it.shared.volume}:/app/jetty/logs</volume>
747 ${it.chef.config}/plugins-configuration.yaml:/app/jetty/config/catalog-fe/plugins-configuration.yaml
765 <port>9443:9443</port>
766 <port>8181:8181</port>
767 <port>6000:6000</port>
771 <name>sdc-network</name>
772 <alias>sdc-FE</alias>
777 <name>${docker.namespace}/sdc-simulator:${it.docker.version}</name>
778 <alias>sdc-simulator</alias>
781 <!--<FE_URL>${it.env.name}</FE_URL>-->
782 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
783 <ENVNAME>${it.env.name}</ENVNAME>
785 <hostname>sdc-sim</hostname>
788 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
789 <volume>${it.shared.volume}:/app/jetty/logs</volume>
805 <!-- http://localhost:8285/login to access SDC -->
806 <port>8285:8080</port>
807 <port>8286:8443</port>
808 <port>5000:5000</port>
812 <name>sdc-network</name>
813 <alias>sdc-sim</alias>
819 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
820 <alias>firefox-standalone</alias>
822 <hostname>firefox-standalone</hostname>
826 <host>firefox-standalone</host>
829 <!-- Selenium remote automation port -->
831 <!--<port>5900</port>-->
832 <!-- VNC port for viewing the browser result -->
833 <!-- password to access is "secret" -->
838 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
839 <!--<START_XVFB>false</START_XVFB>-->
840 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
841 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
844 <port>4444:4444</port>
845 <!--<port>5900:5900</port>-->
849 <name>sdc-network</name>
850 <alias>firefox-standalone</alias>
855 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
857 <volume>/dev/shm:/dev/shm</volume>
863 <name>${docker.namespace}/org.onap.sdc.sdc-helm-validator:${it.helm-validator.version}</name>
864 <alias>helm-validator</alias>
866 <skip>${it.helm-validator.disabled}</skip>
867 <hostname>helm-validator</hostname>
871 <host>helm-validator</host>
879 <port>8085:8080</port>
883 <name>sdc-network</name>
884 <alias>helm-validator</alias>
892 <id>docker-start-for-it</id>
893 <phase>pre-integration-test</phase>
899 <id>docker-stop-for-it</id>
900 <phase>post-integration-test</phase>
909 <groupId>org.apache.maven.plugins</groupId>
910 <artifactId>maven-surefire-plugin</artifactId>
917 <groupId>org.apache.maven.plugins</groupId>
918 <artifactId>maven-failsafe-plugin</artifactId>
920 <forkCount>1</forkCount>
921 <reuseForks>true</reuseForks>
924 <name>testng.dtd.http</name>
929 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
930 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
931 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
932 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
933 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
934 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
935 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
936 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
937 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
938 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
939 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
940 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
941 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
942 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
943 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
944 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
945 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
946 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
947 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
948 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
949 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
950 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
951 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
959 <id>all-for-integration-tests-only</id>
961 <surefire.skip.tests>true</surefire.skip.tests>
962 <skipTest>false</skipTest>
966 <id>integration-tests-with-helm-validator</id>
968 <it.helm-validator.disabled>false</it.helm-validator.disabled>
973 <groupId>org.apache.maven.plugins</groupId>
974 <artifactId>maven-failsafe-plugin</artifactId>
976 <forkCount>1</forkCount>
977 <reuseForks>true</reuseForks>
980 <name>testng.dtd.http</name>
985 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
986 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
987 <file>src/test/resources/ci/testSuites/backend/helmValidatorTests.xml</file>
988 <file>src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml</file>