|
39 | 39 | import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.VALUE;
|
40 | 40 | import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.WRITE_ATTRIBUTE_OPERATION;
|
41 | 41 |
|
| 42 | +import java.io.File; |
42 | 43 | import java.io.IOException;
|
43 | 44 |
|
| 45 | +import org.jboss.as.server.ServerEnvironment; |
| 46 | +import org.jboss.as.server.services.path.AbsolutePathService; |
44 | 47 | import org.jboss.as.subsystem.test.AbstractSubsystemBaseTest;
|
45 | 48 | import org.jboss.as.subsystem.test.AdditionalInitialization;
|
46 | 49 | import org.jboss.as.subsystem.test.ControllerInitializer;
|
|
49 | 52 | import org.jboss.msc.service.ServiceController;
|
50 | 53 | import org.jboss.msc.service.ServiceName;
|
51 | 54 | import org.jboss.msc.service.ServiceNotFoundException;
|
| 55 | +import org.jboss.msc.service.ServiceTarget; |
52 | 56 | import org.junit.Ignore;
|
53 | 57 | import org.junit.Test;
|
54 | 58 |
|
@@ -77,6 +81,12 @@ protected void setupController(ControllerInitializer controllerInitializer) {
|
77 | 81 | controllerInitializer.addSocketBinding("test", port);
|
78 | 82 | }
|
79 | 83 |
|
| 84 | + @Override |
| 85 | + protected void addExtraServices(ServiceTarget target) { |
| 86 | + //Needed for initialization of the RealmAuthenticationProviderService |
| 87 | + AbsolutePathService.addService(ServerEnvironment.CONTROLLER_TEMP_DIR, new File("target/temp" + System.currentTimeMillis()).getAbsolutePath(), target); |
| 88 | + } |
| 89 | + |
80 | 90 | },readResource("remoting-with-threads.xml"));
|
81 | 91 |
|
82 | 92 | ServiceController<?> endPointService = services.getContainer().getRequiredService(RemotingServices.SUBSYSTEM_ENDPOINT);
|
@@ -108,6 +118,12 @@ protected void setupController(ControllerInitializer controllerInitializer) {
|
108 | 118 | controllerInitializer.addSocketBinding("test", port);
|
109 | 119 | }
|
110 | 120 |
|
| 121 | + @Override |
| 122 | + protected void addExtraServices(ServiceTarget target) { |
| 123 | + //Needed for initialization of the RealmAuthenticationProviderService |
| 124 | + AbsolutePathService.addService(ServerEnvironment.CONTROLLER_TEMP_DIR, new File("target/temp" + System.currentTimeMillis()).getAbsolutePath(), target); |
| 125 | + } |
| 126 | + |
111 | 127 | },readResource("remoting-with-threads.xml"));
|
112 | 128 |
|
113 | 129 | CurrentConnectorAndController current = CurrentConnectorAndController.create(services, RemotingServices.SUBSYSTEM_ENDPOINT, RemotingServices.serverServiceName("test-connector"));
|
@@ -147,6 +163,11 @@ protected void setupController(ControllerInitializer controllerInitializer) {
|
147 | 163 | controllerInitializer.addSocketBinding("test", port);
|
148 | 164 | }
|
149 | 165 |
|
| 166 | + @Override |
| 167 | + protected void addExtraServices(ServiceTarget target) { |
| 168 | + //Needed for initialization of the RealmAuthenticationProviderService |
| 169 | + AbsolutePathService.addService(ServerEnvironment.CONTROLLER_TEMP_DIR, new File("target/temp" + System.currentTimeMillis()).getAbsolutePath(), target); |
| 170 | + } |
150 | 171 | },readResource("remoting-with-threads.xml"));
|
151 | 172 |
|
152 | 173 | CurrentConnectorAndController current = CurrentConnectorAndController.create(services, RemotingServices.SUBSYSTEM_ENDPOINT, RemotingServices.serverServiceName("test-connector"));
|
@@ -213,7 +234,7 @@ protected void setupController(ControllerInitializer controllerInitializer) {
|
213 | 234 | /**
|
214 | 235 | * Tests that the outbound connections configured in the remoting subsytem are processed and services
|
215 | 236 | * are created for them
|
216 |
| - * |
| 237 | + * |
217 | 238 | * @throws Exception
|
218 | 239 | */
|
219 | 240 | @Test
|
|
0 commit comments