2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ============LICENSE_END=========================================================
19 ================================================================================
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
26 <groupId>org.openecomp.sdc</groupId>
27 <artifactId>sdc-integration-tests</artifactId>
28 <packaging>jar</packaging>
29 <name>sdc-integration-tests</name>
32 <groupId>org.openecomp.sdc</groupId>
33 <artifactId>sdc-main</artifactId>
34 <version>1.7.1-SNAPSHOT</version>
38 <selenium.version>3.141.59</selenium.version>
39 <gecko.driver.version>0.27.0</gecko.driver.version>
40 <!-- SDC Startup parameters -->
41 <it.env.name>integration-test</it.env.name>
42 <it.cassandra.port>9042</it.cassandra.port>
43 <it.cassandra.password>onap123#@!</it.cassandra.password>
44 <it.cassandra.ssl.enabled>false</it.cassandra.ssl.enabled>
45 <it.sdc.cluster.name>SDC-CS-${it.env.name}</it.sdc.cluster.name>
46 <it.sdc.user>asdc_user</it.sdc.user>
47 <it.sdc.password>Aa1234%^!</it.sdc.password>
48 <it.chef.config>${project.build.directory}/chef-config</it.chef.config>
49 <it.shared.volume>/tmp/sdc-integration-tests</it.shared.volume>
50 <it.docker.version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
52 <it.ui.firefox.version>2.53.1</it.ui.firefox.version>
58 <groupId>ch.qos.logback</groupId>
59 <artifactId>logback-classic</artifactId>
60 <version>${logback.version}</version>
64 <groupId>org.yaml</groupId>
65 <artifactId>snakeyaml</artifactId>
66 <version>${snakeyaml.version}</version>
70 <groupId>com.google.guava</groupId>
71 <artifactId>guava</artifactId>
72 <version>25.0-jre</version>
73 <scope>compile</scope>
76 <groupId>junit</groupId>
77 <artifactId>junit</artifactId>
78 <version>${junit.version}</version>
82 <groupId>org.testng</groupId>
83 <artifactId>testng</artifactId>
84 <version>${testng.version}</version>
88 <groupId>com.google.code.gson</groupId>
89 <artifactId>gson</artifactId>
90 <version>${gson.version}</version>
94 <groupId>org.openecomp.sdc.be</groupId>
95 <artifactId>catalog-model</artifactId>
96 <version>${project.version}</version>
100 <groupId>org.openecomp.sdc.be</groupId>
101 <artifactId>catalog-dao</artifactId>
102 <version>${project.version}</version>
106 <groupId>com.aventstack</groupId>
107 <artifactId>extentreports</artifactId>
108 <version>3.0.6</version>
112 <groupId>org.janusgraph</groupId>
113 <artifactId>janusgraph-core</artifactId>
114 <version>${janusgraph.version}</version>
118 <artifactId>slf4j-log4j12</artifactId>
119 <groupId>org.slf4j</groupId>
122 <artifactId>commons-collections</artifactId>
123 <groupId>commons-collections</groupId>
126 <artifactId>groovy</artifactId>
127 <groupId>org.codehaus.groovy</groupId>
130 <groupId>org.apache.thrift</groupId>
131 <artifactId>libthrift</artifactId>
136 <groupId>org.assertj</groupId>
137 <artifactId>assertj-core</artifactId>
138 <version>${assertj.version}</version>
142 <groupId>com.clearspring.analytics</groupId>
143 <artifactId>stream</artifactId>
144 <version>${clearspring.version}</version>
148 <groupId>org.apache.httpcomponents</groupId>
149 <artifactId>httpclient</artifactId>
150 <version>${httpclient.version}</version>
154 <groupId>org.apache.httpcomponents</groupId>
155 <artifactId>httpcore</artifactId>
156 <version>${httpcore.version}</version>
160 <groupId>com.fasterxml.jackson.core</groupId>
161 <artifactId>jackson-core</artifactId>
162 <version>${jackson.version}</version>
166 <groupId>org.codehaus.jackson</groupId>
167 <artifactId>jackson-mapper-asl</artifactId>
168 <version>1.9.2</version>
172 <groupId>com.fasterxml.jackson.core</groupId>
173 <artifactId>jackson-databind</artifactId>
174 <version>${jackson.version}</version>
178 <groupId>com.fasterxml.jackson.core</groupId>
179 <artifactId>jackson-core</artifactId>
184 <!--FOR the Frontend -->
186 <groupId>org.seleniumhq.selenium</groupId>
187 <artifactId>selenium-java</artifactId>
189 <version>${selenium.version}</version>
192 <groupId>org.seleniumhq.selenium</groupId>
193 <artifactId>selenium-server</artifactId>
194 <version>4.0.0-alpha-2</version>
198 <groupId>org.seleniumhq.selenium</groupId>
199 <artifactId>selenium-firefox-driver</artifactId>
200 <version>${selenium.version}</version>
205 <groupId>net.lightbody.bmp</groupId>
206 <!-- To use the legacy, Jetty-based implementation, change the artifactId
207 to browsermob-core -->
208 <artifactId>browsermob-core</artifactId>
209 <version>2.1.4</version>
213 <groupId>com.fasterxml.jackson.core</groupId>
214 <artifactId>jackson-core</artifactId>
219 <groupId>com.paulhammant</groupId>
220 <artifactId>ngwebdriver</artifactId>
221 <version>0.9.7</version>
225 <groupId>com.github.markusbernhardt</groupId>
226 <artifactId>proxy-vole</artifactId>
227 <version>1.0.2</version>
231 <groupId>org.hamcrest</groupId>
232 <artifactId>hamcrest</artifactId>
233 <version>${hamcrest.version}</version>
237 <groupId>commons-net</groupId>
238 <artifactId>commons-net</artifactId>
239 <version>3.3</version>
246 <!-- Section for Integration tests -->
248 <artifactId>maven-resources-plugin</artifactId>
251 <id>copy-chef-resources</id>
252 <phase>pre-integration-test</phase>
254 <goal>copy-resources</goal>
257 <outputDirectory>${it.chef.config}</outputDirectory>
260 <directory>environments</directory>
261 <filtering>true</filtering>
263 <include>integration-test.json</include>
264 <include>plugins-configuration.yaml</include>
273 <groupId>org.codehaus.mojo</groupId>
274 <artifactId>wagon-maven-plugin</artifactId>
275 <version>2.0.0</version>
278 <id>download-gecko</id>
279 <phase>validate</phase>
281 <goal>download-single</goal>
284 <url>https://github.com</url>
286 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
288 <toDir>${project.build.directory}/gecko</toDir>
294 <artifactId>maven-antrun-plugin</artifactId>
295 <version>1.8</version>
298 <id>set-folder-permission</id>
299 <phase>pre-integration-test</phase>
302 <mkdir dir="/tmp/sdc-integration-tests"/>
303 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
304 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
305 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation" type="dir" perm="ugo+rwx"/>
314 <phase>pre-integration-test</phase>
317 <untar src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
318 compression="gzip" dest="${project.build.directory}/gecko/"/>
319 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir" perm="ugo+rwx"/>
329 <groupId>org.codehaus.mojo</groupId>
330 <artifactId>build-helper-maven-plugin</artifactId>
333 <id>reserve-port-for-tests</id>
334 <phase>validate</phase>
336 <goal>reserve-network-port</goal>
340 <portName>sdc.it.docker.cassandra.port</portName>
347 <groupId>io.fabric8</groupId>
348 <artifactId>docker-maven-plugin</artifactId>
351 <groupId>org.apache.httpcomponents</groupId>
352 <artifactId>httpclient</artifactId>
353 <version>4.5.5</version>
357 <verbose>true</verbose>
358 <apiVersion>1.35</apiVersion>
359 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
362 <name>onap/sdc-cassandra:${it.docker.version}</name>
363 <alias>sdc-cassandra</alias>
366 <RELEASE>${project.version}</RELEASE>
367 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
368 <ENVNAME>${it.env.name}</ENVNAME>
369 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
370 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
372 <hostname>sdc-cs</hostname>
375 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
401 <port>9042:9042</port>
405 <name>sdc-network</name>
406 <alias>sdc-cs</alias>
411 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
412 <alias>sdc-cassandra-init</alias>
415 <container>sdc-cassandra</container>
418 <RELEASE>${project.version}</RELEASE>
419 <SDC_USER>${it.sdc.user}</SDC_USER>
420 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
421 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
422 <ENVNAME>${it.env.name}</ENVNAME>
424 <hostname>sdc-cs-init</hostname>
427 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
432 <log>SdcSchemaFileImport successfully completed</log>
436 <name>sdc-network</name>
437 <alias>sdc-cs-init</alias>
442 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
443 <alias>sdc-cassandra-onboard-init</alias>
446 <container>sdc-cassandra</container>
449 <RELEASE>${project.version}</RELEASE>
450 <SDC_USER>${it.sdc.user}</SDC_USER>
451 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
452 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
453 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
454 <ENVNAME>${it.env.name}</ENVNAME>
455 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
457 <hostname>sdc-cs-onboard-init</hostname>
460 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
465 <log>Initializing onboard schemas</log>
469 <name>sdc-network</name>
470 <alias>sdc-cs-onboard-init</alias>
475 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
476 <alias>sdc-onboard-backend</alias>
479 <container>sdc-cassandra-onboard-init</container>
482 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
483 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
484 <SDC_USER>${it.sdc.user}</SDC_USER>
485 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
486 <ENVNAME>${it.env.name}</ENVNAME>
487 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
488 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001 -Xmx1g -Xms1g</JAVA_OPTIONS>
490 <hostname>sdc-onboard-BE</hostname>
493 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
494 <volume>${project.basedir}/src/test/resources/cert:/var/lib/jetty/onap/cert
501 <host>sdc-onboard-BE</host>
511 <port>8445:8445</port>
512 <port>8081:8081</port>
513 <port>4001:4001</port>
517 <name>sdc-network</name>
518 <alias>sdc-onboard-BE</alias>
523 <name>onap/sdc-backend:${it.docker.version}</name>
524 <alias>sdc-backend</alias>
527 <container>sdc-cassandra-init</container>
530 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
531 <ENVNAME>${it.env.name}</ENVNAME>
532 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
533 -Xmx1536m -Xms1536m</JAVA_OPTIONS>
535 <hostname>sdc-BE</hostname>
538 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
539 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
555 <port>8443:8443</port>
556 <port>8080:8080</port>
557 <port>4000:4000</port>
561 <name>sdc-network</name>
562 <alias>sdc-BE</alias>
567 <name>onap/sdc-backend-init:${it.docker.version}</name>
568 <alias>sdc-backend-init</alias>
571 <container>sdc-backend</container>
574 <ENVNAME>${it.env.name}</ENVNAME>
576 <hostname>sdc-BE-init</hostname>
579 <volume>${it.chef.config}:/home/onap/chef-solo/environments</volume>
580 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
585 <log>Chef Client finished</log>
589 <name>sdc-network</name>
590 <alias>sdc-BE-init</alias>
595 <name>onap/sdc-frontend:${it.docker.version}</name>
596 <alias>sdc-frontend</alias>
599 <ENVNAME>${it.env.name}</ENVNAME>
600 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
601 -Xmx256m -Xms256m</JAVA_OPTIONS>
603 <hostname>sdc-FE</hostname>
606 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
607 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
609 ${it.chef.config}/plugins-configuration.yaml:/var/lib/jetty/config/catalog-fe/plugins-configuration.yaml
626 <port>9443:9443</port>
627 <port>8181:8181</port>
628 <port>6000:6000</port>
632 <name>sdc-network</name>
633 <alias>sdc-FE</alias>
638 <name>onap/sdc-simulator:${it.docker.version}</name>
639 <alias>sdc-simulator</alias>
642 <container>sdc-frontend</container>
645 <!--<FE_URL>${it.env.name}</FE_URL>-->
646 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
647 <ENVNAME>${it.env.name}</ENVNAME>
649 <hostname>sdc-sim</hostname>
652 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
667 <!-- http://localhost:8285/login to access SDC -->
668 <port>8285:8080</port>
669 <port>8286:8443</port>
673 <name>sdc-network</name>
674 <alias>sdc-sim</alias>
680 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
681 <alias>firefox-standalone</alias>
683 <hostname>firefox-standalone</hostname>
687 <host>firefox-standalone</host>
690 <!-- Selenium remote automation port -->
692 <!--<port>5900</port>-->
693 <!-- VNC port for viewing the browser result -->
694 <!-- password to access is "secret" -->
700 <SE_OPTS>-debug</SE_OPTS>
701 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
702 <!--<START_XVFB>false</START_XVFB>-->
703 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
704 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
707 <port>4444:4444</port>
708 <!--<port>5900:5900</port>-->
712 <name>sdc-network</name>
713 <alias>firefox-standalone</alias>
718 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
720 <volume>/dev/shm:/dev/shm</volume>
729 <id>docker-start-for-it</id>
730 <phase>pre-integration-test</phase>
736 <id>docker-stop-for-it</id>
737 <phase>post-integration-test</phase>
746 <groupId>org.apache.maven.plugins</groupId>
747 <artifactId>maven-surefire-plugin</artifactId>
754 <groupId>org.apache.maven.plugins</groupId>
755 <artifactId>maven-failsafe-plugin</artifactId>
757 <forkCount>1</forkCount>
758 <reuseForks>true</reuseForks>
761 <name>testng.dtd.http</name>
766 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
767 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
768 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
769 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
770 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
771 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
772 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
773 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
774 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
775 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
776 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
777 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
778 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
779 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
780 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
781 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
782 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
783 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
784 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
785 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
786 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
787 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
788 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->