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>
155 <groupId>org.assertj</groupId>
156 <artifactId>assertj-core</artifactId>
157 <version>${assertj.version}</version>
161 <groupId>com.clearspring.analytics</groupId>
162 <artifactId>stream</artifactId>
163 <version>${clearspring.version}</version>
167 <groupId>org.apache.httpcomponents</groupId>
168 <artifactId>httpclient</artifactId>
169 <version>${httpclient.version}</version>
173 <groupId>org.apache.httpcomponents</groupId>
174 <artifactId>httpcore</artifactId>
175 <version>${httpcore.version}</version>
179 <groupId>com.fasterxml.jackson.core</groupId>
180 <artifactId>jackson-core</artifactId>
181 <version>${jackson.version}</version>
185 <groupId>org.codehaus.jackson</groupId>
186 <artifactId>jackson-mapper-asl</artifactId>
187 <version>1.9.2</version>
191 <groupId>com.fasterxml.jackson.core</groupId>
192 <artifactId>jackson-databind</artifactId>
193 <version>${jackson.version}</version>
197 <groupId>com.fasterxml.jackson.core</groupId>
198 <artifactId>jackson-core</artifactId>
204 <groupId>org.onap.sdc.sdc-tosca</groupId>
205 <artifactId>sdc-tosca</artifactId>
206 <version>${sdc-tosca-parser.version}</version>
209 <!--FOR the Frontend -->
211 <groupId>org.seleniumhq.selenium</groupId>
212 <artifactId>selenium-java</artifactId>
214 <version>${selenium.version}</version>
217 <groupId>org.seleniumhq.selenium</groupId>
218 <artifactId>selenium-server</artifactId>
219 <version>${selenium.version}</version>
223 <groupId>org.seleniumhq.selenium</groupId>
224 <artifactId>selenium-firefox-driver</artifactId>
225 <version>${selenium.version}</version>
230 <groupId>net.lightbody.bmp</groupId>
231 <!-- To use the legacy, Jetty-based implementation, change the artifactId
232 to browsermob-core -->
233 <artifactId>browsermob-core</artifactId>
234 <version>2.1.4</version>
238 <groupId>com.fasterxml.jackson.core</groupId>
239 <artifactId>jackson-core</artifactId>
244 <groupId>com.paulhammant</groupId>
245 <artifactId>ngwebdriver</artifactId>
246 <version>0.9.7</version>
250 <groupId>com.github.markusbernhardt</groupId>
251 <artifactId>proxy-vole</artifactId>
252 <version>1.0.2</version>
256 <groupId>commons-net</groupId>
257 <artifactId>commons-net</artifactId>
258 <version>3.3</version>
262 <groupId>org.apache.logging.log4j</groupId>
263 <artifactId>log4j-api</artifactId>
264 <version>2.13.1</version>
271 <!-- Section for Integration tests -->
273 <artifactId>maven-resources-plugin</artifactId>
276 <id>copy-chef-resources</id>
277 <phase>pre-integration-test</phase>
279 <goal>copy-resources</goal>
282 <outputDirectory>${it.chef.config}</outputDirectory>
285 <directory>environments</directory>
286 <filtering>true</filtering>
288 <include>integration-test.json</include>
289 <include>plugins-configuration.yaml</include>
296 <id>copy-sdc-be-plugins</id>
297 <phase>pre-integration-test</phase>
299 <goal>copy-resources</goal>
302 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
306 ../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target
308 <filtering>false</filtering>
310 <include>etsi-nfv-nsd-csar-plugin-${project.version}.jar
320 <groupId>org.codehaus.mojo</groupId>
321 <artifactId>wagon-maven-plugin</artifactId>
322 <version>2.0.0</version>
325 <id>download-gecko</id>
326 <phase>validate</phase>
328 <goal>download-single</goal>
331 <url>https://github.com</url>
333 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
335 <toDir>${project.build.directory}/gecko</toDir>
341 <groupId>org.apache.maven.plugins</groupId>
342 <artifactId>maven-antrun-plugin</artifactId>
343 <version>${maven-antrun-plugin.version}</version>
346 <id>set-folder-permission</id>
347 <phase>pre-integration-test</phase>
350 <mkdir dir="/tmp/sdc-integration-tests"/>
351 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
352 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
353 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation"
364 <phase>pre-integration-test</phase>
368 src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
369 compression="gzip" dest="${project.build.directory}/gecko/"/>
370 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir"
381 <groupId>org.codehaus.mojo</groupId>
382 <artifactId>build-helper-maven-plugin</artifactId>
385 <id>reserve-port-for-tests</id>
386 <phase>validate</phase>
388 <goal>reserve-network-port</goal>
392 <portName>sdc.it.docker.cassandra.port</portName>
399 <groupId>io.fabric8</groupId>
400 <artifactId>docker-maven-plugin</artifactId>
403 <groupId>org.apache.httpcomponents</groupId>
404 <artifactId>httpclient</artifactId>
405 <version>4.5.5</version>
409 <verbose>${verbose}</verbose>
410 <apiVersion>${docker.api.version}</apiVersion>
411 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
414 <name>onap/sdc-cassandra:${it.docker.version}</name>
415 <alias>sdc-cassandra</alias>
418 <RELEASE>${project.version}</RELEASE>
419 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
420 <ENVNAME>${it.env.name}</ENVNAME>
421 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
422 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
424 <hostname>sdc-cs</hostname>
427 <volume>${it.chef.config}:/root/chef-solo/environments
454 <port>9042:9042</port>
458 <name>sdc-network</name>
459 <alias>sdc-cs</alias>
464 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
465 <alias>sdc-cassandra-init</alias>
468 <container>sdc-cassandra</container>
471 <RELEASE>${project.version}</RELEASE>
472 <SDC_USER>${it.sdc.user}</SDC_USER>
473 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
474 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
475 <ENVNAME>${it.env.name}</ENVNAME>
477 <hostname>sdc-cs-init</hostname>
480 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
487 <log>SdcSchemaFileImport successfully completed</log>
491 <name>sdc-network</name>
492 <alias>sdc-cs-init</alias>
497 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
498 <alias>sdc-cassandra-onboard-init</alias>
501 <container>sdc-cassandra</container>
504 <RELEASE>${project.version}</RELEASE>
505 <SDC_USER>${it.sdc.user}</SDC_USER>
506 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
507 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
508 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
509 <ENVNAME>${it.env.name}</ENVNAME>
510 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
512 <hostname>sdc-cs-onboard-init</hostname>
515 <volume>${it.chef.config}:/home/sdc/chef-solo/environments
521 <log>Initializing onboard schemas</log>
525 <name>sdc-network</name>
526 <alias>sdc-cs-onboard-init</alias>
531 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
532 <alias>sdc-onboard-backend</alias>
535 <container>sdc-cassandra-onboard-init</container>
538 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
539 </cassandra_ssl_enabled>
540 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
541 <SDC_USER>${it.sdc.user}</SDC_USER>
542 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
543 <ENVNAME>${it.env.name}</ENVNAME>
544 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
546 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001
550 <hostname>sdc-onboard-BE</hostname>
553 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
554 <volume>${project.basedir}/src/test/resources/cert/onboarding-be:/app/jetty/onap/cert
556 <volume>${it.shared.volume}:/app/jetty/logs</volume>
562 <host>sdc-onboard-BE</host>
572 <port>8445:8445</port>
573 <port>8081:8081</port>
574 <port>4001:4001</port>
578 <name>sdc-network</name>
579 <alias>sdc-onboard-BE</alias>
584 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
585 <alias>sdc-backend</alias>
588 <container>sdc-cassandra-init</container>
591 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}
592 </cassandra_ssl_enabled>
593 <ENVNAME>${it.env.name}</ENVNAME>
595 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
598 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
599 <SDC_NSD_CERT_NAME>nsdCert</SDC_NSD_CERT_NAME>
601 <hostname>sdc-BE</hostname>
604 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
605 <volume>${it.shared.volume}:/app/jetty/logs</volume>
607 ${project.basedir}/src/test/resources/cert/catalog-be:/app/jetty/onap/cert
624 <port>8443:8443</port>
625 <port>8080:8080</port>
626 <port>4000:4000</port>
630 <name>sdc-network</name>
631 <alias>sdc-BE</alias>
636 <name>onap/sdc-backend-init:${it.docker.version}</name>
637 <alias>sdc-backend-init</alias>
640 <container>sdc-backend</container>
643 <ENVNAME>${it.env.name}</ENVNAME>
645 <hostname>sdc-BE-init</hostname>
649 ${it.chef.config}:/home/onap/chef-solo/environments
651 <volume>${it.shared.volume}:/home/onap/logs</volume>
656 <log>Chef Client finished</log>
660 <name>sdc-network</name>
661 <alias>sdc-BE-init</alias>
666 <name>onap/sdc-frontend:${it.docker.version}</name>
667 <alias>sdc-frontend</alias>
670 <ENVNAME>${it.env.name}</ENVNAME>
672 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
676 <hostname>sdc-FE</hostname>
679 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
680 <volume>${it.shared.volume}:/app/jetty/logs</volume>
682 ${it.chef.config}/plugins-configuration.yaml:/app/jetty/config/catalog-fe/plugins-configuration.yaml
700 <port>9443:9443</port>
701 <port>8181:8181</port>
702 <port>6000:6000</port>
706 <name>sdc-network</name>
707 <alias>sdc-FE</alias>
712 <name>onap/sdc-simulator:${it.docker.version}</name>
713 <alias>sdc-simulator</alias>
716 <container>sdc-frontend</container>
719 <!--<FE_URL>${it.env.name}</FE_URL>-->
720 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
721 <ENVNAME>${it.env.name}</ENVNAME>
723 <hostname>sdc-sim</hostname>
726 <volume>${it.chef.config}:/app/jetty/chef-solo/environments</volume>
727 <volume>${it.shared.volume}:/app/jetty/logs</volume>
742 <!-- http://localhost:8285/login to access SDC -->
743 <port>8285:8080</port>
744 <port>8286:8443</port>
748 <name>sdc-network</name>
749 <alias>sdc-sim</alias>
755 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
756 <alias>firefox-standalone</alias>
758 <hostname>firefox-standalone</hostname>
762 <host>firefox-standalone</host>
765 <!-- Selenium remote automation port -->
767 <!--<port>5900</port>-->
768 <!-- VNC port for viewing the browser result -->
769 <!-- password to access is "secret" -->
774 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
775 <!--<START_XVFB>false</START_XVFB>-->
776 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
777 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
780 <port>4444:4444</port>
781 <!--<port>5900:5900</port>-->
785 <name>sdc-network</name>
786 <alias>firefox-standalone</alias>
791 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
793 <volume>/dev/shm:/dev/shm</volume>
802 <id>docker-start-for-it</id>
803 <phase>pre-integration-test</phase>
809 <id>docker-stop-for-it</id>
810 <phase>post-integration-test</phase>
819 <groupId>org.apache.maven.plugins</groupId>
820 <artifactId>maven-surefire-plugin</artifactId>
827 <groupId>org.apache.maven.plugins</groupId>
828 <artifactId>maven-failsafe-plugin</artifactId>
830 <forkCount>1</forkCount>
831 <reuseForks>true</reuseForks>
834 <name>testng.dtd.http</name>
839 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
840 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
841 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
842 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
843 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
844 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
845 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
846 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
847 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
848 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
849 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
850 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
851 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
852 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
853 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
854 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
855 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
856 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
857 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
858 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
859 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
860 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
861 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->
869 <id>all-for-integration-tests-only</id>
871 <surefire.skip.tests>true</surefire.skip.tests>
872 <skipTest>false</skipTest>