public abstract class AbstractITest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
authentication |
protected static String |
authHeader |
protected static String |
baseGwUri |
protected static String |
baseMetricsUri |
protected static String |
hawkularFeedId |
protected static String |
hawkularHost |
protected static int |
hawkularHttpPort |
protected static int |
hawkularManagementPort |
protected static String |
managementPasword |
protected static String |
managementUser |
protected ITestHelper |
testHelper |
protected static String |
testPasword |
protected static String |
testUser |
protected static File |
wfHome |
| Constructor and Description |
|---|
AbstractITest() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
protected void |
assertNodeAttributeEquals(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
String attributeName,
String expectedAttributeValue) |
protected void |
assertNodeEquals(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
Class<?> caller,
String expectedNodeFileName) |
protected void |
assertNodeEquals(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
Class<?> caller,
String expectedNodeFileName,
boolean saveActual) |
protected void |
assertResourceCount(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode address,
String childType,
int expectedCount) |
protected void |
assertResourceExists(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode address,
boolean expectedExists) |
void |
before() |
protected org.jboss.dmr.ModelNode |
getAgentInventoryReport(String host,
int managementPort) |
protected Collection<String> |
getDMRChildrenNames(WildFlyClientConfig config,
String childTypeName,
org.jboss.as.controller.PathAddress parentAddress)
Gets a list of all DMR children names.
|
protected org.hawkular.inventory.paths.CanonicalPath |
getHawkularWildFlyServerResourcePath()
Return the
CanonicalPath of the only WildFly server present in inventory under the hawkular feed. |
protected org.hawkular.inventory.paths.CanonicalPath |
getHostController(WildFlyClientConfig hostControllerClientConfig)
Return the
CanonicalPath of the only WildFly Host Controller present in inventory under the feed
found in the given client config. |
protected String |
getNodeAttribute(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
String attributeName) |
protected static WildFlyClientConfig |
getPlainWildFlyClientConfig()
If a plain WildFly server was configured for the tests, this returns its data.
|
protected File |
getTestApplicationFile() |
protected static org.jboss.as.controller.client.ModelControllerClient |
newHawkularModelControllerClient() |
protected static org.jboss.as.controller.client.ModelControllerClient |
newModelControllerClient(String host,
int managementPort) |
protected static org.jboss.as.controller.client.ModelControllerClient |
newPlainWildFlyModelControllerClient(WildFlyClientConfig config) |
protected void |
waitForAccountsAndInventory() |
protected boolean |
waitForAgent(org.jboss.as.controller.client.ModelControllerClient mcc) |
protected boolean |
waitForAgent(org.jboss.as.controller.client.ModelControllerClient mcc,
Address agentAddress) |
protected void |
writeNodeAttribute(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
String attributeName,
String value) |
protected static final String authentication
protected static final String baseMetricsUri
protected static final String baseGwUri
protected static final String hawkularHost
protected static final int hawkularHttpPort
protected static final String managementPasword
protected static final int hawkularManagementPort
protected static final String managementUser
protected static final String testPasword
protected static final String testUser
protected static final String authHeader
protected static final String hawkularFeedId
protected static final File wfHome
protected ITestHelper testHelper
public void before()
public void after()
protected String getNodeAttribute(org.jboss.as.controller.client.ModelControllerClient mcc, org.jboss.dmr.ModelNode addressActual, String attributeName)
protected void writeNodeAttribute(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
String attributeName,
String value)
protected void assertNodeAttributeEquals(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
String attributeName,
String expectedAttributeValue)
protected void assertNodeEquals(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
Class<?> caller,
String expectedNodeFileName)
protected void assertNodeEquals(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
Class<?> caller,
String expectedNodeFileName,
boolean saveActual)
protected void assertResourceCount(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode address,
String childType,
int expectedCount)
throws IOException
IOExceptionprotected void assertResourceExists(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode address,
boolean expectedExists)
throws IOException
IOExceptionprotected static WildFlyClientConfig getPlainWildFlyClientConfig()
protected static org.jboss.as.controller.client.ModelControllerClient newHawkularModelControllerClient()
protected static org.jboss.as.controller.client.ModelControllerClient newPlainWildFlyModelControllerClient(WildFlyClientConfig config)
getPlainWildFlyClientConfig()protected static org.jboss.as.controller.client.ModelControllerClient newModelControllerClient(String host, int managementPort)
protected Collection<String> getDMRChildrenNames(WildFlyClientConfig config, String childTypeName, org.jboss.as.controller.PathAddress parentAddress)
config - if null, uses newHawkularModelControllerClient(), or creates
connector to newPlainWildFlyModelControllerClient(WildFlyClientConfig)childTypeName - the DMR name of the child typeparentAddress - the parent whose children are to be returnedprotected void waitForAccountsAndInventory()
throws Throwable
Throwableprotected boolean waitForAgent(org.jboss.as.controller.client.ModelControllerClient mcc)
throws Throwable
Throwableprotected boolean waitForAgent(org.jboss.as.controller.client.ModelControllerClient mcc,
Address agentAddress)
throws Throwable
Throwableprotected org.jboss.dmr.ModelNode getAgentInventoryReport(String host, int managementPort)
protected org.hawkular.inventory.paths.CanonicalPath getHawkularWildFlyServerResourcePath()
throws Throwable
CanonicalPath of the only WildFly server present in inventory under the hawkular feed.
This is the Hawkular Server itself.Throwableprotected org.hawkular.inventory.paths.CanonicalPath getHostController(WildFlyClientConfig hostControllerClientConfig) throws Throwable
CanonicalPath of the only WildFly Host Controller present in inventory under the feed
found in the given client config.Throwableprotected File getTestApplicationFile()
Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.