ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | <parent> |
| 5 | <groupId>org.openecomp.mso</groupId> |
| 6 | <artifactId>packages</artifactId> |
| 7 | <version>0.0.4-SNAPSHOT</version> |
| 8 | </parent> |
| 9 | |
| 10 | <groupId>org.openecomp.mso.packages</groupId> |
| 11 | <name>Arquillian Unit Testing on MSO</name> |
| 12 | <artifactId>arquillian-unit-tests</artifactId> |
| 13 | |
| 14 | <packaging>jar</packaging> |
| 15 | |
| 16 | <profiles> |
| 17 | <profile> |
| 18 | <id>default-tests</id> |
| 19 | <activation> |
| 20 | <activeByDefault>true</activeByDefault> |
| 21 | </activation> |
| 22 | <properties> |
| 23 | <it-suite-to-execute>**/IntegrationTestsSuite.java</it-suite-to-execute> |
| 24 | <container-to-start>jboss-as</container-to-start> |
| 25 | <mso.project.version>${project.version}</mso.project.version> |
| 26 | </properties> |
| 27 | </profile> |
| 28 | |
| 29 | </profiles> |
| 30 | |
| 31 | |
| 32 | <dependencyManagement> |
| 33 | <dependencies> |
| 34 | <dependency> |
| 35 | <groupId>org.jboss.arquillian</groupId> |
| 36 | <artifactId>arquillian-bom</artifactId> |
| 37 | <version>1.1.11.Final</version> |
| 38 | <scope>import</scope> |
| 39 | <type>pom</type> |
| 40 | </dependency> |
| 41 | |
| 42 | <dependency> |
| 43 | <groupId>org.jboss.spec</groupId> |
| 44 | <artifactId>jboss-javaee-6.0</artifactId> |
| 45 | <version>3.0.2.Final</version> |
| 46 | <type>pom</type> |
| 47 | <scope>import</scope> |
| 48 | |
| 49 | </dependency> |
| 50 | |
| 51 | </dependencies> |
| 52 | |
| 53 | |
| 54 | </dependencyManagement> |
| 55 | |
| 56 | |
| 57 | <dependencies> |
| 58 | <!-- For testing --> |
| 59 | <dependency> |
| 60 | <groupId>org.jboss.marshalling</groupId> |
| 61 | <artifactId>jboss-marshalling</artifactId> |
| 62 | <version>1.3.16.GA</version> |
| 63 | <scope>test</scope> |
| 64 | </dependency> |
| 65 | <dependency> |
| 66 | <groupId>junit</groupId> |
| 67 | <artifactId>junit</artifactId> |
| 68 | <version>4.11</version> |
| 69 | <scope>test</scope> |
| 70 | </dependency> |
| 71 | |
| 72 | <dependency> |
| 73 | <groupId>org.jboss.arquillian.junit</groupId> |
| 74 | <artifactId>arquillian-junit-container</artifactId> |
| 75 | <scope>test</scope> |
| 76 | |
| 77 | </dependency> |
| 78 | |
| 79 | <!-- <dependency> |
| 80 | <groupId>org.jboss.as</groupId> |
| 81 | <artifactId>jboss-as-arquillian-container-remote</artifactId> |
| 82 | <version>7.2.0.Final</version> |
| 83 | <scope>test</scope> |
| 84 | </dependency>--> |
| 85 | |
| 86 | <dependency> |
| 87 | <groupId>org.wildfly.arquillian</groupId> |
| 88 | <artifactId>wildfly-arquillian-container-remote</artifactId> |
| 89 | <version>1.1.0.Final</version> |
| 90 | <scope>test</scope> |
| 91 | </dependency> |
| 92 | |
| 93 | <dependency> |
| 94 | <groupId>org.jboss.remoting</groupId> |
| 95 | <artifactId>jboss-remoting</artifactId> |
| 96 | <version>4.0.9.Final</version> |
| 97 | <scope>test</scope> |
| 98 | </dependency> |
| 99 | |
| 100 | <dependency> |
| 101 | <groupId>org.jboss.logging</groupId> |
| 102 | <artifactId>jboss-logging</artifactId> |
| 103 | <version>3.2.1.Final</version> |
| 104 | <scope>test</scope> |
| 105 | </dependency> |
| 106 | |
| 107 | <dependency> |
| 108 | <groupId>org.jboss.arquillian.protocol</groupId> |
| 109 | <artifactId>arquillian-protocol-servlet</artifactId> |
| 110 | <scope>test</scope> |
| 111 | </dependency> |
| 112 | |
| 113 | <dependency> |
| 114 | <groupId>org.jboss.shrinkwrap.resolver</groupId> |
| 115 | <artifactId>shrinkwrap-resolver-bom</artifactId> |
| 116 | <version>2.1.0-alpha-1</version> |
| 117 | <scope>runtime</scope> |
| 118 | <type>pom</type> |
| 119 | </dependency> |
| 120 | |
| 121 | <!-- FOR DOCKER CONTROLLED BY ARQUILLIAN--> |
| 122 | <dependency> |
| 123 | <groupId>org.arquillian.cube</groupId> |
| 124 | <artifactId>arquillian-cube-openshift-parent</artifactId> |
| 125 | <version>1.0.0.Alpha15</version> |
| 126 | <type>pom</type> |
| 127 | <scope>test</scope> |
| 128 | </dependency> |
| 129 | <dependency> |
| 130 | <groupId>org.arquillian.cube</groupId> |
| 131 | <artifactId>arquillian-cube-docker</artifactId> |
| 132 | <version>1.0.0.Alpha15</version> |
| 133 | <scope>test</scope> |
| 134 | </dependency> |
| 135 | |
| 136 | <!-- <dependency> |
| 137 | <groupId>org.eu.ingwar.tools</groupId> |
| 138 | <artifactId>arquillian-suite-extension</artifactId> |
| 139 | <version>1.1.1</version> |
| 140 | <scope>test</scope> |
| 141 | </dependency> --> |
| 142 | |
| 143 | |
| 144 | <!-- For testing --> |
| 145 | |
| 146 | <!-- FOR JBOSS CODE --> |
| 147 | <dependency> |
| 148 | <groupId>org.hibernate</groupId> |
| 149 | <artifactId>hibernate-core</artifactId> |
| 150 | <version>4.2.7.SP1</version> |
| 151 | <scope>test</scope> |
| 152 | </dependency> |
| 153 | <dependency> |
| 154 | <groupId>org.hibernate</groupId> |
| 155 | <artifactId>hibernate-entitymanager</artifactId> |
| 156 | <version>4.2.7.SP1</version> |
| 157 | <scope>test</scope> |
| 158 | </dependency> |
| 159 | <dependency> |
| 160 | <groupId>org.codehaus.jackson</groupId> |
| 161 | <artifactId>jackson-mapper-asl</artifactId> |
| 162 | <version>1.9.9</version> |
| 163 | <scope>test</scope> |
| 164 | </dependency> |
| 165 | <dependency> |
| 166 | <groupId>javax.validation</groupId> |
| 167 | <artifactId>validation-api</artifactId> |
| 168 | <version>1.0.0.GA</version> |
| 169 | <scope>test</scope> |
| 170 | </dependency> |
| 171 | <dependency> |
| 172 | <groupId>org.jboss.as</groupId> |
| 173 | <artifactId>jboss-as-ejb3</artifactId> |
| 174 | <version>7.2.0.Final</version> |
| 175 | <scope>test</scope> |
| 176 | </dependency> |
| 177 | |
| 178 | |
| 179 | <dependency> |
| 180 | <groupId>com.smartbear.soapui</groupId> |
| 181 | <artifactId>soapui</artifactId> |
| 182 | <version>5.1.0</version> |
| 183 | <type>jar</type> |
| 184 | <scope>test</scope> |
| 185 | <exclusions> |
| 186 | <exclusion> |
| 187 | <groupId>thoughtworks</groupId> |
| 188 | <artifactId>xstream</artifactId> |
| 189 | </exclusion> |
| 190 | <exclusion> |
| 191 | <groupId>gnu.cajo</groupId> |
| 192 | <artifactId>cajo</artifactId> |
| 193 | </exclusion> |
| 194 | </exclusions> |
| 195 | </dependency> |
| 196 | |
| 197 | <dependency> |
| 198 | <groupId>commons-codec</groupId> |
| 199 | <artifactId>commons-codec</artifactId> |
| 200 | <version>1.4</version> |
| 201 | <type>jar</type> |
| 202 | <scope>test</scope> |
| 203 | </dependency> |
| 204 | |
| 205 | <dependency> |
| 206 | <groupId>org.seleniumhq.selenium</groupId> |
| 207 | <artifactId>selenium-java</artifactId> |
| 208 | <version>2.45.0</version> |
| 209 | <scope>test</scope> |
| 210 | </dependency> |
| 211 | <dependency> |
| 212 | <groupId>org.seleniumhq.selenium</groupId> |
| 213 | <artifactId>selenium-firefox-driver</artifactId> |
| 214 | <version>2.45.0</version> |
| 215 | <scope>test</scope> |
| 216 | </dependency> |
| 217 | <dependency> |
| 218 | <groupId>org.seleniumhq.selenium</groupId> |
| 219 | <artifactId>selenium-server</artifactId> |
| 220 | <version>2.45.0</version> |
| 221 | <scope>test</scope> |
| 222 | </dependency> |
| 223 | |
| 224 | <dependency> |
| 225 | <groupId>org.apache.httpcomponents</groupId> |
| 226 | <artifactId>httpclient</artifactId> |
| 227 | </dependency> |
| 228 | <dependency> |
| 229 | <groupId>org.apache.httpcomponents</groupId> |
| 230 | <artifactId>httpcore</artifactId> |
| 231 | </dependency> |
| 232 | |
| 233 | <dependency> |
| 234 | <groupId>org.openecomp.mso</groupId> |
| 235 | <artifactId>asdc-controller</artifactId> |
| 236 | <version>${project.version}</version> |
| 237 | <scope>test</scope> |
| 238 | <classifier>classes</classifier> |
| 239 | </dependency> |
| 240 | |
| 241 | <!-- <dependency> |
| 242 | <groupId>org.openecomp.mso.adapters</groupId> |
| 243 | <artifactId>mso-appc-adapter</artifactId> |
| 244 | <version>${project.version}</version> |
| 245 | <scope>test</scope> |
| 246 | <classifier>classes</classifier> |
| 247 | </dependency> --> |
| 248 | |
| 249 | <dependency> |
| 250 | <groupId>org.mockito</groupId> |
| 251 | <artifactId>mockito-all</artifactId> |
| 252 | <version>1.10.19</version> |
| 253 | <scope>test</scope> |
| 254 | </dependency> |
| 255 | |
| 256 | <dependency> |
| 257 | <groupId>org.openecomp.sdc</groupId> |
| 258 | <artifactId>sdc-distribution-client</artifactId> |
ChrisC | 11eea84 | 2017-01-31 17:34:44 +0100 | [diff] [blame] | 259 | <version>0.9.0</version> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 260 | <scope>test</scope> |
| 261 | </dependency> |
| 262 | |
| 263 | <dependency> |
| 264 | <groupId>org.openecomp.mso</groupId> |
| 265 | <artifactId>mso-catalog-db</artifactId> |
| 266 | <version>${project.version}</version> |
| 267 | <scope>test</scope> |
| 268 | </dependency> |
| 269 | <!-- FOR JMETER --> |
| 270 | <dependency> |
| 271 | <groupId>org.apache.jmeter</groupId> |
| 272 | <artifactId>ApacheJMeter_core</artifactId> |
| 273 | <version>2.13</version> |
| 274 | |
| 275 | <scope>test</scope> |
| 276 | <exclusions> |
| 277 | <exclusion> |
| 278 | <artifactId>commons-math3</artifactId> |
| 279 | <groupId>commons-math3</groupId> |
| 280 | </exclusion> |
| 281 | <exclusion> |
| 282 | <artifactId>commons-pool2</artifactId> |
| 283 | <groupId>commons-pool2</groupId> |
| 284 | </exclusion> |
| 285 | </exclusions> |
| 286 | </dependency> |
| 287 | |
| 288 | <dependency> |
| 289 | <groupId>org.apache.jmeter</groupId> |
| 290 | <artifactId>ApacheJMeter_http</artifactId> |
| 291 | <version>2.13</version> |
| 292 | |
| 293 | <scope>test</scope> |
| 294 | <exclusions> |
| 295 | <exclusion> |
| 296 | <artifactId>commons-math3</artifactId> |
| 297 | <groupId>commons-math3</groupId> |
| 298 | </exclusion> |
| 299 | <exclusion> |
| 300 | <artifactId>commons-pool2</artifactId> |
| 301 | <groupId>commons-pool2</groupId> |
| 302 | </exclusion> |
| 303 | </exclusions> |
| 304 | </dependency> |
| 305 | |
| 306 | <dependency> |
| 307 | <groupId>org.apache.jmeter</groupId> |
| 308 | <artifactId>ApacheJMeter_jdbc</artifactId> |
| 309 | <version>2.13</version> |
| 310 | |
| 311 | <scope>test</scope> |
| 312 | <exclusions> |
| 313 | <exclusion> |
| 314 | <artifactId>commons-math3</artifactId> |
| 315 | <groupId>commons-math3</groupId> |
| 316 | </exclusion> |
| 317 | <exclusion> |
| 318 | <artifactId>commons-pool2</artifactId> |
| 319 | <groupId>commons-pool2</groupId> |
| 320 | </exclusion> |
| 321 | </exclusions> |
| 322 | </dependency> |
| 323 | |
| 324 | <!-- END FOR JMETER --> |
| 325 | </dependencies> |
| 326 | |
| 327 | <build> |
| 328 | <finalName>arquillian-tests</finalName> |
| 329 | <plugins> |
| 330 | <plugin> |
| 331 | <groupId>org.codehaus.groovy.maven</groupId> |
| 332 | <artifactId>gmaven-plugin</artifactId> |
| 333 | <executions> |
| 334 | <execution> |
| 335 | <phase>generate-resources</phase> |
| 336 | <goals> |
| 337 | <goal>execute</goal> |
| 338 | </goals> |
| 339 | <configuration> |
| 340 | <source> |
| 341 | if ( project.properties['docker.host'] != null ) { |
| 342 | project.properties['docker.host.truncated']=project.properties['docker.host'].replaceFirst("^(http://|https://)",""); |
| 343 | int indexPort = project.properties['docker.host.truncated'].indexOf(":"); |
| 344 | project.properties['docker.host.truncated']=project.properties['docker.host.truncated'].substring(0,indexPort); |
| 345 | println 'docker.host.truncated:'+ project.properties['docker.host.truncated']; |
| 346 | } else { |
| 347 | project.properties['docker.host.truncated']="127.0.0.1"; |
| 348 | project.properties['docker.host']="unix:///var/run/docker.sock" |
| 349 | } |
| 350 | |
| 351 | if ( project.properties['mso.project.version'].endsWith("-SNAPSHOT") ) { |
| 352 | project.properties['mso.version']="latest"; |
| 353 | } else { |
| 354 | project.properties['mso.version']=project.properties['mso.project.version']; |
| 355 | } |
| 356 | </source> |
| 357 | </configuration> |
| 358 | </execution> |
| 359 | </executions> |
| 360 | </plugin> |
| 361 | |
| 362 | <plugin> |
| 363 | <groupId>org.apache.maven.plugins</groupId> |
| 364 | <artifactId>maven-failsafe-plugin</artifactId> |
| 365 | <version>2.16</version> |
| 366 | |
| 367 | <executions> |
| 368 | <execution> |
| 369 | <goals> |
| 370 | <goal>integration-test</goal> |
| 371 | <goal>verify</goal> |
| 372 | </goals> |
| 373 | </execution> |
| 374 | </executions> |
| 375 | |
| 376 | <configuration> |
| 377 | <systemPropertyVariables> |
| 378 | <arquillian.launch>${container-to-start}</arquillian.launch> |
| 379 | <target.folder>${project.build.directory}</target.folder> |
| 380 | <docker.url>${docker.host}</docker.url> |
| 381 | <docker.hostname>${docker.host.truncated}</docker.hostname> |
| 382 | <images.version>${mso.version}</images.version> |
| 383 | </systemPropertyVariables> |
| 384 | <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory> |
| 385 | <testFailureIgnore>true</testFailureIgnore> |
| 386 | <includes> |
| 387 | <include>${it-suite-to-execute}</include> |
| 388 | </includes> |
| 389 | </configuration> |
| 390 | </plugin> |
| 391 | |
| 392 | <plugin> |
| 393 | <groupId>org.apache.maven.plugins</groupId> |
| 394 | <artifactId>maven-surefire-plugin</artifactId> |
| 395 | |
| 396 | <configuration> |
| 397 | <skipTests>true</skipTests> |
| 398 | </configuration> |
| 399 | </plugin> |
| 400 | </plugins> |
| 401 | </build> |
| 402 | |
| 403 | </project> |