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>
161 <groupId>org.assertj</groupId>
162 <artifactId>assertj-core</artifactId>
163 <version>${assertj.version}</version>
167 <groupId>org.apache.commons</groupId>
168 <artifactId>commons-text</artifactId>
169 <version>${apache-commons-text.version}</version>
173 <groupId>com.clearspring.analytics</groupId>
174 <artifactId>stream</artifactId>
175 <version>${clearspring.version}</version>
179 <groupId>org.apache.httpcomponents</groupId>
180 <artifactId>httpclient</artifactId>
181 <version>${httpclient.version}</version>
185 <groupId>org.apache.httpcomponents</groupId>
186 <artifactId>httpcore</artifactId>
187 <version>${httpcore.version}</version>
191 <groupId>com.fasterxml.jackson.core</groupId>
192 <artifactId>jackson-core</artifactId>
193 <version>${jackson.version}</version>
197 <groupId>org.codehaus.jackson</groupId>
198 <artifactId>jackson-mapper-asl</artifactId>
199 <version>1.9.2</version>
203 <groupId>com.fasterxml.jackson.core</groupId>
204 <artifactId>jackson-databind</artifactId>
205 <version>${jackson.version}</version>
209 <groupId>com.fasterxml.jackson.core</groupId>
210 <artifactId>jackson-core</artifactId>
216 <groupId>org.onap.sdc.sdc-tosca</groupId>
217 <artifactId>sdc-tosca</artifactId>
218 <version>${sdc-tosca-parser.version}</version>
221 <!--FOR the Frontend -->
223 <groupId>org.seleniumhq.selenium</groupId>
224 <artifactId>selenium-java</artifactId>
226 <version>${selenium.version}</version>
229 <groupId>org.seleniumhq.selenium</groupId>
230 <artifactId>selenium-server</artifactId>
231 <version>${selenium.version}</version>
235 <groupId>org.seleniumhq.selenium</groupId>
236 <artifactId>selenium-firefox-driver</artifactId>
237 <version>${selenium.version}</version>
242 <groupId>net.lightbody.bmp</groupId>
243 <!-- To use the legacy, Jetty-based implementation, change the artifactId
244 to browsermob-core -->
245 <artifactId>browsermob-core</artifactId>
246 <version>2.1.4</version>
250 <groupId>com.fasterxml.jackson.core</groupId>
251 <artifactId>jackson-core</artifactId>
256 <groupId>com.paulhammant</groupId>
257 <artifactId>ngwebdriver</artifactId>
258 <version>0.9.7</version>
262 <groupId>com.github.markusbernhardt</groupId>
263 <artifactId>proxy-vole</artifactId>
264 <version>1.0.2</version>
268 <groupId>commons-net</groupId>
269 <artifactId>commons-net</artifactId>
270 <version>3.3</version>
274 <groupId>org.apache.logging.log4j</groupId>
275 <artifactId>log4j-api</artifactId>
276 <version>2.13.1</version>
283 <!-- Section for Integration tests -->
285 <artifactId>maven-resources-plugin</artifactId>
288 <id>copy-chef-resources</id>
289 <phase>pre-integration-test</phase>
291 <goal>copy-resources</goal>
294 <outputDirectory>${it.chef.config}</outputDirectory>
297 <directory>environments</directory>
298 <filtering>true</filtering>
300 <include>integration-test.json</include>
301 <include>plugins-configuration.yaml</include>
308 <id>copy-sdc-be-plugins</id>
309 <phase>pre-integration-test</phase>
311 <goal>copy-resources</goal>
314 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
318 ../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target
320 <filtering>false</filtering>
322 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar
332 <groupId>org.codehaus.mojo</groupId>
333 <artifactId>wagon-maven-plugin</artifactId>
334 <version>2.0.0</version>
337 <id>download-gecko</id>
338 <phase>validate</phase>
340 <goal>download-single</goal>
343 <url>https://github.com</url>
345 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
347 <toDir>${project.build.directory}/gecko</toDir>
353 <groupId>org.apache.maven.plugins</groupId>
354 <artifactId>maven-antrun-plugin</artifactId>
355 <version>${maven-antrun-plugin.version}</version>
358 <id>set-folder-permission</id>
359 <phase>pre-integration-test</phase>
362 <mkdir dir="/tmp/sdc-integration-tests"/>
363 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
364 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
365 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation"
376 <phase>pre-integration-test</phase>
380 src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
381 compression="gzip" dest="${project.build.directory}/gecko/"/>
382 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir"
393 <groupId>org.codehaus.mojo</groupId>
394 <artifactId>build-helper-maven-plugin</artifactId>
397 <id>reserve-port-for-tests</id>
398 <phase>validate</phase>
400 <goal>reserve-network-port</goal>
404 <portName>sdc.it.docker.cassandra.port</portName>
411 <groupId>io.fabric8</groupId>
412 <artifactId>docker-maven-plugin</artifactId>
415 <groupId>org.apache.httpcomponents</groupId>
416 <artifactId>httpclient</artifactId>
417 <version>4.5.5</version>
421 <verbose>${verbose}</verbose>
422 <apiVersion>${docker.api.version}</apiVersion>
423 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
426 <name>onap/sdc-cassandra:${it.docker.version}</name>
427 <alias>sdc-cassandra</alias>
430 <RELEASE>${project.version}</RELEASE>
431 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
432 <ENVNAME>${it.env.name}</ENVNAME>
433 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
434 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
436 <hostname>sdc-cs</hostname>
439 <volume>${it.chef.config}:/root/chef-solo/environments
466 <port>9042:9042</port>
470 <name>sdc-network</name>
471 <alias>sdc-cs</alias>
476 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
477 <alias>sdc-cassandra-init</alias>
480 <container>sdc-cassandra</container>
483 <RELEASE>${project.version}</RELEASE>
484 <SDC_USER>${it.sdc.user}</SDC_USER>
485 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
486 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
487 <ENVNAME>${it.env.name}</ENVNAME>
489 <hostname>sdc-cs-init</hostname>
492 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
499 <log>SdcSchemaFileImport successfully completed</log>
503 <name>sdc-network</name>
504 <alias>sdc-cs-init</alias>
509 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
510 <alias>sdc-cassandra-onboard-init</alias>
513 <container>sdc-cassandra</container>
516 <RELEASE>${project.version}</RELEASE>
517 <SDC_USER>${it.sdc.user}</SDC_USER>
518 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
519 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
520 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
521 <ENVNAME>${it.env.name}</ENVNAME>
522 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
524 <hostname>sdc-cs-onboard-init</hostname>
527 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
533 <log>Initializing onboard schemas</log>
537 <name>sdc-network</name>
538 <alias>sdc-cs-onboard-init</alias>
543 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
544 <alias>sdc-onboard-backend</alias>
547 <container>sdc-cassandra-onboard-init</container>
550 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
551 </cassandra_ssl_enabled>
552 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
553 <SDC_USER>${it.sdc.user}</SDC_USER>
554 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
555 <ENVNAME>${it.env.name}</ENVNAME>
556 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
558 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001
562 <hostname>sdc-onboard-BE</hostname>
565 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
566 <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/app/jetty/onap/cert
568 <volume>${it.shared.volume}:/app/jetty/logs</volume>
574 <host>sdc-onboard-BE</host>
584 <port>8445:8445</port>
585 <port>8081:8081</port>
586 <port>4001:4001</port>
590 <name>sdc-network</name>
591 <alias>sdc-onboard-BE</alias>
596 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
597 <alias>sdc-backend</alias>
600 <container>sdc-cassandra-init</container>
603 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
604 </cassandra_ssl_enabled>
605 <ENVNAME>${it.env.name}</ENVNAME>
607 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
610 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
611 <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
613 <hostname>sdc-BE</hostname>
616 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
617 <volume>${it.shared.volume}:/app/jetty/logs</volume>
619 ${project.basedir}/src/test/resources/cert/catalog-be:/app/jetty/onap/cert
636 <port>8443:8443</port>
637 <port>8080:8080</port>
638 <port>4000:4000</port>
642 <name>sdc-network</name>
643 <alias>sdc-BE</alias>
648 <name>onap/sdc-backend-init:${it.docker.version}</name>
649 <alias>sdc-backend-init</alias>
652 <container>sdc-backend</container>
655 <ENVNAME>${it.env.name}</ENVNAME>
657 <hostname>sdc-BE-init</hostname>
661 ${it.chef.config}:/home/onap/chef-solo/environments
663 <volume>${it.shared.volume}:/home/onap/logs</volume>
668 <log>Chef Client finished</log>
672 <name>sdc-network</name>
673 <alias>sdc-BE-init</alias>
678 <name>onap/sdc-frontend:${it.docker.version}</name>
679 <alias>sdc-frontend</alias>
682 <ENVNAME>${it.env.name}</ENVNAME>
684 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
688 <hostname>sdc-FE</hostname>
691 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
692 <volume>${it.shared.volume}:/app/jetty/logs</volume>
694 ${it.chef.config}/plugins-configuration.yaml:/app/jetty/config/catalog-fe/plugins-configuration.yaml
712 <port>9443:9443</port>
713 <port>8181:8181</port>
714 <port>6000:6000</port>
718 <name>sdc-network</name>
719 <alias>sdc-FE</alias>
724 <name>onap/sdc-simulator:${it.docker.version}</name>
725 <alias>sdc-simulator</alias>
728 <container>sdc-frontend</container>
731 <!--<FE_URL>${it.env.name}</FE_URL>-->
732 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
733 <ENVNAME>${it.env.name}</ENVNAME>
735 <hostname>sdc-sim</hostname>
738 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
739 <volume>${it.shared.volume}:/app/jetty/logs</volume>
754 <!-- http://localhost:8285/login to access SDC -->
755 <port>8285:8080</port>
756 <port>8286:8443</port>
760 <name>sdc-network</name>
761 <alias>sdc-sim</alias>
767 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
768 <alias>firefox-standalone</alias>
770 <hostname>firefox-standalone</hostname>
774 <host>firefox-standalone</host>
777 <!-- Selenium remote automation port -->
779 <!--<port>5900</port>-->
780 <!-- VNC port for viewing the browser result -->
781 <!-- password to access is "secret" -->
786 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
787 <!--<START_XVFB>false</START_XVFB>-->
788 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
789 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
792 <port>4444:4444</port>
793 <!--<port>5900:5900</port>-->
797 <name>sdc-network</name>
798 <alias>firefox-standalone</alias>
803 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
805 <volume>/dev/shm:/dev/shm</volume>
811 <name>onap/org.onap.sdc.sdc-helm-validator:${it.helm-validator.version}</name>
812 <alias>helm-validator</alias>
814 <skip>${it.helm-validator.disabled}</skip>
815 <hostname>helm-validator</hostname>
819 <host>helm-validator</host>
827 <port>8085:8080</port>
831 <name>sdc-network</name>
832 <alias>helm-validator</alias>
840 <id>docker-start-for-it</id>
841 <phase>pre-integration-test</phase>
847 <id>docker-stop-for-it</id>
848 <phase>post-integration-test</phase>
857 <groupId>org.apache.maven.plugins</groupId>
858 <artifactId>maven-surefire-plugin</artifactId>
865 <groupId>org.apache.maven.plugins</groupId>
866 <artifactId>maven-failsafe-plugin</artifactId>
868 <forkCount>1</forkCount>
869 <reuseForks>true</reuseForks>
872 <name>testng.dtd.http</name>
877 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
878 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
879 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
880 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
881 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
882 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
883 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
884 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
885 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
886 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
887 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
888 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
889 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
890 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
891 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
892 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
893 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
894 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
895 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
896 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
897 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
898 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
899 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
907 <id>all-for-integration-tests-only</id>
909 <surefire.skip.tests>true</surefire.skip.tests>
910 <skipTest>false</skipTest>
914 <id>integration-tests-with-helm-validator</id>
916 <it.helm-validator.disabled>false</it.helm-validator.disabled>
921 <groupId>org.apache.maven.plugins</groupId>
922 <artifactId>maven-failsafe-plugin</artifactId>
924 <forkCount>1</forkCount>
925 <reuseForks>true</reuseForks>
928 <name>testng.dtd.http</name>
933 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
934 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
935 <file>src/test/resources/ci/testSuites/backend/helmValidatorTests.xml</file>
936 <file>src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml</file>