summaryrefslogtreecommitdiffstats
path: root/odlsli/odlsli-alpine/pom.xml
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2020-11-17 07:42:27 -0500
committerDan Timoney <dtimoney@att.com>2020-11-18 08:27:14 -0500
commit0f24452edf1361992895bf65545be25fe8ccd821 (patch)
treec32a38eaa8a39a40e78b6ee8dac18f2b868caa3a /odlsli/odlsli-alpine/pom.xml
parentaf1e381905d099dd9454ab4bf4d6d965ef5d00dd (diff)
Add integration test for odlsli docker
Add integration test for odlsli docker Change-Id: Ie8140a1c9e480d368cd6653ea80efb58f44eb6dd Issue-ID: CCSDK-2986 Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'odlsli/odlsli-alpine/pom.xml')
-rw-r--r--odlsli/odlsli-alpine/pom.xml112
1 files changed, 109 insertions, 3 deletions
diff --git a/odlsli/odlsli-alpine/pom.xml b/odlsli/odlsli-alpine/pom.xml
index a9d0629e..86b92eb1 100644
--- a/odlsli/odlsli-alpine/pom.xml
+++ b/odlsli/odlsli-alpine/pom.xml
@@ -44,6 +44,7 @@
<ccsdk.sli.northbound.version>1.1.0-SNAPSHOT</ccsdk.sli.northbound.version>
<ccsdk.sli.plugins.version>1.1.0-SNAPSHOT</ccsdk.sli.plugins.version>
<ccsdk.oran.a1adapter.version>1.1.0-SNAPSHOT</ccsdk.oran.a1adapter.version>
+ <docker.autoCreateCustomNetworks>true</docker.autoCreateCustomNetworks>
</properties>
<dependencies>
@@ -549,8 +550,21 @@
</execution>
</executions>
</plugin>
-
-
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>integration-test</goal>
+ <goal>verify</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <skipITs>true</skipITs>
+ </configuration>
+ </plugin>
</plugins>
</build>
@@ -560,6 +574,24 @@
<build>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>integration-test</goal>
+ <goal>verify</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <skipITs>false</skipITs>
+ <environmentVariables>
+ <ODLSLI_PORT>${odlsli.port}</ODLSLI_PORT>
+ </environmentVariables>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.28.0</version>
@@ -589,7 +621,81 @@
<goal>build</goal>
</goals>
</execution>
-
+ <execution>
+ <id>start-it-instance</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>start</goal>
+ </goals>
+ <configuration>
+ <images>
+ <image>
+ <name>mariadb:10.5</name>
+ <alias>odlsli-db</alias>
+ <run>
+ <env>
+ <MYSQL_ROOT_PASSWORD>itsASecret</MYSQL_ROOT_PASSWORD>
+ <MYSQL_USER>sdnctl</MYSQL_USER>
+ <MYSQL_PASSWORD>gamma</MYSQL_PASSWORD>
+ <MYSQL_DATABASE>sdnctl</MYSQL_DATABASE>
+ </env>
+ <network>
+ <mode>custom</mode>
+ <name>onap</name>
+ <alias>dbhost</alias>
+ <alias>sdnctldb01</alias>
+ <alias>sdnctldb02</alias>
+ </network>
+ <ports>
+ <port>odlslidb.port:3306</port>
+ </ports>
+ <log>
+ <enabled>true</enabled>
+ </log>
+ </run>
+ </image>
+ <image>
+ <name>${image.name}:${project.docker.latesttagtimestamp.version}</name>
+ <alias>odlsli-container</alias>
+ <run>
+ <env>
+ <MYSQL_ROOT_PASSWORD>itsASecret</MYSQL_ROOT_PASSWORD>
+ <MYSQL_USER>sdnctl</MYSQL_USER>
+ <MYSQL_PASSWORD>gamma</MYSQL_PASSWORD>
+ <MYSQL_DATABASE>sdnctl</MYSQL_DATABASE>
+ <SDNC_CONFIG_DIR>/opt/onap/ccsdk/data/properties</SDNC_CONFIG_DIR>
+ <KARAF_CONSOLE_LOG_LEVEL>INFO</KARAF_CONSOLE_LOG_LEVEL>
+ </env>
+ <dependsOn>
+ <container>odlsli-db</container>
+ </dependsOn>
+ <network>
+ <mode>custom</mode>
+ <name>onap</name>
+ <alias>odlsli</alias>
+ </network>>
+ <ports>
+ <port>odlsli.port:8181</port>
+ </ports>
+ <wait>
+ <log>all warp coils are now operating at peak efficiency</log>
+ <time>120000</time>
+ </wait>
+ <log>
+ <enabled>true</enabled>
+ </log>
+ </run>
+ </image>
+ </images>
+ </configuration>
+ </execution>
+ <execution>
+ <id>stop-it-instance</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>stop</goal>
+ </goals>
+ </execution>
<execution>
<id>push-images</id>
<phase>${docker.push.phase}</phase>