use of org.opennms.smoketest.NullTestEnvironment in project opennms by OpenNMS.
the class JtiTelemetryIT method getTestEnvironment.
@ClassRule
public static final TestEnvironment getTestEnvironment() {
if (!OpenNMSSeleniumTestCase.isDockerEnabled()) {
return new NullTestEnvironment();
}
try {
final TestEnvironmentBuilder builder = TestEnvironment.builder().all();
builder.withOpenNMSEnvironment().addFile(JtiTelemetryIT.class.getResource("/telemetry/jti-telemetryd-configuration.xml"), "etc/telemetryd-configuration.xml");
OpenNMSSeleniumTestCase.configureTestEnvironment(builder);
m_testEnvironment = builder.build();
return m_testEnvironment;
} catch (final Throwable t) {
throw new RuntimeException(t);
}
}
use of org.opennms.smoketest.NullTestEnvironment in project opennms by OpenNMS.
the class NxosTelemetryIT method getTestEnvironment.
@ClassRule
public static final TestEnvironment getTestEnvironment() {
if (!OpenNMSSeleniumTestCase.isDockerEnabled()) {
return new NullTestEnvironment();
}
try {
final TestEnvironmentBuilder builder = TestEnvironment.builder().all();
builder.withOpenNMSEnvironment().addFile(JtiTelemetryIT.class.getResource("/telemetry/nxos-telemetryd-configuration.xml"), "etc/telemetryd-configuration.xml");
OpenNMSSeleniumTestCase.configureTestEnvironment(builder);
m_testEnvironment = builder.build();
return m_testEnvironment;
} catch (final Throwable t) {
throw new RuntimeException(t);
}
}
use of org.opennms.smoketest.NullTestEnvironment in project opennms by OpenNMS.
the class DiscoveryIT method getTestEnvironment.
@ClassRule
public static final TestEnvironment getTestEnvironment() {
if (!OpenNMSSeleniumTestCase.isDockerEnabled()) {
return new NullTestEnvironment();
}
try {
final TestEnvironmentBuilder builder = TestEnvironment.builder().all();
OpenNMSSeleniumTestCase.configureTestEnvironment(builder);
minionSystem = builder.build();
return minionSystem;
} catch (final Throwable t) {
throw new RuntimeException(t);
}
}
use of org.opennms.smoketest.NullTestEnvironment in project opennms by OpenNMS.
the class MonitorsListCommandIT method getTestEnvironment.
@ClassRule
public static final TestEnvironment getTestEnvironment() {
if (!OpenNMSSeleniumTestCase.isDockerEnabled()) {
return new NullTestEnvironment();
}
try {
final TestEnvironmentBuilder builder = TestEnvironment.builder().all();
OpenNMSSeleniumTestCase.configureTestEnvironment(builder);
m_testEnvironment = builder.build();
return m_testEnvironment;
} catch (final Throwable t) {
throw new RuntimeException(t);
}
}
use of org.opennms.smoketest.NullTestEnvironment in project opennms by OpenNMS.
the class DetectorsCommandIT method getTestEnvironment.
@ClassRule
public static final TestEnvironment getTestEnvironment() {
if (!OpenNMSSeleniumTestCase.isDockerEnabled()) {
return new NullTestEnvironment();
}
try {
final TestEnvironmentBuilder builder = TestEnvironment.builder().all();
OpenNMSSeleniumTestCase.configureTestEnvironment(builder);
m_testEnvironment = builder.build();
return m_testEnvironment;
} catch (final Throwable t) {
throw new RuntimeException(t);
}
}
Aggregations