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>
56 <sdc-tosca-parser.version>1.6.5</sdc-tosca-parser.version>
61 <groupId>ch.qos.logback</groupId>
62 <artifactId>logback-classic</artifactId>
63 <version>${logback.version}</version>
67 <groupId>org.yaml</groupId>
68 <artifactId>snakeyaml</artifactId>
69 <version>${snakeyaml.version}</version>
73 <groupId>org.hamcrest</groupId>
74 <artifactId>hamcrest</artifactId>
75 <version>${hamcrest.version}</version>
79 <groupId>junit</groupId>
80 <artifactId>junit</artifactId>
81 <version>${junit.version}</version>
85 <groupId>org.hamcrest</groupId>
86 <artifactId>hamcrest-core</artifactId>
91 <groupId>org.testng</groupId>
92 <artifactId>testng</artifactId>
93 <version>${testng.version}</version>
97 <groupId>com.google.code.gson</groupId>
98 <artifactId>gson</artifactId>
99 <version>${gson.version}</version>
103 <groupId>org.openecomp.sdc.be</groupId>
104 <artifactId>catalog-model</artifactId>
105 <version>${project.version}</version>
109 <groupId>org.openecomp.sdc.be</groupId>
110 <artifactId>catalog-dao</artifactId>
111 <version>${project.version}</version>
115 <groupId>org.openecomp.sdc</groupId>
116 <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
117 <version>${project.version}</version>
121 <groupId>com.aventstack</groupId>
122 <artifactId>extentreports</artifactId>
123 <version>3.0.6</version>
127 <groupId>org.janusgraph</groupId>
128 <artifactId>janusgraph-core</artifactId>
129 <version>${janusgraph.version}</version>
133 <artifactId>gremlin-groovy</artifactId>
134 <groupId>org.apache.tinkerpop</groupId>
137 <artifactId>slf4j-log4j12</artifactId>
138 <groupId>org.slf4j</groupId>
141 <artifactId>commons-collections</artifactId>
142 <groupId>commons-collections</groupId>
145 <artifactId>groovy</artifactId>
146 <groupId>org.codehaus.groovy</groupId>
149 <groupId>org.apache.thrift</groupId>
150 <artifactId>libthrift</artifactId>
153 <groupId>org.apache.commons</groupId>
154 <artifactId>commons-text</artifactId>
159 <groupId>org.assertj</groupId>
160 <artifactId>assertj-core</artifactId>
161 <version>${assertj.version}</version>
165 <groupId>org.apache.commons</groupId>
166 <artifactId>commons-text</artifactId>
167 <version>${apache-commons-text.version}</version>
171 <groupId>com.clearspring.analytics</groupId>
172 <artifactId>stream</artifactId>
173 <version>${clearspring.version}</version>
177 <groupId>org.apache.httpcomponents</groupId>
178 <artifactId>httpclient</artifactId>
179 <version>${httpclient.version}</version>
183 <groupId>org.apache.httpcomponents</groupId>
184 <artifactId>httpcore</artifactId>
185 <version>${httpcore.version}</version>
189 <groupId>com.fasterxml.jackson.core</groupId>
190 <artifactId>jackson-core</artifactId>
191 <version>${jackson.version}</version>
195 <groupId>org.codehaus.jackson</groupId>
196 <artifactId>jackson-mapper-asl</artifactId>
197 <version>1.9.2</version>
201 <groupId>com.fasterxml.jackson.core</groupId>
202 <artifactId>jackson-databind</artifactId>
203 <version>${jackson.version}</version>
207 <groupId>com.fasterxml.jackson.core</groupId>
208 <artifactId>jackson-core</artifactId>
214 <groupId>org.onap.sdc.sdc-tosca</groupId>
215 <artifactId>sdc-tosca</artifactId>
216 <version>${sdc-tosca-parser.version}</version>
219 <!--FOR the Frontend -->
221 <groupId>org.seleniumhq.selenium</groupId>
222 <artifactId>selenium-java</artifactId>
224 <version>${selenium.version}</version>
227 <groupId>org.seleniumhq.selenium</groupId>
228 <artifactId>selenium-server</artifactId>
229 <version>${selenium.version}</version>
233 <groupId>org.seleniumhq.selenium</groupId>
234 <artifactId>selenium-firefox-driver</artifactId>
235 <version>${selenium.version}</version>
240 <groupId>net.lightbody.bmp</groupId>
241 <!-- To use the legacy, Jetty-based implementation, change the artifactId
242 to browsermob-core -->
243 <artifactId>browsermob-core</artifactId>
244 <version>2.1.4</version>
248 <groupId>com.fasterxml.jackson.core</groupId>
249 <artifactId>jackson-core</artifactId>
254 <groupId>com.paulhammant</groupId>
255 <artifactId>ngwebdriver</artifactId>
256 <version>0.9.7</version>
260 <groupId>com.github.markusbernhardt</groupId>
261 <artifactId>proxy-vole</artifactId>
262 <version>1.0.2</version>
266 <groupId>commons-net</groupId>
267 <artifactId>commons-net</artifactId>
268 <version>3.3</version>
272 <groupId>org.apache.logging.log4j</groupId>
273 <artifactId>log4j-api</artifactId>
274 <version>2.13.1</version>
281 <!-- Section for Integration tests -->
283 <artifactId>maven-resources-plugin</artifactId>
286 <id>copy-chef-resources</id>
287 <phase>pre-integration-test</phase>
289 <goal>copy-resources</goal>
292 <outputDirectory>${it.chef.config}</outputDirectory>
295 <directory>environments</directory>
296 <filtering>true</filtering>
298 <include>integration-test.json</include>
299 <include>plugins-configuration.yaml</include>
306 <id>copy-sdc-be-plugins</id>
307 <phase>pre-integration-test</phase>
309 <goal>copy-resources</goal>
312 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
316 ../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target
318 <filtering>false</filtering>
320 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar
330 <groupId>org.codehaus.mojo</groupId>
331 <artifactId>wagon-maven-plugin</artifactId>
332 <version>2.0.0</version>
335 <id>download-gecko</id>
336 <phase>validate</phase>
338 <goal>download-single</goal>
341 <url>https://github.com</url>
343 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
345 <toDir>${project.build.directory}/gecko</toDir>
351 <groupId>org.apache.maven.plugins</groupId>
352 <artifactId>maven-antrun-plugin</artifactId>
353 <version>${maven-antrun-plugin.version}</version>
356 <id>set-folder-permission</id>
357 <phase>pre-integration-test</phase>
360 <mkdir dir="/tmp/sdc-integration-tests"/>
361 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
362 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
363 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation"
374 <phase>pre-integration-test</phase>
378 src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
379 compression="gzip" dest="${project.build.directory}/gecko/"/>
380 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir"
391 <groupId>org.codehaus.mojo</groupId>
392 <artifactId>build-helper-maven-plugin</artifactId>
395 <id>reserve-port-for-tests</id>
396 <phase>validate</phase>
398 <goal>reserve-network-port</goal>
402 <portName>sdc.it.docker.cassandra.port</portName>
409 <groupId>io.fabric8</groupId>
410 <artifactId>docker-maven-plugin</artifactId>
413 <groupId>org.apache.httpcomponents</groupId>
414 <artifactId>httpclient</artifactId>
415 <version>4.5.5</version>
419 <verbose>${verbose}</verbose>
420 <apiVersion>${docker.api.version}</apiVersion>
421 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
424 <name>onap/sdc-cassandra:${it.docker.version}</name>
425 <alias>sdc-cassandra</alias>
428 <RELEASE>${project.version}</RELEASE>
429 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
430 <ENVNAME>${it.env.name}</ENVNAME>
431 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
432 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
434 <hostname>sdc-cs</hostname>
437 <volume>${it.chef.config}:/root/chef-solo/environments
464 <port>9042:9042</port>
468 <name>sdc-network</name>
469 <alias>sdc-cs</alias>
474 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
475 <alias>sdc-cassandra-init</alias>
478 <container>sdc-cassandra</container>
481 <RELEASE>${project.version}</RELEASE>
482 <SDC_USER>${it.sdc.user}</SDC_USER>
483 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
484 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
485 <ENVNAME>${it.env.name}</ENVNAME>
487 <hostname>sdc-cs-init</hostname>
490 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
497 <log>SdcSchemaFileImport successfully completed</log>
501 <name>sdc-network</name>
502 <alias>sdc-cs-init</alias>
507 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
508 <alias>sdc-cassandra-onboard-init</alias>
511 <container>sdc-cassandra</container>
514 <RELEASE>${project.version}</RELEASE>
515 <SDC_USER>${it.sdc.user}</SDC_USER>
516 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
517 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
518 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
519 <ENVNAME>${it.env.name}</ENVNAME>
520 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
522 <hostname>sdc-cs-onboard-init</hostname>
525 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
531 <log>Initializing onboard schemas</log>
535 <name>sdc-network</name>
536 <alias>sdc-cs-onboard-init</alias>
541 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
542 <alias>sdc-onboard-backend</alias>
545 <container>sdc-cassandra-onboard-init</container>
548 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
549 </cassandra_ssl_enabled>
550 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
551 <SDC_USER>${it.sdc.user}</SDC_USER>
552 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
553 <ENVNAME>${it.env.name}</ENVNAME>
554 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
556 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001
560 <hostname>sdc-onboard-BE</hostname>
563 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
564 <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/app/jetty/onap/cert
566 <volume>${it.shared.volume}:/app/jetty/logs</volume>
572 <host>sdc-onboard-BE</host>
582 <port>8445:8445</port>
583 <port>8081:8081</port>
584 <port>4001:4001</port>
588 <name>sdc-network</name>
589 <alias>sdc-onboard-BE</alias>
594 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
595 <alias>sdc-backend</alias>
598 <container>sdc-cassandra-init</container>
601 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
602 </cassandra_ssl_enabled>
603 <ENVNAME>${it.env.name}</ENVNAME>
605 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
608 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
609 <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
611 <hostname>sdc-BE</hostname>
614 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
615 <volume>${it.shared.volume}:/app/jetty/logs</volume>
617 ${project.basedir}/src/test/resources/cert/catalog-be:/app/jetty/onap/cert
634 <port>8443:8443</port>
635 <port>8080:8080</port>
636 <port>4000:4000</port>
640 <name>sdc-network</name>
641 <alias>sdc-BE</alias>
646 <name>onap/sdc-backend-init:${it.docker.version}</name>
647 <alias>sdc-backend-init</alias>
650 <container>sdc-backend</container>
653 <ENVNAME>${it.env.name}</ENVNAME>
655 <hostname>sdc-BE-init</hostname>
659 ${it.chef.config}:/home/onap/chef-solo/environments
661 <volume>${it.shared.volume}:/home/onap/logs</volume>
666 <log>Chef Client finished</log>
670 <name>sdc-network</name>
671 <alias>sdc-BE-init</alias>
676 <name>onap/sdc-frontend:${it.docker.version}</name>
677 <alias>sdc-frontend</alias>
680 <ENVNAME>${it.env.name}</ENVNAME>
682 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
686 <hostname>sdc-FE</hostname>
689 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
690 <volume>${it.shared.volume}:/app/jetty/logs</volume>
692 ${it.chef.config}/plugins-configuration.yaml:/app/jetty/config/catalog-fe/plugins-configuration.yaml
710 <port>9443:9443</port>
711 <port>8181:8181</port>
712 <port>6000:6000</port>
716 <name>sdc-network</name>
717 <alias>sdc-FE</alias>
722 <name>onap/sdc-simulator:${it.docker.version}</name>
723 <alias>sdc-simulator</alias>
726 <container>sdc-frontend</container>
729 <!--<FE_URL>${it.env.name}</FE_URL>-->
730 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
731 <ENVNAME>${it.env.name}</ENVNAME>
733 <hostname>sdc-sim</hostname>
736 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
737 <volume>${it.shared.volume}:/app/jetty/logs</volume>
752 <!-- http://localhost:8285/login to access SDC -->
753 <port>8285:8080</port>
754 <port>8286:8443</port>
758 <name>sdc-network</name>
759 <alias>sdc-sim</alias>
765 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
766 <alias>firefox-standalone</alias>
768 <hostname>firefox-standalone</hostname>
772 <host>firefox-standalone</host>
775 <!-- Selenium remote automation port -->
777 <!--<port>5900</port>-->
778 <!-- VNC port for viewing the browser result -->
779 <!-- password to access is "secret" -->
784 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
785 <!--<START_XVFB>false</START_XVFB>-->
786 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
787 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
790 <port>4444:4444</port>
791 <!--<port>5900:5900</port>-->
795 <name>sdc-network</name>
796 <alias>firefox-standalone</alias>
801 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
803 <volume>/dev/shm:/dev/shm</volume>
812 <id>docker-start-for-it</id>
813 <phase>pre-integration-test</phase>
819 <id>docker-stop-for-it</id>
820 <phase>post-integration-test</phase>
829 <groupId>org.apache.maven.plugins</groupId>
830 <artifactId>maven-surefire-plugin</artifactId>
837 <groupId>org.apache.maven.plugins</groupId>
838 <artifactId>maven-failsafe-plugin</artifactId>
840 <forkCount>1</forkCount>
841 <reuseForks>true</reuseForks>
844 <name>testng.dtd.http</name>
849 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
850 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
851 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
852 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
853 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
854 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
855 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
856 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
857 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
858 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
859 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
860 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
861 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
862 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
863 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
864 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
865 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
866 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
867 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
868 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
869 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
870 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
871 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
879 <id>all-for-integration-tests-only</id>
881 <surefire.skip.tests>true</surefire.skip.tests>
882 <skipTest>false</skipTest>