sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | SDC |
| 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 |
| 10 | * |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | * |
| 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 | ================================================================================ |
| 20 | --> |
| 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 22 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 23 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 24 | <modelVersion>4.0.0</modelVersion> |
| 25 | |
| 26 | <groupId>org.openecomp.sdc</groupId> |
| 27 | <artifactId>sdc-integration-tests</artifactId> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 28 | <packaging>jar</packaging> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 29 | <name>sdc-integration-tests</name> |
| 30 | |
| 31 | <parent> |
| 32 | <groupId>org.openecomp.sdc</groupId> |
| 33 | <artifactId>sdc-main</artifactId> |
| 34 | <version>1.7.0-SNAPSHOT</version> |
| 35 | </parent> |
| 36 | |
| 37 | <properties> |
| 38 | <!-- Integration tests parameters --> |
| 39 | <it.env.name>integration-test</it.env.name> |
| 40 | <it.cassandra.port>9042</it.cassandra.port> |
| 41 | <it.cassandra.password>onap123#@!</it.cassandra.password> |
| 42 | <it.cassandra.ssl.enabled>false</it.cassandra.ssl.enabled> |
| 43 | <it.sdc.cluster.name>SDC-CS-${it.env.name}</it.sdc.cluster.name> |
| 44 | <it.sdc.user>asdc_user</it.sdc.user> |
| 45 | <it.sdc.password>Aa1234%^!</it.sdc.password> |
| 46 | <it.chef.config>${project.build.directory}/chef-config</it.chef.config> |
| 47 | <it.shared.volume>/tmp/sdc-integration-tests</it.shared.volume> |
| 48 | <it.docker.version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest |
| 49 | </it.docker.version> |
| 50 | </properties> |
| 51 | |
| 52 | <dependencies> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 53 | <dependency> |
| 54 | <groupId>org.yaml</groupId> |
| 55 | <artifactId>snakeyaml</artifactId> |
| 56 | <version>${snakeyaml.version}</version> |
| 57 | <scope>test</scope> |
| 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>com.google.guava</groupId> |
| 61 | <artifactId>guava</artifactId> |
| 62 | <version>${guava.version}</version> |
| 63 | <scope>test</scope> |
| 64 | </dependency> |
| 65 | <dependency> |
| 66 | <groupId>junit</groupId> |
| 67 | <artifactId>junit</artifactId> |
| 68 | <version>${junit.version}</version> |
| 69 | <scope>test</scope> |
| 70 | </dependency> |
| 71 | <dependency> |
| 72 | <groupId>org.testng</groupId> |
| 73 | <artifactId>testng</artifactId> |
| 74 | <version>${testng.version}</version> |
| 75 | <scope>test</scope> |
| 76 | </dependency> |
| 77 | <dependency> |
| 78 | <groupId>com.google.code.gson</groupId> |
| 79 | <artifactId>gson</artifactId> |
| 80 | <version>${gson.version}</version> |
| 81 | <scope>test</scope> |
| 82 | </dependency> |
| 83 | <dependency> |
| 84 | <groupId>org.openecomp.sdc.be</groupId> |
| 85 | <artifactId>catalog-model</artifactId> |
| 86 | <version>${project.version}</version> |
| 87 | <scope>test</scope> |
| 88 | </dependency> |
| 89 | <dependency> |
| 90 | <groupId>org.openecomp.sdc.be</groupId> |
| 91 | <artifactId>catalog-dao</artifactId> |
| 92 | <version>${project.version}</version> |
| 93 | <scope>test</scope> |
| 94 | </dependency> |
| 95 | <dependency> |
| 96 | <groupId>com.aventstack</groupId> |
| 97 | <artifactId>extentreports</artifactId> |
| 98 | <version>3.0.6</version> |
| 99 | <!--to update --> |
| 100 | <scope>test</scope> |
| 101 | </dependency> |
| 102 | <dependency> |
| 103 | <groupId>org.janusgraph</groupId> |
| 104 | <artifactId>janusgraph-core</artifactId> |
| 105 | <version>${janusgraph.version}</version> |
| 106 | <scope>test</scope> |
| 107 | <exclusions> |
| 108 | <exclusion> |
| 109 | <artifactId>slf4j-log4j12</artifactId> |
| 110 | <groupId>org.slf4j</groupId> |
| 111 | </exclusion> |
| 112 | <exclusion> |
| 113 | <artifactId>commons-collections</artifactId> |
| 114 | <groupId>commons-collections</groupId> |
| 115 | </exclusion> |
| 116 | <exclusion> |
| 117 | <artifactId>groovy</artifactId> |
| 118 | <groupId>org.codehaus.groovy</groupId> |
| 119 | </exclusion> |
| 120 | <exclusion> |
| 121 | <groupId>org.apache.thrift</groupId> |
| 122 | <artifactId>libthrift</artifactId> |
| 123 | </exclusion> |
| 124 | </exclusions> |
| 125 | </dependency> |
| 126 | <dependency> |
| 127 | <groupId>org.assertj</groupId> |
| 128 | <artifactId>assertj-core</artifactId> |
| 129 | <version>${assertj.version}</version> |
| 130 | <scope>test</scope> |
| 131 | </dependency> |
| 132 | <dependency> |
| 133 | <groupId>com.clearspring.analytics</groupId> |
| 134 | <artifactId>stream</artifactId> |
| 135 | <version>${clearspring.version}</version> |
| 136 | <scope>test</scope> |
| 137 | </dependency> |
| 138 | <dependency> |
| 139 | <groupId>org.apache.httpcomponents</groupId> |
| 140 | <artifactId>httpclient</artifactId> |
| 141 | <version>${httpclient.version}</version> |
| 142 | <scope>test</scope> |
| 143 | </dependency> |
| 144 | <dependency> |
| 145 | <groupId>org.apache.httpcomponents</groupId> |
| 146 | <artifactId>httpcore</artifactId> |
| 147 | <version>${httpcore.version}</version> |
| 148 | <scope>test</scope> |
| 149 | </dependency> |
| 150 | <dependency> |
| 151 | <groupId>com.fasterxml.jackson.core</groupId> |
| 152 | <artifactId>jackson-core</artifactId> |
| 153 | <version>${jackson.version}</version> |
| 154 | <scope>test</scope> |
| 155 | </dependency> |
| 156 | <dependency> |
| 157 | <groupId>org.codehaus.jackson</groupId> |
| 158 | <artifactId>jackson-mapper-asl</artifactId> |
| 159 | <version>1.9.2</version> |
| 160 | <scope>test</scope> |
| 161 | </dependency> |
| 162 | <dependency> |
| 163 | <groupId>com.fasterxml.jackson.core</groupId> |
| 164 | <artifactId>jackson-databind</artifactId> |
| 165 | <version>${jackson.version}</version> |
| 166 | <scope>test</scope> |
| 167 | <exclusions> |
| 168 | <exclusion> |
| 169 | <groupId>com.fasterxml.jackson.core</groupId> |
| 170 | <artifactId>jackson-core</artifactId> |
| 171 | </exclusion> |
| 172 | </exclusions> |
| 173 | </dependency> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 174 | </dependencies> |
| 175 | |
| 176 | <build> |
| 177 | <plugins> |
| 178 | <!-- Section for Integration tests --> |
| 179 | <plugin> |
| 180 | <artifactId>maven-resources-plugin</artifactId> |
| 181 | <executions> |
| 182 | <execution> |
| 183 | <id>copy-resources</id> |
| 184 | <phase>pre-integration-test</phase> |
| 185 | <goals> |
| 186 | <goal>copy-resources</goal> |
| 187 | </goals> |
| 188 | <configuration> |
| 189 | <outputDirectory>${it.chef.config}</outputDirectory> |
| 190 | <resources> |
| 191 | <resource> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 192 | <directory>environments</directory> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 193 | <filtering>true</filtering> |
| 194 | <includes> |
| 195 | <include>integration-test.json</include> |
| 196 | </includes> |
| 197 | </resource> |
| 198 | </resources> |
| 199 | </configuration> |
| 200 | </execution> |
| 201 | </executions> |
| 202 | </plugin> |
| 203 | <plugin> |
| 204 | <artifactId>maven-antrun-plugin</artifactId> |
| 205 | <version>1.8</version> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 206 | <executions> |
| 207 | <execution> |
| 208 | <phase>pre-integration-test</phase> |
| 209 | <configuration> |
| 210 | <target> |
| 211 | <mkdir dir="${it.shared.volume}"/> |
| 212 | <chmod dir="${it.shared.volume}" type="dir" perm="ugo+rwx"/> |
| 213 | </target> |
| 214 | </configuration> |
| 215 | <goals> |
| 216 | <goal>run</goal> |
| 217 | </goals> |
| 218 | </execution> |
| 219 | </executions> |
| 220 | </plugin> |
| 221 | <plugin> |
| 222 | <groupId>org.codehaus.mojo</groupId> |
| 223 | <artifactId>build-helper-maven-plugin</artifactId> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 224 | <executions> |
| 225 | <execution> |
| 226 | <id>reserve-port-for-tests</id> |
| 227 | <phase>validate</phase> |
| 228 | <goals> |
| 229 | <goal>reserve-network-port</goal> |
| 230 | </goals> |
| 231 | <configuration> |
| 232 | <portNames> |
| 233 | <portName>sdc.it.docker.cassandra.port</portName> |
| 234 | </portNames> |
| 235 | </configuration> |
| 236 | </execution> |
| 237 | </executions> |
| 238 | </plugin> |
| 239 | <plugin> |
| 240 | <groupId>io.fabric8</groupId> |
| 241 | <artifactId>docker-maven-plugin</artifactId> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 242 | <dependencies> |
| 243 | <dependency> |
| 244 | <groupId>org.apache.httpcomponents</groupId> |
| 245 | <artifactId>httpclient</artifactId> |
| 246 | <version>4.5.5</version> |
| 247 | </dependency> |
| 248 | </dependencies> |
| 249 | <configuration> |
| 250 | <verbose>true</verbose> |
| 251 | <apiVersion>1.35</apiVersion> |
| 252 | <autoCreateCustomNetworks>true</autoCreateCustomNetworks> |
| 253 | <images> |
| 254 | <image> |
| 255 | <name>onap/sdc-cassandra:${it.docker.version}</name> |
| 256 | <alias>sdc-cassandra</alias> |
| 257 | <run> |
| 258 | <env> |
| 259 | <RELEASE>${project.version}</RELEASE> |
| 260 | <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD> |
| 261 | <ENVNAME>${it.env.name}</ENVNAME> |
| 262 | <MAX_HEAP_SIZE>1536M</MAX_HEAP_SIZE> |
| 263 | <HEAP_NEWSIZE>512M</HEAP_NEWSIZE> |
| 264 | </env> |
| 265 | <hostname>sdc-cs</hostname> |
| 266 | <volumes> |
| 267 | <bind> |
| 268 | <volume>${it.chef.config}:/root/chef-solo/environments</volume> |
| 269 | </bind> |
| 270 | </volumes> |
| 271 | <ulimits> |
| 272 | <ulimit> |
| 273 | <name>memlock</name> |
| 274 | <hard>-1</hard> |
| 275 | <soft>-1</soft> |
| 276 | </ulimit> |
| 277 | <ulimit> |
| 278 | <name>nofile</name> |
| 279 | <hard>100000</hard> |
| 280 | <soft>100000</soft> |
| 281 | </ulimit> |
| 282 | </ulimits> |
| 283 | <wait> |
| 284 | <time>120000</time> |
| 285 | <tcp> |
| 286 | <host>sdc-cs</host> |
| 287 | <mode>direct</mode> |
| 288 | <ports> |
| 289 | <port>9042</port> |
| 290 | </ports> |
| 291 | </tcp> |
| 292 | </wait> |
| 293 | <ports> |
| 294 | <port>9042:9042</port> |
| 295 | </ports> |
| 296 | <network> |
| 297 | <mode>custom</mode> |
| 298 | <name>sdc-network</name> |
| 299 | <alias>sdc-cs</alias> |
| 300 | </network> |
| 301 | </run> |
| 302 | </image> |
| 303 | <image> |
| 304 | <name>onap/sdc-cassandra-init:${it.docker.version}</name> |
| 305 | <alias>sdc-cassandra-init</alias> |
| 306 | <run> |
| 307 | <dependsOn> |
| 308 | <container>sdc-cassandra</container> |
| 309 | </dependsOn> |
| 310 | <env> |
| 311 | <RELEASE>${project.version}</RELEASE> |
| 312 | <SDC_USER>${it.sdc.user}</SDC_USER> |
| 313 | <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD> |
| 314 | <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD> |
| 315 | <ENVNAME>${it.env.name}</ENVNAME> |
| 316 | </env> |
| 317 | <hostname>sdc-cs-init</hostname> |
| 318 | <volumes> |
| 319 | <bind> |
| 320 | <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume> |
| 321 | </bind> |
| 322 | </volumes> |
| 323 | <wait> |
| 324 | <time>300000</time> |
| 325 | <log>SdcSchemaFileImport successfully completed</log> |
| 326 | </wait> |
| 327 | <network> |
| 328 | <mode>custom</mode> |
| 329 | <name>sdc-network</name> |
| 330 | <alias>sdc-cs-init</alias> |
| 331 | </network> |
| 332 | </run> |
| 333 | </image> |
| 334 | <image> |
| 335 | <name>onap/sdc-onboard-cassandra-init:${it.docker.version}</name> |
| 336 | <alias>sdc-cassandra-onboard-init</alias> |
| 337 | <run> |
| 338 | <dependsOn> |
| 339 | <container>sdc-cassandra-init</container> |
| 340 | </dependsOn> |
| 341 | <env> |
| 342 | <RELEASE>${project.version}</RELEASE> |
| 343 | <SDC_USER>${it.sdc.user}</SDC_USER> |
| 344 | <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD> |
| 345 | <CS_PASSWORD>${it.cassandra.password}</CS_PASSWORD> |
| 346 | <CS_HOST_PORT>${it.cassandra.port}</CS_HOST_PORT> |
| 347 | <ENVNAME>${it.env.name}</ENVNAME> |
| 348 | <CS_HOST_IP>sdc-cs</CS_HOST_IP> |
| 349 | </env> |
| 350 | <hostname>sdc-cs-onboard-init</hostname> |
| 351 | <volumes> |
| 352 | <bind> |
| 353 | <volume>${it.chef.config}:/home/sdc/chef-solo/environments</volume> |
| 354 | </bind> |
| 355 | </volumes> |
| 356 | <wait> |
| 357 | <time>30000</time> |
| 358 | <log>Initializing onboard schemas</log> |
| 359 | </wait> |
| 360 | <network> |
| 361 | <mode>custom</mode> |
| 362 | <name>sdc-network</name> |
| 363 | <alias>sdc-cs-onboard-init</alias> |
| 364 | </network> |
| 365 | </run> |
| 366 | </image> |
| 367 | <image> |
| 368 | <name>onap/sdc-onboard-backend:${it.docker.version}</name> |
| 369 | <alias>sdc-onboard-backend</alias> |
| 370 | <run> |
| 371 | <dependsOn> |
| 372 | <container>sdc-cassandra-onboard-init</container> |
| 373 | </dependsOn> |
| 374 | <env> |
| 375 | <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled> |
| 376 | <SDC_CLUSTER_NAME>${it.sdc.cluster.name}</SDC_CLUSTER_NAME> |
| 377 | <SDC_USER>${it.sdc.user}</SDC_USER> |
| 378 | <SDC_PASSWORD>${it.sdc.password}</SDC_PASSWORD> |
| 379 | <ENVNAME>${it.env.name}</ENVNAME> |
| 380 | <SDC_CERT_DIR>onap/cert</SDC_CERT_DIR> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 381 | <JAVA_OPTIONS>-Xdebug -agentlib:jdwp=transport=dt_socket,address=4001,server=y,suspend=n -Xmx1g -Xms1g</JAVA_OPTIONS> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 382 | </env> |
| 383 | <hostname>sdc-onboard-BE</hostname> |
| 384 | <volumes> |
| 385 | <bind> |
| 386 | <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 387 | <volume>${project.basedir}/src/test/resources/cert:/var/lib/jetty/onap/cert</volume> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 388 | </bind> |
| 389 | </volumes> |
| 390 | <wait> |
| 391 | <time>30000</time> |
| 392 | <tcp> |
| 393 | <host>sdc-onboard-BE</host> |
| 394 | <mode>direct</mode> |
| 395 | <ports> |
| 396 | <port>8445</port> |
| 397 | <port>8081</port> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 398 | <port>4001</port> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 399 | </ports> |
| 400 | </tcp> |
| 401 | </wait> |
| 402 | <ports> |
| 403 | <port>8445:8445</port> |
| 404 | <port>8081:8081</port> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 405 | <port>4001:4001</port> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 406 | </ports> |
| 407 | <network> |
| 408 | <mode>custom</mode> |
| 409 | <name>sdc-network</name> |
| 410 | <alias>sdc-onboard-BE</alias> |
| 411 | </network> |
| 412 | </run> |
| 413 | </image> |
| 414 | <image> |
| 415 | <name>onap/sdc-backend:${it.docker.version}</name> |
| 416 | <alias>sdc-backend</alias> |
| 417 | <run> |
| 418 | <dependsOn> |
| 419 | <container>sdc-onboard-backend</container> |
| 420 | </dependsOn> |
| 421 | <env> |
| 422 | <cassandra_ssl_enabled>${it.cassandra.ssl.enabled}</cassandra_ssl_enabled> |
| 423 | <ENVNAME>${it.env.name}</ENVNAME> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 424 | <JAVA_OPTIONS>-Xdebug -agentlib:jdwp=transport=dt_socket,address=4000,server=y,suspend=n -Xmx1536m -Xms1536m</JAVA_OPTIONS> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 425 | </env> |
| 426 | <hostname>sdc-BE</hostname> |
| 427 | <volumes> |
| 428 | <bind> |
| 429 | <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume> |
| 430 | <volume>${it.shared.volume}:/var/lib/jetty/logs</volume> |
| 431 | </bind> |
| 432 | </volumes> |
| 433 | <wait> |
| 434 | <time>60000</time> |
| 435 | <tcp> |
| 436 | <host>sdc-BE</host> |
| 437 | <mode>direct</mode> |
| 438 | <ports> |
| 439 | <port>8443</port> |
| 440 | <port>8080</port> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 441 | <port>4000</port> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 442 | </ports> |
| 443 | </tcp> |
| 444 | </wait> |
| 445 | <ports> |
| 446 | <port>8443:8443</port> |
| 447 | <port>8080:8080</port> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 448 | <port>4000:4000</port> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 449 | </ports> |
| 450 | <network> |
| 451 | <mode>custom</mode> |
| 452 | <name>sdc-network</name> |
| 453 | <alias>sdc-BE</alias> |
| 454 | </network> |
| 455 | </run> |
| 456 | </image> |
| 457 | <image> |
| 458 | <name>onap/sdc-backend-init:${it.docker.version}</name> |
| 459 | <alias>sdc-backend-init</alias> |
| 460 | <run> |
| 461 | <dependsOn> |
| 462 | <container>sdc-backend</container> |
| 463 | </dependsOn> |
| 464 | <env> |
| 465 | <ENVNAME>${it.env.name}</ENVNAME> |
| 466 | </env> |
| 467 | <hostname>sdc-BE-init</hostname> |
| 468 | <volumes> |
| 469 | <bind> |
| 470 | <volume>${it.chef.config}:/home/onap/chef-solo/environments</volume> |
| 471 | <volume>${it.shared.volume}:/var/lib/jetty/logs</volume> |
| 472 | </bind> |
| 473 | </volumes> |
| 474 | <wait> |
| 475 | <time>600000</time> |
| 476 | <log>Chef Client finished</log> |
| 477 | </wait> |
| 478 | <network> |
| 479 | <mode>custom</mode> |
| 480 | <name>sdc-network</name> |
| 481 | <alias>sdc-BE-init</alias> |
| 482 | </network> |
| 483 | </run> |
| 484 | </image> |
| 485 | <image> |
| 486 | <name>onap/sdc-frontend:${it.docker.version}</name> |
| 487 | <alias>sdc-frontend</alias> |
| 488 | <run> |
| 489 | <dependsOn> |
| 490 | <container>sdc-backend-init</container> |
| 491 | </dependsOn> |
| 492 | <env> |
| 493 | <ENVNAME>${it.env.name}</ENVNAME> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 494 | <JAVA_OPTIONS>-Xdebug -agentlib:jdwp=transport=dt_socket,address=6000,server=y,suspend=n -Xmx256m -Xms256m</JAVA_OPTIONS> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 495 | </env> |
| 496 | <hostname>sdc-FE</hostname> |
| 497 | <volumes> |
| 498 | <bind> |
| 499 | <volume>${it.chef.config}:/var/lib/jetty/chef-solo/environments</volume> |
| 500 | <volume>${it.shared.volume}:/var/lib/jetty/logs</volume> |
| 501 | <volume> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 502 | environments/plugins-configuration.yaml:/var/lib/jetty/config/catalog-fe/plugins-configuration.yaml |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 503 | </volume> |
| 504 | </bind> |
| 505 | </volumes> |
| 506 | <wait> |
| 507 | <time>60000</time> |
| 508 | <tcp> |
| 509 | <host>sdc-FE</host> |
| 510 | <mode>direct</mode> |
| 511 | <ports> |
| 512 | <port>9443</port> |
| 513 | <port>8181</port> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 514 | <port>6000</port> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 515 | </ports> |
| 516 | </tcp> |
| 517 | </wait> |
| 518 | <ports> |
| 519 | <port>9443:9443</port> |
| 520 | <port>8181:8181</port> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 521 | <port>6000:6000</port> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 522 | </ports> |
| 523 | <network> |
| 524 | <mode>custom</mode> |
| 525 | <name>sdc-network</name> |
| 526 | <alias>sdc-FE</alias> |
| 527 | </network> |
| 528 | </run> |
| 529 | </image> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 530 | <image> |
| 531 | <name>onap/sdc-simulator:${it.docker.version}</name> |
| 532 | <alias>sdc-simulator</alias> |
| 533 | <run> |
| 534 | <dependsOn> |
| 535 | <container>sdc-frontend</container> |
| 536 | </dependsOn> |
| 537 | <env> |
| 538 | <!--<FE_URL>${it.env.name}</FE_URL>--> |
| 539 | <JAVA_OPTIONS>-Xmx128m -Xms128m -Xss1m</JAVA_OPTIONS> |
| 540 | <ENVNAME>${it.env.name}</ENVNAME> |
| 541 | </env> |
| 542 | <hostname>sdc-sim</hostname> |
| 543 | <volumes> |
| 544 | <bind> |
| 545 | <volume>${it.chef.config}:/root/chef-solo/environments</volume> |
| 546 | </bind> |
| 547 | </volumes> |
| 548 | <wait> |
| 549 | <time>60000</time> |
| 550 | <tcp> |
| 551 | <host>sdc-sim</host> |
| 552 | <mode>direct</mode> |
| 553 | <ports> |
| 554 | <port>8080</port> |
| 555 | <port>8443</port> |
| 556 | </ports> |
| 557 | </tcp> |
| 558 | </wait> |
| 559 | <ports> |
| 560 | <port>8285:8080</port> |
| 561 | <port>8286:8443</port> |
| 562 | </ports> |
| 563 | <network> |
| 564 | <mode>custom</mode> |
| 565 | <name>sdc-network</name> |
| 566 | <alias>sdc-sim</alias> |
| 567 | </network> |
| 568 | </run> |
| 569 | </image> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 570 | </images> |
| 571 | </configuration> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 572 | <executions> |
| 573 | <execution> |
| 574 | <id>docker-start-for-it</id> |
| 575 | <phase>pre-integration-test</phase> |
| 576 | <goals> |
| 577 | <goal>start</goal> |
| 578 | </goals> |
| 579 | </execution> |
| 580 | <execution> |
| 581 | <id>docker-stop-for-it</id> |
| 582 | <phase>post-integration-test</phase> |
| 583 | <goals> |
| 584 | <goal>stop</goal> |
| 585 | </goals> |
| 586 | </execution> |
| 587 | </executions> |
| 588 | </plugin> |
JulienBe | b167946 | 2020-08-19 11:12:59 +0200 | [diff] [blame] | 589 | |
| 590 | <plugin> |
| 591 | <groupId>org.apache.maven.plugins</groupId> |
| 592 | <artifactId>maven-surefire-plugin</artifactId> |
| 593 | <configuration> |
| 594 | <skip>true</skip> |
| 595 | </configuration> |
| 596 | </plugin> |
| 597 | <plugin> |
| 598 | <groupId>org.apache.maven.plugins</groupId> |
| 599 | <artifactId>maven-failsafe-plugin</artifactId> |
| 600 | <configuration> |
| 601 | <suiteXmlFiles> |
| 602 | <file>src/test/resources/ci/testSuites/onapApiSanity.xml</file> |
| 603 | <!--<file>src/test/resources/ci/testSuites/artifacts.xml</file>--> |
| 604 | <!--<file>src/test/resources/ci/testSuites/cap_req.xml</file>--> |
| 605 | <!--<file>src/test/resources/ci/testSuites/category.xml</file>--> |
| 606 | <!--<file>src/test/resources/ci/testSuites/ciFull.xml</file>--> |
| 607 | <!--<file>src/test/resources/ci/testSuites/CRUDArtifacts.xml</file>--> |
| 608 | <!--<file>src/test/resources/ci/testSuites/externalAPIs.xml</file>--> |
| 609 | <!--<file>src/test/resources/ci/testSuites/ExternalApiSanity.xml</file>--> |
| 610 | <!-- <file>src/test/resources/ci/testSuites/general.xml</file>--> |
| 611 | <!-- <file>src/test/resources/ci/testSuites/imports.xml</file>--> |
| 612 | <!--<file>src/test/resources/ci/testSuites/normatives.xml</file>--> |
| 613 | <!--<file>src/test/resources/ci/testSuites/onapApiSanity.xml</file>--> |
| 614 | <!--<file>src/test/resources/ci/testSuites/pass.xml</file>--> |
| 615 | <!-- <file>src/test/resources/ci/testSuites/product.xml</file>--> |
| 616 | <!--<file>src/test/resources/ci/testSuites/productAPIs.xml</file>--> |
| 617 | <!-- <file>src/test/resources/ci/testSuites/property.xml</file>--> |
| 618 | <!-- <file>src/test/resources/ci/testSuites/resource.xml</file>--> |
| 619 | <!--<file>src/test/resources/ci/testSuites/sanity.xml</file>--> |
| 620 | <!--<file>src/test/resources/ci/testSuites/SearchExternalAPI.xml</file>--> |
| 621 | <!-- <file>src/test/resources/ci/testSuites/service.xml</file>--> |
| 622 | <!--<file>src/test/resources/ci/testSuites/testngLifeCycle.xml</file>--> |
| 623 | <!-- <file>src/test/resources/ci/testSuites/user.xml</file>--> |
| 624 | </suiteXmlFiles> |
| 625 | <!-- <includes>--> |
| 626 | <!-- <include>**/*Test.java</include>--> |
| 627 | <!-- </includes>--> |
| 628 | |
| 629 | </configuration> |
| 630 | </plugin> |
sebdet | 056998c | 2020-08-13 10:32:41 -0700 | [diff] [blame] | 631 | </plugins> |
| 632 | </build> |
| 633 | </project> |
| 634 | |