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>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
54 <it.ui.firefox.version>2.53.1</it.ui.firefox.version>
60 <groupId>ch.qos.logback</groupId>
61 <artifactId>logback-classic</artifactId>
62 <version>${logback.version}</version>
66 <groupId>org.yaml</groupId>
67 <artifactId>snakeyaml</artifactId>
68 <version>${snakeyaml.version}</version>
72 <groupId>com.google.guava</groupId>
73 <artifactId>guava</artifactId>
74 <version>25.0-jre</version>
75 <scope>compile</scope>
78 <groupId>junit</groupId>
79 <artifactId>junit</artifactId>
80 <version>${junit.version}</version>
84 <groupId>org.testng</groupId>
85 <artifactId>testng</artifactId>
86 <version>${testng.version}</version>
90 <groupId>com.google.code.gson</groupId>
91 <artifactId>gson</artifactId>
92 <version>${gson.version}</version>
96 <groupId>org.openecomp.sdc.be</groupId>
97 <artifactId>catalog-model</artifactId>
98 <version>${project.version}</version>
102 <groupId>org.openecomp.sdc.be</groupId>
103 <artifactId>catalog-dao</artifactId>
104 <version>${project.version}</version>
108 <groupId>com.aventstack</groupId>
109 <artifactId>extentreports</artifactId>
110 <version>3.0.6</version>
114 <groupId>org.janusgraph</groupId>
115 <artifactId>janusgraph-core</artifactId>
116 <version>${janusgraph.version}</version>
120 <artifactId>slf4j-log4j12</artifactId>
121 <groupId>org.slf4j</groupId>
124 <artifactId>commons-collections</artifactId>
125 <groupId>commons-collections</groupId>
128 <artifactId>groovy</artifactId>
129 <groupId>org.codehaus.groovy</groupId>
132 <groupId>org.apache.thrift</groupId>
133 <artifactId>libthrift</artifactId>
138 <groupId>org.assertj</groupId>
139 <artifactId>assertj-core</artifactId>
140 <version>${assertj.version}</version>
144 <groupId>com.clearspring.analytics</groupId>
145 <artifactId>stream</artifactId>
146 <version>${clearspring.version}</version>
150 <groupId>org.apache.httpcomponents</groupId>
151 <artifactId>httpclient</artifactId>
152 <version>${httpclient.version}</version>
156 <groupId>org.apache.httpcomponents</groupId>
157 <artifactId>httpcore</artifactId>
158 <version>${httpcore.version}</version>
162 <groupId>com.fasterxml.jackson.core</groupId>
163 <artifactId>jackson-core</artifactId>
164 <version>${jackson.version}</version>
168 <groupId>org.codehaus.jackson</groupId>
169 <artifactId>jackson-mapper-asl</artifactId>
170 <version>1.9.2</version>
174 <groupId>com.fasterxml.jackson.core</groupId>
175 <artifactId>jackson-databind</artifactId>
176 <version>${jackson.version}</version>
180 <groupId>com.fasterxml.jackson.core</groupId>
181 <artifactId>jackson-core</artifactId>
186 <!--FOR the Frontend -->
188 <groupId>org.seleniumhq.selenium</groupId>
189 <artifactId>selenium-java</artifactId>
191 <version>${selenium.version}</version>
194 <groupId>org.seleniumhq.selenium</groupId>
195 <artifactId>selenium-server</artifactId>
196 <version>4.0.0-alpha-2</version>
200 <groupId>org.seleniumhq.selenium</groupId>
201 <artifactId>selenium-firefox-driver</artifactId>
202 <version>${selenium.version}</version>
207 <groupId>net.lightbody.bmp</groupId>
208 <!-- To use the legacy, Jetty-based implementation, change the artifactId
209 to browsermob-core -->
210 <artifactId>browsermob-core</artifactId>
211 <version>2.1.4</version>
215 <groupId>com.fasterxml.jackson.core</groupId>
216 <artifactId>jackson-core</artifactId>
221 <groupId>com.paulhammant</groupId>
222 <artifactId>ngwebdriver</artifactId>
223 <version>0.9.7</version>
227 <groupId>com.github.markusbernhardt</groupId>
228 <artifactId>proxy-vole</artifactId>
229 <version>1.0.2</version>
233 <groupId>org.hamcrest</groupId>
234 <artifactId>hamcrest</artifactId>
235 <version>${hamcrest.version}</version>
239 <groupId>commons-net</groupId>
240 <artifactId>commons-net</artifactId>
241 <version>3.3</version>
248 <!-- Section for Integration tests -->
250 <artifactId>maven-resources-plugin</artifactId>
253 <id>copy-chef-resources</id>
254 <phase>pre-integration-test</phase>
256 <goal>copy-resources</goal>
259 <outputDirectory>${it.chef.config}</outputDirectory>
262 <directory>environments</directory>
263 <filtering>true</filtering>
265 <include>integration-test.json</include>
266 <include>plugins-configuration.yaml</include>
273 <id>copy-sdc-be-plugins</id>
274 <phase>pre-integration-test</phase>
276 <goal>copy-resources</goal>
279 <outputDirectory>${it.sdc-be.plugins}</outputDirectory>
282 <directory>../catalog-be-plugins/etsi-nfv-nsd-csar-plugin/target</directory>
283 <filtering>false</filtering>
285 <include>etsi-nfv-nsd-csar-plugin-${version}.jar</include>
294 <groupId>org.codehaus.mojo</groupId>
295 <artifactId>wagon-maven-plugin</artifactId>
296 <version>2.0.0</version>
299 <id>download-gecko</id>
300 <phase>validate</phase>
302 <goal>download-single</goal>
305 <url>https://github.com</url>
307 mozilla/geckodriver/releases/download/v${gecko.driver.version}/geckodriver-v${gecko.driver.version}-linux64.tar.gz
309 <toDir>${project.build.directory}/gecko</toDir>
315 <artifactId>maven-antrun-plugin</artifactId>
316 <version>1.8</version>
319 <id>set-folder-permission</id>
320 <phase>pre-integration-test</phase>
323 <mkdir dir="/tmp/sdc-integration-tests"/>
324 <chmod dir="/tmp/sdc-integration-tests" type="dir" perm="ugo+rwx"/>
325 <mkdir dir="/tmp/sdc-integration-tests/downloadAutomation"/>
326 <chmod dir="/tmp/sdc-integration-tests/downloadAutomation" type="dir" perm="ugo+rwx"/>
335 <phase>pre-integration-test</phase>
338 <untar src="${project.build.directory}/gecko/geckodriver-v${gecko.driver.version}-linux64.tar.gz"
339 compression="gzip" dest="${project.build.directory}/gecko/"/>
340 <chmod dir="${project.build.directory}/gecko/geckodriver" type="dir" perm="ugo+rwx"/>
350 <groupId>org.codehaus.mojo</groupId>
351 <artifactId>build-helper-maven-plugin</artifactId>
354 <id>reserve-port-for-tests</id>
355 <phase>validate</phase>
357 <goal>reserve-network-port</goal>
361 <portName>sdc.it.docker.cassandra.port</portName>
368 <groupId>io.fabric8</groupId>
369 <artifactId>docker-maven-plugin</artifactId>
372 <groupId>org.apache.httpcomponents</groupId>
373 <artifactId>httpclient</artifactId>
374 <version>4.5.5</version>
378 <verbose>true</verbose>
379 <apiVersion>${docker.api.version}</apiVersion>
380 <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
383 <name>onap/sdc-cassandra:${it.docker.version}</name>
384 <alias>sdc-cassandra</alias>
387 <RELEASE>${project.version}</RELEASE>
388 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
389 <ENVNAME>${it.env.name}</ENVNAME>
390 <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE>
391 <HEAP_NEWSIZE>512M</HEAP_NEWSIZE>
393 <hostname>sdc-cs</hostname>
396 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
422 <port>9042:9042</port>
426 <name>sdc-network</name>
427 <alias>sdc-cs</alias>
432 <name>onap/sdc-cassandra-init:${it.docker.version}</name>
433 <alias>sdc-cassandra-init</alias>
436 <container>sdc-cassandra</container>
439 <RELEASE>${project.version}</RELEASE>
440 <SDC_USER>${it.sdc.user}</SDC_USER>
441 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
442 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
443 <ENVNAME>${it.env.name}</ENVNAME>
445 <hostname>sdc-cs-init</hostname>
448 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
453 <log>SdcSchemaFileImport successfully completed</log>
457 <name>sdc-network</name>
458 <alias>sdc-cs-init</alias>
463 <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name>
464 <alias>sdc-cassandra-onboard-init</alias>
467 <container>sdc-cassandra</container>
470 <RELEASE>${project.version}</RELEASE>
471 <SDC_USER>${it.sdc.user}</SDC_USER>
472 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
473 <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD>
474 <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT>
475 <ENVNAME>${it.env.name}</ENVNAME>
476 <CS_HOST_IP>sdc-cs</CS_HOST_IP>
478 <hostname>sdc-cs-onboard-init</hostname>
481 <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume>
486 <log>Initializing onboard schemas</log>
490 <name>sdc-network</name>
491 <alias>sdc-cs-onboard-init</alias>
496 <name>onap/sdc-onboard-backend:${it.docker.version}</name>
497 <alias>sdc-onboard-backend</alias>
500 <container>sdc-cassandra-onboard-init</container>
503 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
504 <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME>
505 <SDC_USER>${it.sdc.user}</SDC_USER>
506 <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD>
507 <ENVNAME>${it.env.name}</ENVNAME>
508 <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR>
509 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4001 -Xmx1g -Xms1g</JAVA_OPTIONS>
511 <hostname>sdc-onboard-BE</hostname>
514 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
515 <volume>${project.basedir}/src/test/resources/cert:/var/lib/jetty/onap/cert
522 <host>sdc-onboard-BE</host>
532 <port>8445:8445</port>
533 <port>8081:8081</port>
534 <port>4001:4001</port>
538 <name>sdc-network</name>
539 <alias>sdc-onboard-BE</alias>
544 <name>onap/sdc-backend-all-plugins:${it.docker.version}</name>
545 <alias>sdc-backend</alias>
548 <container>sdc-cassandra-init</container>
551 <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled>
552 <ENVNAME>${it.env.name}</ENVNAME>
553 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:4000
554 -Xmx1536m -Xms1536m</JAVA_OPTIONS>
556 <hostname>sdc-BE</hostname>
559 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
560 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
576 <port>8443:8443</port>
577 <port>8080:8080</port>
578 <port>4000:4000</port>
582 <name>sdc-network</name>
583 <alias>sdc-BE</alias>
588 <name>onap/sdc-backend-init:${it.docker.version}</name>
589 <alias>sdc-backend-init</alias>
592 <container>sdc-backend</container>
595 <ENVNAME>${it.env.name}</ENVNAME>
597 <hostname>sdc-BE-init</hostname>
600 <volume>${it.chef.config}:/home/onap/chef-solo/environments</volume>
601 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
606 <log>Chef Client finished</log>
610 <name>sdc-network</name>
611 <alias>sdc-BE-init</alias>
616 <name>onap/sdc-frontend:${it.docker.version}</name>
617 <alias>sdc-frontend</alias>
620 <ENVNAME>${it.env.name}</ENVNAME>
621 <JAVA_OPTIONS>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:6000
622 -Xmx256m -Xms256m</JAVA_OPTIONS>
624 <hostname>sdc-FE</hostname>
627 <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume>
628 <volume>${it.shared.volume}:/var/lib/jetty/logs</volume>
630 ${it.chef.config}/plugins-configuration.yaml:/var/lib/jetty/config/catalog-fe/plugins-configuration.yaml
647 <port>9443:9443</port>
648 <port>8181:8181</port>
649 <port>6000:6000</port>
653 <name>sdc-network</name>
654 <alias>sdc-FE</alias>
659 <name>onap/sdc-simulator:${it.docker.version}</name>
660 <alias>sdc-simulator</alias>
663 <container>sdc-frontend</container>
666 <!--<FE_URL>${it.env.name}</FE_URL>-->
667 <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS>
668 <ENVNAME>${it.env.name}</ENVNAME>
670 <hostname>sdc-sim</hostname>
673 <volume>${it.chef.config}:/root/chef-solo/environments</volume>
688 <!-- http://localhost:8285/login to access SDC -->
689 <port>8285:8080</port>
690 <port>8286:8443</port>
694 <name>sdc-network</name>
695 <alias>sdc-sim</alias>
701 <name>selenium/standalone-firefox:${it.ui.firefox.version}</name>
702 <alias>firefox-standalone</alias>
704 <hostname>firefox-standalone</hostname>
708 <host>firefox-standalone</host>
711 <!-- Selenium remote automation port -->
713 <!--<port>5900</port>-->
714 <!-- VNC port for viewing the browser result -->
715 <!-- password to access is "secret" -->
721 <SE_OPTS>-debug</SE_OPTS>
722 <JAVA_OPTS>-Xmx512m</JAVA_OPTS>
723 <!--<START_XVFB>false</START_XVFB>-->
724 <SCREEN_WIDTH>1920</SCREEN_WIDTH>
725 <SCREEN_HEIGHT>1440</SCREEN_HEIGHT>
728 <port>4444:4444</port>
729 <!--<port>5900:5900</port>-->
733 <name>sdc-network</name>
734 <alias>firefox-standalone</alias>
739 /tmp/sdc-integration-tests/downloadAutomation/:/home/seluser/Desktop
741 <volume>/dev/shm:/dev/shm</volume>
750 <id>docker-start-for-it</id>
751 <phase>pre-integration-test</phase>
757 <id>docker-stop-for-it</id>
758 <phase>post-integration-test</phase>
767 <groupId>org.apache.maven.plugins</groupId>
768 <artifactId>maven-surefire-plugin</artifactId>
775 <groupId>org.apache.maven.plugins</groupId>
776 <artifactId>maven-failsafe-plugin</artifactId>
778 <forkCount>1</forkCount>
779 <reuseForks>true</reuseForks>
782 <name>testng.dtd.http</name>
787 <file>src/test/resources/ci/testSuites/backend/onapApiSanity.xml</file>
788 <file>src/test/resources/ci/testSuites/frontend/onapUiSanity.xml</file>
789 <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>-->
790 <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>-->
791 <!--<file>src/test/resources/ci/testSuites/category.xml</file>-->
792 <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>-->
793 <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>-->
794 <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>-->
795 <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>-->
796 <!-- <file>src/test/resources/ci/testSuites/general.xml</file>-->
797 <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>-->
798 <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>-->
799 <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>-->
800 <!--<file>src/test/resources/ci/testSuites/pass.xml</file>-->
801 <!-- <file>src/test/resources/ci/testSuites/product.xml</file>-->
802 <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>-->
803 <!-- <file>src/test/resources/ci/testSuites/property.xml</file>-->
804 <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>-->
805 <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>-->
806 <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>-->
807 <!-- <file>src/test/resources/ci/testSuites/service.xml</file>-->
808 <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>-->
809 <!-- <file>src/test/resources/ci/testSuites/user.xml</file>-->