Details
-
Bug
-
Resolution: Done
-
Blocker
-
8.1.0.Final
-
None
Description
Trying to use Arquillian with remote multi-host domain.
Now see the code snippet below:
- readRootNode calls readResource with includeRuntime set to true.
- readResource also sets recursive to true.
However due to this behavior of read-resource no hosts other than domain controller's are visible to Arquillian:
As a result if I have a DC on localhost with no servers and Host1 with Node1 on 127.0.0.2 and Host2 with Node2 on 127.0.0.3, Arquillian will not find ANY servers to deploy to - no proxies (remote hosts) will be enumerated.
private void readRootNode() throws Exception { rootNode = readResource(new ModelNode()); } private ModelNode readResource(ModelNode address) throws Exception { return readResource(address, true); } private ModelNode readResource(ModelNode address, boolean includeRuntime) throws Exception { final ModelNode operation = new ModelNode(); operation.get(OP).set(READ_RESOURCE_OPERATION); operation.get(RECURSIVE).set("true"); operation.get(INCLUDE_RUNTIME).set(includeRuntime); operation.get(OP_ADDR).set(address); return executeForResult(operation); }