1 package org.opendaylight.ovsdb.integrationtest.mdsal;
3 import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
4 import static org.ops4j.pax.exam.CoreOptions.options;
5 import static org.ops4j.pax.exam.CoreOptions.propagateSystemProperty;
6 import static org.ops4j.pax.exam.CoreOptions.systemProperty;
8 import javax.inject.Inject;
10 import org.junit.runner.RunWith;
11 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
12 import org.opendaylight.controller.test.sal.binding.it.TestHelper;
13 import org.opendaylight.ovsdb.integrationtest.ConfigurationBundles;
14 import org.ops4j.pax.exam.Configuration;
15 import org.ops4j.pax.exam.Option;
16 import org.ops4j.pax.exam.junit.PaxExam;
17 import org.ops4j.pax.exam.util.PathUtils;
18 import org.osgi.framework.BundleContext;
19 import org.slf4j.Logger;
20 import org.slf4j.LoggerFactory;
22 @RunWith(PaxExam.class)
23 public class MdsalIT {
24 private static final Logger LOG = LoggerFactory.getLogger(MdsalIT.class);
30 BindingAwareBroker broker;
33 public Option[] config() {
35 systemProperty("logback.configurationFile").value(
36 "file:" + PathUtils.getBaseDir()
37 + "/src/test/resources/logback.xml"
39 // To start OSGi console for inspection remotely
40 systemProperty("osgi.console").value("2401"),
42 propagateSystemProperty("ovsdbserver.ipaddress"),
43 propagateSystemProperty("ovsdbserver.port"),
45 mavenBundle("org.slf4j", "slf4j-api").versionAsInProject(),
46 mavenBundle("org.slf4j", "log4j-over-slf4j").versionAsInProject(),
47 mavenBundle("ch.qos.logback", "logback-core").versionAsInProject(),
48 mavenBundle("ch.qos.logback", "logback-classic").versionAsInProject(),
50 TestHelper.junitAndMockitoBundles(),
51 TestHelper.mdSalCoreBundles(),
52 TestHelper.configMinumumBundles(),
53 TestHelper.baseModelBundles()
59 LOG.info("We did it!");