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.0-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>org.yaml</groupId>
59 <artifactId>snakeyaml</artifactId>
60 <version>${snakeyaml.version}</version>
64 <groupId>com.google.guava</groupId>
65 <artifactId>guava</artifactId>
66 <version>25.0-jre</version>
67 <scope>compile</scope>
70 <groupId>junit</groupId>
71 <artifactId>junit</artifactId>
72 <version>${junit.version}</version>
76 <groupId>org.testng</groupId>
77 <artifactId>testng</artifactId>
78 <version>${testng.version}</version>
82 <groupId>com.google.code.gson</groupId>
83 <artifactId>gson</artifactId>
84 <version>${gson.version}</version>
88 <groupId>org.openecomp.sdc.be</groupId>
89 <artifactId>catalog-model</artifactId>
90 <version>${project.version}</version>
94 <groupId>org.openecomp.sdc.be</groupId>
95 <artifactId>catalog-dao</artifactId>
96 <version>${project.version}</version>
100 <groupId>com.aventstack</groupId>
101 <artifactId>extentreports</artifactId>
102 <version>3.0.6</version>
106 <groupId>org.janusgraph</groupId>
107 <artifactId>janusgraph-core</artifactId>
108 <version>${janusgraph.version}</version>
112 <artifactId>slf4j-log4j12</artifactId>
113 <groupId>org.slf4j</groupId>
116 <artifactId>commons-collections</artifactId>
117 <groupId>commons-collections</groupId>
120 <artifactId>groovy</artifactId>
121 <groupId>org.codehaus.groovy</groupId>
124 <groupId>org.apache.thrift</groupId>
125 <artifactId>libthrift</artifactId>
130 <groupId>org.assertj</groupId>
131 <artifactId>assertj-core</artifactId>
132 <version>${assertj.version}</version>
136 <groupId>com.clearspring.analytics</groupId>
137 <artifactId>stream</artifactId>
138 <version>${clearspring.version}</version>
142 <groupId>org.apache.httpcomponents</groupId>
143 <artifactId>httpclient</artifactId>
144 <version>${httpclient.version}</version>
148 <groupId>org.apache.httpcomponents</groupId>
149 <artifactId>httpcore</artifactId>
150 <version>${httpcore.version}</version>
154 <groupId>com.fasterxml.jackson.core</groupId>
155 <artifactId>jackson-core</artifactId>
156 <version>${jackson.version}</version>
160 <groupId>org.codehaus.jackson</groupId>
161 <artifactId>jackson-mapper-asl</artifactId>
162 <version>1.9.2</version>
166 <groupId>com.fasterxml.jackson.core</groupId>
167 <artifactId>jackson-databind</artifactId>
168 <version>${jackson.version}</version>
172 <groupId>com.fasterxml.jackson.core</groupId>
173 <artifactId>jackson-core</artifactId>
178 <!--FOR the Frontend -->
180 <groupId>org.seleniumhq.selenium</groupId>
181 <artifactId>selenium-java</artifactId>
183 <version>${selenium.version}</version>
186 <groupId>org.seleniumhq.selenium</groupId>
187 <artifactId>selenium-server</artifactId>
188 <version>4.0.0-alpha-2</version>
192 <groupId>org.seleniumhq.selenium</groupId>
193 <artifactId>selenium-firefox-driver</artifactId>
194 <version>${selenium.version}</version>
199 <groupId>net.lightbody.bmp</groupId>
200 <!-- To use the legacy, Jetty-based implementation, change the artifactId
201 to browsermob-core -->
202 <artifactId>browsermob-core</artifactId>
203 <version>2.1.4</version>
207 <groupId>com.fasterxml.jackson.core</groupId>
208 <artifactId>jackson-core</artifactId>
213 <groupId>com.paulhammant</groupId>
214 <artifactId>ngwebdriver</artifactId>
215 <version>0.9.7</version>
219 <groupId>com.github.markusbernhardt</groupId>
220 <artifactId>proxy-vole</artifactId>
221 <version>1.0.2</version>
225 <groupId>org.hamcrest</groupId>
226 <artifactId>hamcrest</artifactId>
227 <version>${hamcrest.version}</version>
231 <groupId>commons-net</groupId>
232 <artifactId>commons-net</artifactId>
233 <version>3.3</version>
240 <!-- Section for Integration tests -->
242 <artifactId>maven-resources-plugin</artifactId>
245 <id>copy-chef-resources</id>
246 <phase>pre-integration-test</phase>
248 <goal>copy-resources</goal>
251 <outputDirectory>${it.chef.config}</outputDirectory>
254 <directory>environments</directory>
255 <filtering>true</filtering>
257 <include>integration-test.json</include>
258 <include>plugins-configuration.yaml</include>
267 <groupId>org.codehaus.mojo</groupId>
268 <artifactId>wagon-maven-plugin</artifactId>
269 <version>2.0.0</version>
272 <id>download-gecko</id>
273 <phase>validate</phase>
275 <goal>download-single</goal>
278 <url>https://github.com</url>
280 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
282 <toDir>${project.build.directory}/gecko</toDir>
288 <artifactId>maven-antrun-plugin</artifactId>
289 <version>1.8</version>
292 <id>set-folder-permission</id>
293 <phase>pre-integration-test</phase>
296 <mkdir dir="/tmp/sdc-integration-tests"/>
297 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
298 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
299 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation" type="dir" perm="ugo+rwx"/>
308 <phase>pre-integration-test</phase>
311 <untar src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
312 compression="gzip" dest="${project.build.directory}/gecko/"/>
313 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir" perm="ugo+rwx"/>
323 <groupId>org.codehaus.mojo</groupId>
324 <artifactId>build-helper-maven-plugin</artifactId>
327 <id>reserve-port-for-tests</id>
328 <phase>validate</phase>
330 <goal>reserve-network-port</goal>
334 <portName>sdc.it.docker.cassandra.port</portName>
341 <groupId>io.fabric8</groupId>
342 <artifactId>docker-maven-plugin</artifactId>
345 <groupId>org.apache.httpcomponents</groupId>
346 <artifactId>httpclient</artifactId>
347 <version>4.5.5</version>
351 <verbose>true</verbose>
352 <apiVersion>1.35</apiVersion>
353 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
356 <name>onap/sdc-cassandra:${it.docker.version}</name>
357 <alias>sdc-cassandra</alias>
360 <RELEASE>${project.version}</RELEASE>
361 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
362 <ENVNAME>${it.env.name}</ENVNAME>
363 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
364 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
366 <hostname>sdc-cs</hostname>
369 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
395 <port>9042:9042</port>
399 <name>sdc-network</name>
400 <alias>sdc-cs</alias>
405 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
406 <alias>sdc-cassandra-init</alias>
409 <container>sdc-cassandra</container>
412 <RELEASE>${project.version}</RELEASE>
413 <SDC_USER>${it.sdc.user}</SDC_USER>
414 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
415 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
416 <ENVNAME>${it.env.name}</ENVNAME>
418 <hostname>sdc-cs-init</hostname>
421 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
426 <log>SdcSchemaFileImport successfully completed</log>
430 <name>sdc-network</name>
431 <alias>sdc-cs-init</alias>
436 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
437 <alias>sdc-cassandra-onboard-init</alias>
440 <container>sdc-cassandra</container>
443 <RELEASE>${project.version}</RELEASE>
444 <SDC_USER>${it.sdc.user}</SDC_USER>
445 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
446 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
447 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
448 <ENVNAME>${it.env.name}</ENVNAME>
449 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
451 <hostname>sdc-cs-onboard-init</hostname>
454 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
459 <log>Initializing onboard schemas</log>
463 <name>sdc-network</name>
464 <alias>sdc-cs-onboard-init</alias>
469 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
470 <alias>sdc-onboard-backend</alias>
473 <container>sdc-cassandra-onboard-init</container>
476 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
477 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
478 <SDC_USER>${it.sdc.user}</SDC_USER>
479 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
480 <ENVNAME>${it.env.name}</ENVNAME>
481 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
482 <JAVA_OPTIONS>-Xdebug
483 -agentlib:jdwp=transport=dt_socket,address=4001,server=y,suspend=n -Xmx1g -Xms1g
486 <hostname>sdc-onboard-BE</hostname>
489 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
490 <volume>${project.basedir}/src/test/resources/cert:/var/lib/jetty/onap/cert
497 <host>sdc-onboard-BE</host>
507 <port>8445:8445</port>
508 <port>8081:8081</port>
509 <port>4001:4001</port>
513 <name>sdc-network</name>
514 <alias>sdc-onboard-BE</alias>
519 <name>onap/sdc-backend:${it.docker.version}</name>
520 <alias>sdc-backend</alias>
523 <container>sdc-cassandra-init</container>
526 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
527 <ENVNAME>${it.env.name}</ENVNAME>
528 <JAVA_OPTIONS>-Xdebug
529 -agentlib:jdwp=transport=dt_socket,address=4000,server=y,suspend=n -Xmx1536m
533 <hostname>sdc-BE</hostname>
536 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
537 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
553 <port>8443:8443</port>
554 <port>8080:8080</port>
555 <port>4000:4000</port>
559 <name>sdc-network</name>
560 <alias>sdc-BE</alias>
565 <name>onap/sdc-backend-init:${it.docker.version}</name>
566 <alias>sdc-backend-init</alias>
569 <container>sdc-backend</container>
572 <ENVNAME>${it.env.name}</ENVNAME>
574 <hostname>sdc-BE-init</hostname>
577 <volume>${it.chef.config}:/home/onap/chef-solo/environments</volume>
578 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
583 <log>Chef Client finished</log>
587 <name>sdc-network</name>
588 <alias>sdc-BE-init</alias>
593 <name>onap/sdc-frontend:${it.docker.version}</name>
594 <alias>sdc-frontend</alias>
597 <ENVNAME>${it.env.name}</ENVNAME>
598 <JAVA_OPTIONS>-Xdebug
599 -agentlib:jdwp=transport=dt_socket,address=6000,server=y,suspend=n -Xmx256m
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>
760 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
761 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
762 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
763 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
764 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
765 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
766 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
767 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
768 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
769 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
770 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
771 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
772 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
773 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
774 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
775 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
776 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
777 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
778 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
779 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
780 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
781 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
782 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->