1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>
5 <groupId>org.opendaylight.controller</groupId>
6 <artifactId>commons.opendaylight</artifactId>
7 <version>1.4.1-SNAPSHOT</version>
8 <relativePath>../../commons/opendaylight</relativePath>
11 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
12 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
13 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
17 <artifactId>sanitytest</artifactId>
18 <version>0.4.1-SNAPSHOT</version>
19 <packaging>jar</packaging>
22 <distro.dir>${project.basedir}/../opendaylight/target/distribution.opendaylight-osgipackage/opendaylight</distro.dir>
23 <distro.script>${distro.dir}/run.bat</distro.script>
24 <!-- the address is passed to both the controller & the test to establish the connection -->
25 <sanitytest.bind.address>127.0.0.1</sanitytest.bind.address>
26 <sanitytest.timeout>300</sanitytest.timeout>
34 <family>!windows</family>
38 <distro.script>${distro.dir}/run.sh</distro.script>
39 <distro.pid>/tmp/opendaylight.PID</distro.pid>
46 <groupId>org.osgi</groupId>
47 <artifactId>org.osgi.core</artifactId>
48 <scope>provided</scope>
52 <groupId>junit</groupId>
53 <artifactId>junit</artifactId>
58 <groupId>org.ow2.chameleon.management</groupId>
59 <artifactId>chameleon-mbeans</artifactId>
68 <!-- disable the install plugin -->
69 <groupId>org.apache.maven.plugins</groupId>
70 <artifactId>maven-install-plugin</artifactId>
71 <version>${install.plugin.version}</version>
77 <id>default-install</id>
84 <!-- ensure that the distro installation is already built -->
85 <groupId>org.apache.maven.plugins</groupId>
86 <artifactId>maven-enforcer-plugin</artifactId>
87 <version>${enforcer.plugin.version}</version>
90 <id>enforce-files-exist</id>
91 <phase>pre-integration-test</phase>
99 <file>${distro.script}</file>
110 <groupId>org.opendaylight.controller</groupId>
111 <artifactId>controller-maven-plugin</artifactId>
112 <version>0.1.0-SNAPSHOT</version>
114 <controllerHome>${distro.dir}</controllerHome>
115 <controllerHost>localhost</controllerHost>
116 <controllerWebPort>8080</controllerWebPort>
117 <controllerUsername>admin</controllerUsername>
118 <controllerPassword>admin</controllerPassword>
119 <controllerStartScriptName>${distro.script}</controllerStartScriptName>
120 <pidFile>${distro.pid}</pidFile>
124 <!-- ensure controller is started in pre-integration phase -->
125 <id>start-controller</id>
126 <phase>pre-integration-test</phase>
129 <param>-start</param>
131 <param>-Djava.rmi.server.hostname=${sanitytest.bind.address} </param>
133 <warmupTimeSecs> 60 </warmupTimeSecs>
140 <!-- ensure controller is stopped in post-integration phase -->
141 <id>stop-controller</id>
142 <phase>post-integration-test</phase>
151 <!-- run the test -->
152 <groupId>org.apache.maven.plugins</groupId>
153 <artifactId>maven-failsafe-plugin</artifactId>
154 <version>${failsafe.version}</version>
156 <systemPropertyVariables>
157 <ctrl.home>${distro.dir}</ctrl.home>
158 <ctrl.host>${sanitytest.bind.address}</ctrl.host>
159 <ctrl.start.timeout>${sanitytest.timeout}</ctrl.start.timeout>
160 </systemPropertyVariables>