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 ================================================================================
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.openecomp.sdc</groupId>
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.7.1-SNAPSHOT</version>
39 <selenium.version>3.141.59</selenium.version>
40 <gecko.driver.version>0.27.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>2.53.1</it.ui.firefox.version>
59 <groupId>ch.qos.logback</groupId>
60 <artifactId>logback-classic</artifactId>
61 <version>${logback.version}</version>
65 <groupId>org.yaml</groupId>
66 <artifactId>snakeyaml</artifactId>
67 <version>${snakeyaml.version}</version>
71 <groupId>com.google.guava</groupId>
72 <artifactId>guava</artifactId>
73 <version>25.0-jre</version>
74 <scope>compile</scope>
77 <groupId>junit</groupId>
78 <artifactId>junit</artifactId>
79 <version>${junit.version}</version>
83 <groupId>org.testng</groupId>
84 <artifactId>testng</artifactId>
85 <version>${testng.version}</version>
89 <groupId>com.google.code.gson</groupId>
90 <artifactId>gson</artifactId>
91 <version>${gson.version}</version>
95 <groupId>org.openecomp.sdc.be</groupId>
96 <artifactId>catalog-model</artifactId>
97 <version>${project.version}</version>
101 <groupId>org.openecomp.sdc.be</groupId>
102 <artifactId>catalog-dao</artifactId>
103 <version>${project.version}</version>
107 <groupId>com.aventstack</groupId>
108 <artifactId>extentreports</artifactId>
109 <version>3.0.6</version>
113 <groupId>org.janusgraph</groupId>
114 <artifactId>janusgraph-core</artifactId>
115 <version>${janusgraph.version}</version>
119 <artifactId>slf4j-log4j12</artifactId>
120 <groupId>org.slf4j</groupId>
123 <artifactId>commons-collections</artifactId>
124 <groupId>commons-collections</groupId>
127 <artifactId>groovy</artifactId>
128 <groupId>org.codehaus.groovy</groupId>
131 <groupId>org.apache.thrift</groupId>
132 <artifactId>libthrift</artifactId>
137 <groupId>org.assertj</groupId>
138 <artifactId>assertj-core</artifactId>
139 <version>${assertj.version}</version>
143 <groupId>com.clearspring.analytics</groupId>
144 <artifactId>stream</artifactId>
145 <version>${clearspring.version}</version>
149 <groupId>org.apache.httpcomponents</groupId>
150 <artifactId>httpclient</artifactId>
151 <version>${httpclient.version}</version>
155 <groupId>org.apache.httpcomponents</groupId>
156 <artifactId>httpcore</artifactId>
157 <version>${httpcore.version}</version>
161 <groupId>com.fasterxml.jackson.core</groupId>
162 <artifactId>jackson-core</artifactId>
163 <version>${jackson.version}</version>
167 <groupId>org.codehaus.jackson</groupId>
168 <artifactId>jackson-mapper-asl</artifactId>
169 <version>1.9.2</version>
173 <groupId>com.fasterxml.jackson.core</groupId>
174 <artifactId>jackson-databind</artifactId>
175 <version>${jackson.version}</version>
179 <groupId>com.fasterxml.jackson.core</groupId>
180 <artifactId>jackson-core</artifactId>
185 <!--FOR the Frontend -->
187 <groupId>org.seleniumhq.selenium</groupId>
188 <artifactId>selenium-java</artifactId>
190 <version>${selenium.version}</version>
193 <groupId>org.seleniumhq.selenium</groupId>
194 <artifactId>selenium-server</artifactId>
195 <version>4.0.0-alpha-2</version>
199 <groupId>org.seleniumhq.selenium</groupId>
200 <artifactId>selenium-firefox-driver</artifactId>
201 <version>${selenium.version}</version>
206 <groupId>net.lightbody.bmp</groupId>
207 <!-- To use the legacy, Jetty-based implementation, change the artifactId
208 to browsermob-core -->
209 <artifactId>browsermob-core</artifactId>
210 <version>2.1.4</version>
214 <groupId>com.fasterxml.jackson.core</groupId>
215 <artifactId>jackson-core</artifactId>
220 <groupId>com.paulhammant</groupId>
221 <artifactId>ngwebdriver</artifactId>
222 <version>0.9.7</version>
226 <groupId>com.github.markusbernhardt</groupId>
227 <artifactId>proxy-vole</artifactId>
228 <version>1.0.2</version>
232 <groupId>org.hamcrest</groupId>
233 <artifactId>hamcrest</artifactId>
234 <version>${hamcrest.version}</version>
238 <groupId>commons-net</groupId>
239 <artifactId>commons-net</artifactId>
240 <version>3.3</version>
247 <!-- Section for Integration tests -->
249 <artifactId>maven-resources-plugin</artifactId>
252 <id>copy-chef-resources</id>
253 <phase>pre-integration-test</phase>
255 <goal>copy-resources</goal>
258 <outputDirectory>${it.chef.config}</outputDirectory>
261 <directory>environments</directory>
262 <filtering>true</filtering>
264 <include>integration-test.json</include>
265 <include>plugins-configuration.yaml</include>
272 <id>copy-sdc-be-plugins</id>
273 <phase>pre-integration-test</phase>
275 <goal>copy-resources</goal>
278 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
281 <directory>../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target</directory>
282 <filtering>false</filtering>
284 <include>etsi-nfv-nsd-csar-plugin-${version}.jar</include>
293 <groupId>org.codehaus.mojo</groupId>
294 <artifactId>wagon-maven-plugin</artifactId>
295 <version>2.0.0</version>
298 <id>download-gecko</id>
299 <phase>validate</phase>
301 <goal>download-single</goal>
304 <url>https://github.com</url>
306 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
308 <toDir>${project.build.directory}/gecko</toDir>
314 <artifactId>maven-antrun-plugin</artifactId>
315 <version>1.8</version>
318 <id>set-folder-permission</id>
319 <phase>pre-integration-test</phase>
322 <mkdir dir="/tmp/sdc-integration-tests"/>
323 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
324 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
325 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation" type="dir" perm="ugo+rwx"/>
334 <phase>pre-integration-test</phase>
337 <untar src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
338 compression="gzip" dest="${project.build.directory}/gecko/"/>
339 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir" perm="ugo+rwx"/>
349 <groupId>org.codehaus.mojo</groupId>
350 <artifactId>build-helper-maven-plugin</artifactId>
353 <id>reserve-port-for-tests</id>
354 <phase>validate</phase>
356 <goal>reserve-network-port</goal>
360 <portName>sdc.it.docker.cassandra.port</portName>
367 <groupId>io.fabric8</groupId>
368 <artifactId>docker-maven-plugin</artifactId>
371 <groupId>org.apache.httpcomponents</groupId>
372 <artifactId>httpclient</artifactId>
373 <version>4.5.5</version>
377 <verbose>true</verbose>
378 <apiVersion>${docker.api.version}</apiVersion>
379 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
382 <name>onap/sdc-cassandra:${it.docker.version}</name>
383 <alias>sdc-cassandra</alias>
386 <RELEASE>${project.version}</RELEASE>
387 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
388 <ENVNAME>${it.env.name}</ENVNAME>
389 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
390 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
392 <hostname>sdc-cs</hostname>
395 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
421 <port>9042:9042</port>
425 <name>sdc-network</name>
426 <alias>sdc-cs</alias>
431 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
432 <alias>sdc-cassandra-init</alias>
435 <container>sdc-cassandra</container>
438 <RELEASE>${project.version}</RELEASE>
439 <SDC_USER>${it.sdc.user}</SDC_USER>
440 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
441 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
442 <ENVNAME>${it.env.name}</ENVNAME>
444 <hostname>sdc-cs-init</hostname>
447 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
452 <log>SdcSchemaFileImport successfully completed</log>
456 <name>sdc-network</name>
457 <alias>sdc-cs-init</alias>
462 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
463 <alias>sdc-cassandra-onboard-init</alias>
466 <container>sdc-cassandra</container>
469 <RELEASE>${project.version}</RELEASE>
470 <SDC_USER>${it.sdc.user}</SDC_USER>
471 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
472 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
473 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
474 <ENVNAME>${it.env.name}</ENVNAME>
475 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
477 <hostname>sdc-cs-onboard-init</hostname>
480 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
485 <log>Initializing onboard schemas</log>
489 <name>sdc-network</name>
490 <alias>sdc-cs-onboard-init</alias>
495 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
496 <alias>sdc-onboard-backend</alias>
499 <container>sdc-cassandra-onboard-init</container>
502 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
503 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
504 <SDC_USER>${it.sdc.user}</SDC_USER>
505 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
506 <ENVNAME>${it.env.name}</ENVNAME>
507 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
508 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001 -Xmx1g -Xms1g</JAVA_OPTIONS>
510 <hostname>sdc-onboard-BE</hostname>
513 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
514 <volume>${project.basedir}/src/test/resources/cert:/var/lib/jetty/onap/cert
521 <host>sdc-onboard-BE</host>
531 <port>8445:8445</port>
532 <port>8081:8081</port>
533 <port>4001:4001</port>
537 <name>sdc-network</name>
538 <alias>sdc-onboard-BE</alias>
543 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
544 <alias>sdc-backend</alias>
547 <container>sdc-cassandra-init</container>
550 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
551 <ENVNAME>${it.env.name}</ENVNAME>
552 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
553 -Xmx1536m -Xms1536m</JAVA_OPTIONS>
555 <hostname>sdc-BE</hostname>
558 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
559 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
575 <port>8443:8443</port>
576 <port>8080:8080</port>
577 <port>4000:4000</port>
581 <name>sdc-network</name>
582 <alias>sdc-BE</alias>
587 <name>onap/sdc-backend-init:${it.docker.version}</name>
588 <alias>sdc-backend-init</alias>
591 <container>sdc-backend</container>
594 <ENVNAME>${it.env.name}</ENVNAME>
596 <hostname>sdc-BE-init</hostname>
599 <volume>${it.chef.config}:/home/onap/chef-solo/environments</volume>
600 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
605 <log>Chef Client finished</log>
609 <name>sdc-network</name>
610 <alias>sdc-BE-init</alias>
615 <name>onap/sdc-frontend:${it.docker.version}</name>
616 <alias>sdc-frontend</alias>
619 <ENVNAME>${it.env.name}</ENVNAME>
620 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
621 -Xmx256m -Xms256m</JAVA_OPTIONS>
623 <hostname>sdc-FE</hostname>
626 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
627 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
629 ${it.chef.config}/plugins-configuration.yaml:/var/lib/jetty/config/catalog-fe/plugins-configuration.yaml
646 <port>9443:9443</port>
647 <port>8181:8181</port>
648 <port>6000:6000</port>
652 <name>sdc-network</name>
653 <alias>sdc-FE</alias>
658 <name>onap/sdc-simulator:${it.docker.version}</name>
659 <alias>sdc-simulator</alias>
662 <container>sdc-frontend</container>
665 <!--<FE_URL>${it.env.name}</FE_URL>-->
666 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
667 <ENVNAME>${it.env.name}</ENVNAME>
669 <hostname>sdc-sim</hostname>
672 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
687 <!-- http://localhost:8285/login to access SDC -->
688 <port>8285:8080</port>
689 <port>8286:8443</port>
693 <name>sdc-network</name>
694 <alias>sdc-sim</alias>
700 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
701 <alias>firefox-standalone</alias>
703 <hostname>firefox-standalone</hostname>
707 <host>firefox-standalone</host>
710 <!-- Selenium remote automation port -->
712 <!--<port>5900</port>-->
713 <!-- VNC port for viewing the browser result -->
714 <!-- password to access is "secret" -->
720 <SE_OPTS>-debug</SE_OPTS>
721 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
722 <!--<START_XVFB>false</START_XVFB>-->
723 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
724 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
727 <port>4444:4444</port>
728 <!--<port>5900:5900</port>-->
732 <name>sdc-network</name>
733 <alias>firefox-standalone</alias>
738 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
740 <volume>/dev/shm:/dev/shm</volume>
749 <id>docker-start-for-it</id>
750 <phase>pre-integration-test</phase>
756 <id>docker-stop-for-it</id>
757 <phase>post-integration-test</phase>
766 <groupId>org.apache.maven.plugins</groupId>
767 <artifactId>maven-surefire-plugin</artifactId>
774 <groupId>org.apache.maven.plugins</groupId>
775 <artifactId>maven-failsafe-plugin</artifactId>
777 <forkCount>1</forkCount>
778 <reuseForks>true</reuseForks>
781 <name>testng.dtd.http</name>
786 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
787 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
788 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
789 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
790 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
791 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
792 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
793 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
794 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
795 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
796 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
797 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
798 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
799 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
800 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
801 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
802 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
803 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
804 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
805 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
806 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
807 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
808 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->