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.8.0-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>
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>com.google.guava</groupId>
74 <artifactId>guava</artifactId>
75 <version>25.0-jre</version>
76 <scope>compile</scope>
79 <groupId>junit</groupId>
80 <artifactId>junit</artifactId>
81 <version>${junit.version}</version>
85 <groupId>org.testng</groupId>
86 <artifactId>testng</artifactId>
87 <version>${testng.version}</version>
91 <groupId>com.google.code.gson</groupId>
92 <artifactId>gson</artifactId>
93 <version>${gson.version}</version>
97 <groupId>org.openecomp.sdc.be</groupId>
98 <artifactId>catalog-model</artifactId>
99 <version>${project.version}</version>
103 <groupId>org.openecomp.sdc.be</groupId>
104 <artifactId>catalog-dao</artifactId>
105 <version>${project.version}</version>
109 <groupId>org.openecomp.sdc</groupId>
110 <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
111 <version>${project.version}</version>
115 <groupId>com.aventstack</groupId>
116 <artifactId>extentreports</artifactId>
117 <version>3.0.6</version>
121 <groupId>org.janusgraph</groupId>
122 <artifactId>janusgraph-core</artifactId>
123 <version>${janusgraph.version}</version>
127 <artifactId>slf4j-log4j12</artifactId>
128 <groupId>org.slf4j</groupId>
131 <artifactId>commons-collections</artifactId>
132 <groupId>commons-collections</groupId>
135 <artifactId>groovy</artifactId>
136 <groupId>org.codehaus.groovy</groupId>
139 <groupId>org.apache.thrift</groupId>
140 <artifactId>libthrift</artifactId>
145 <groupId>org.assertj</groupId>
146 <artifactId>assertj-core</artifactId>
147 <version>${assertj.version}</version>
151 <groupId>com.clearspring.analytics</groupId>
152 <artifactId>stream</artifactId>
153 <version>${clearspring.version}</version>
157 <groupId>org.apache.httpcomponents</groupId>
158 <artifactId>httpclient</artifactId>
159 <version>${httpclient.version}</version>
163 <groupId>org.apache.httpcomponents</groupId>
164 <artifactId>httpcore</artifactId>
165 <version>${httpcore.version}</version>
169 <groupId>com.fasterxml.jackson.core</groupId>
170 <artifactId>jackson-core</artifactId>
171 <version>${jackson.version}</version>
175 <groupId>org.codehaus.jackson</groupId>
176 <artifactId>jackson-mapper-asl</artifactId>
177 <version>1.9.2</version>
181 <groupId>com.fasterxml.jackson.core</groupId>
182 <artifactId>jackson-databind</artifactId>
183 <version>${jackson.version}</version>
187 <groupId>com.fasterxml.jackson.core</groupId>
188 <artifactId>jackson-core</artifactId>
194 <groupId>org.onap.sdc.sdc-tosca</groupId>
195 <artifactId>sdc-tosca</artifactId>
196 <version>${sdc-tosca-parser.version}</version>
199 <!--FOR the Frontend -->
201 <groupId>org.seleniumhq.selenium</groupId>
202 <artifactId>selenium-java</artifactId>
204 <version>${selenium.version}</version>
207 <groupId>org.seleniumhq.selenium</groupId>
208 <artifactId>selenium-server</artifactId>
209 <version>4.0.0-alpha-2</version>
213 <groupId>org.seleniumhq.selenium</groupId>
214 <artifactId>selenium-firefox-driver</artifactId>
215 <version>${selenium.version}</version>
220 <groupId>net.lightbody.bmp</groupId>
221 <!-- To use the legacy, Jetty-based implementation, change the artifactId
222 to browsermob-core -->
223 <artifactId>browsermob-core</artifactId>
224 <version>2.1.4</version>
228 <groupId>com.fasterxml.jackson.core</groupId>
229 <artifactId>jackson-core</artifactId>
234 <groupId>com.paulhammant</groupId>
235 <artifactId>ngwebdriver</artifactId>
236 <version>0.9.7</version>
240 <groupId>com.github.markusbernhardt</groupId>
241 <artifactId>proxy-vole</artifactId>
242 <version>1.0.2</version>
246 <groupId>org.hamcrest</groupId>
247 <artifactId>hamcrest</artifactId>
248 <version>${hamcrest.version}</version>
252 <groupId>commons-net</groupId>
253 <artifactId>commons-net</artifactId>
254 <version>3.3</version>
258 <groupId>org.apache.logging.log4j</groupId>
259 <artifactId>log4j-api</artifactId>
260 <version>2.13.1</version>
267 <!-- Section for Integration tests -->
269 <artifactId>maven-resources-plugin</artifactId>
272 <id>copy-chef-resources</id>
273 <phase>pre-integration-test</phase>
275 <goal>copy-resources</goal>
278 <outputDirectory>${it.chef.config}</outputDirectory>
281 <directory>environments</directory>
282 <filtering>true</filtering>
284 <include>integration-test.json</include>
285 <include>plugins-configuration.yaml</include>
292 <id>copy-sdc-be-plugins</id>
293 <phase>pre-integration-test</phase>
295 <goal>copy-resources</goal>
298 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
301 <directory>../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target</directory>
302 <filtering>false</filtering>
304 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar</include>
313 <groupId>org.codehaus.mojo</groupId>
314 <artifactId>wagon-maven-plugin</artifactId>
315 <version>2.0.0</version>
318 <id>download-gecko</id>
319 <phase>validate</phase>
321 <goal>download-single</goal>
324 <url>https://github.com</url>
326 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
328 <toDir>${project.build.directory}/gecko</toDir>
334 <artifactId>maven-antrun-plugin</artifactId>
335 <version>1.8</version>
338 <id>set-folder-permission</id>
339 <phase>pre-integration-test</phase>
342 <mkdir dir="/tmp/sdc-integration-tests"/>
343 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
344 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
345 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation" type="dir" perm="ugo+rwx"/>
354 <phase>pre-integration-test</phase>
357 <untar src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
358 compression="gzip" dest="${project.build.directory}/gecko/"/>
359 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir" perm="ugo+rwx"/>
369 <groupId>org.codehaus.mojo</groupId>
370 <artifactId>build-helper-maven-plugin</artifactId>
373 <id>reserve-port-for-tests</id>
374 <phase>validate</phase>
376 <goal>reserve-network-port</goal>
380 <portName>sdc.it.docker.cassandra.port</portName>
387 <groupId>io.fabric8</groupId>
388 <artifactId>docker-maven-plugin</artifactId>
391 <groupId>org.apache.httpcomponents</groupId>
392 <artifactId>httpclient</artifactId>
393 <version>4.5.5</version>
397 <verbose>true</verbose>
398 <apiVersion>${docker.api.version}</apiVersion>
399 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
402 <name>onap/sdc-cassandra:${it.docker.version}</name>
403 <alias>sdc-cassandra</alias>
406 <RELEASE>${project.version}</RELEASE>
407 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
408 <ENVNAME>${it.env.name}</ENVNAME>
409 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
410 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
412 <hostname>sdc-cs</hostname>
415 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
441 <port>9042:9042</port>
445 <name>sdc-network</name>
446 <alias>sdc-cs</alias>
451 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
452 <alias>sdc-cassandra-init</alias>
455 <container>sdc-cassandra</container>
458 <RELEASE>${project.version}</RELEASE>
459 <SDC_USER>${it.sdc.user}</SDC_USER>
460 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
461 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
462 <ENVNAME>${it.env.name}</ENVNAME>
464 <hostname>sdc-cs-init</hostname>
467 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
472 <log>SdcSchemaFileImport successfully completed</log>
476 <name>sdc-network</name>
477 <alias>sdc-cs-init</alias>
482 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
483 <alias>sdc-cassandra-onboard-init</alias>
486 <container>sdc-cassandra</container>
489 <RELEASE>${project.version}</RELEASE>
490 <SDC_USER>${it.sdc.user}</SDC_USER>
491 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
492 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
493 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
494 <ENVNAME>${it.env.name}</ENVNAME>
495 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
497 <hostname>sdc-cs-onboard-init</hostname>
500 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
505 <log>Initializing onboard schemas</log>
509 <name>sdc-network</name>
510 <alias>sdc-cs-onboard-init</alias>
515 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
516 <alias>sdc-onboard-backend</alias>
519 <container>sdc-cassandra-onboard-init</container>
522 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
523 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
524 <SDC_USER>${it.sdc.user}</SDC_USER>
525 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
526 <ENVNAME>${it.env.name}</ENVNAME>
527 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
528 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001 -Xmx1g -Xms1g</JAVA_OPTIONS>
530 <hostname>sdc-onboard-BE</hostname>
533 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
534 <volume>${project.basedir}/src/test/resources/cert:/var/lib/jetty/onap/cert
536 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
542 <host>sdc-onboard-BE</host>
552 <port>8445:8445</port>
553 <port>8081:8081</port>
554 <port>4001:4001</port>
558 <name>sdc-network</name>
559 <alias>sdc-onboard-BE</alias>
564 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
565 <alias>sdc-backend</alias>
568 <container>sdc-cassandra-init</container>
571 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
572 <ENVNAME>${it.env.name}</ENVNAME>
573 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
574 -Xmx1536m -Xms1536m</JAVA_OPTIONS>
576 <hostname>sdc-BE</hostname>
579 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
580 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
596 <port>8443:8443</port>
597 <port>8080:8080</port>
598 <port>4000:4000</port>
602 <name>sdc-network</name>
603 <alias>sdc-BE</alias>
608 <name>onap/sdc-backend-init:${it.docker.version}</name>
609 <alias>sdc-backend-init</alias>
612 <container>sdc-backend</container>
615 <ENVNAME>${it.env.name}</ENVNAME>
617 <hostname>sdc-BE-init</hostname>
620 <volume>${it.chef.config}:/home/onap/chef-solo/environments</volume>
621 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
626 <log>Chef Client finished</log>
630 <name>sdc-network</name>
631 <alias>sdc-BE-init</alias>
636 <name>onap/sdc-frontend:${it.docker.version}</name>
637 <alias>sdc-frontend</alias>
640 <ENVNAME>${it.env.name}</ENVNAME>
641 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
642 -Xmx256m -Xms256m</JAVA_OPTIONS>
644 <hostname>sdc-FE</hostname>
647 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
648 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
650 ${it.chef.config}/plugins-configuration.yaml:/var/lib/jetty/config/catalog-fe/plugins-configuration.yaml
667 <port>9443:9443</port>
668 <port>8181:8181</port>
669 <port>6000:6000</port>
673 <name>sdc-network</name>
674 <alias>sdc-FE</alias>
679 <name>onap/sdc-simulator:${it.docker.version}</name>
680 <alias>sdc-simulator</alias>
683 <container>sdc-frontend</container>
686 <!--<FE_URL>${it.env.name}</FE_URL>-->
687 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
688 <ENVNAME>${it.env.name}</ENVNAME>
690 <hostname>sdc-sim</hostname>
693 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
708 <!-- http://localhost:8285/login to access SDC -->
709 <port>8285:8080</port>
710 <port>8286:8443</port>
714 <name>sdc-network</name>
715 <alias>sdc-sim</alias>
721 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
722 <alias>firefox-standalone</alias>
724 <hostname>firefox-standalone</hostname>
728 <host>firefox-standalone</host>
731 <!-- Selenium remote automation port -->
733 <!--<port>5900</port>-->
734 <!-- VNC port for viewing the browser result -->
735 <!-- password to access is "secret" -->
741 <SE_OPTS>-debug</SE_OPTS>
742 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
743 <!--<START_XVFB>false</START_XVFB>-->
744 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
745 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
748 <port>4444:4444</port>
749 <!--<port>5900:5900</port>-->
753 <name>sdc-network</name>
754 <alias>firefox-standalone</alias>
759 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
761 <volume>/dev/shm:/dev/shm</volume>
770 <id>docker-start-for-it</id>
771 <phase>pre-integration-test</phase>
777 <id>docker-stop-for-it</id>
778 <phase>post-integration-test</phase>
787 <groupId>org.apache.maven.plugins</groupId>
788 <artifactId>maven-surefire-plugin</artifactId>
795 <groupId>org.apache.maven.plugins</groupId>
796 <artifactId>maven-failsafe-plugin</artifactId>
798 <forkCount>1</forkCount>
799 <reuseForks>true</reuseForks>
802 <name>testng.dtd.http</name>
807 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
808 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
809 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
810 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
811 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
812 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
813 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
814 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
815 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
816 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
817 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
818 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
819 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
820 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
821 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
822 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
823 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
824 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
825 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
826 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
827 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
828 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
829 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->