Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix socket binding transformers test

  • Loading branch information...
commit 027f370695bb64a8fef6f302cd4c7ecb3ab4b280 1 parent b281fc9
@kabir kabir authored bstansberry committed
View
7 ...c/test/java/org/jboss/as/core/model/test/socketbindinggroups/SocketBindingGroupTransformersTestCase.java
@@ -27,6 +27,7 @@
import org.jboss.as.core.model.test.AbstractCoreModelTest;
import org.jboss.as.core.model.test.KernelServices;
import org.jboss.as.core.model.test.KernelServicesBuilder;
+import org.jboss.as.core.model.test.LegacyKernelServicesInitializer;
import org.jboss.as.core.model.test.LegacyKernelServicesInitializer.TestControllerVersion;
import org.jboss.as.core.model.test.TestModelType;
import org.jboss.as.core.model.test.util.TransformersTestParameters;
@@ -61,7 +62,11 @@ public void testPathsTransformer() throws Exception {
KernelServicesBuilder builder = createKernelServicesBuilder(TestModelType.DOMAIN)
.setXmlResource("domain.xml");
- builder.createLegacyKernelServicesBuilder(modelVersion, testControllerVersion);
+ LegacyKernelServicesInitializer legacyInit = builder.createLegacyKernelServicesBuilder(modelVersion, testControllerVersion);
+ if (modelVersion.getMajor() == 1 && modelVersion.getMinor() <= 3) {
+ //The 7.1.2/3 operation validator does not like expressions very much
+ legacyInit.setDontValidateOperations();
+ }
KernelServices mainServices = builder.build();
Assert.assertTrue(mainServices.isSuccessfulBoot());
View
7 core-model-test/tests/src/test/resources/org/jboss/as/core/model/test/socketbindinggroups/domain.xml
@@ -5,11 +5,12 @@
<interface name="management"/>
</interfaces>
<socket-binding-groups>
- <socket-binding-group name="standard-sockets" default-interface="public">
- <socket-binding name="specified-interface" interface="management" port="1111"/>
+ <socket-binding-group name="standard-sockets" default-interface="${testing.default.interface:public}">
+ <socket-binding name="specified-interface" interface="${testing.default.interface:management}" port="${testing.specified.interface.port:1111}"/>
+ <socket-binding name="multicast" port="1922" fixed-port="${testing.multicast.fixed-port:true}" multicast-address="${testing.multicast.multicast-address:127.0.0.1}" multicast-port="${testing.multicast.multicast-address:1234}"/>
<socket-binding name="default-interface" port="8009"/>
<outbound-socket-binding name="out-local">
- <local-destination socket-binding-ref="standard-sockets"/>
+ <local-destination socket-binding-ref="${testing.local.destination.ref:standard-sockets}"/>
</outbound-socket-binding>
<outbound-socket-binding name="mail-smtp">
<remote-destination host="${smtp.mail.server.host:127.0.0.1}" port="${smtp.mail.server.port:25}"/>
View
4 network/pom.xml
@@ -76,9 +76,5 @@
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.jboss.as</groupId>
- <artifactId>jboss-as-core-model-test</artifactId>
- </dependency>
</dependencies>
</project>
Please sign in to comment.
Something went wrong with that request. Please try again.