Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AS7-1831] Make sasl/properties children of connector. Get the remoti…
…ng subsystem model set up using ResourceDefinition and AttributeDefinition Cleanup
- Loading branch information
Showing
30 changed files
with
1,162 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ JBoss, Home of Professional Open Source. | ||
~ Copyright 2010, Red Hat, Inc., and individual contributors | ||
~ as indicated by the @author tags. See the copyright.txt file in the | ||
~ distribution for a full listing of individual contributors. | ||
~ | ||
~ This is free software; you can redistribute it and/or modify it | ||
~ under the terms of the GNU Lesser General Public License as | ||
~ published by the Free Software Foundation; either version 2.1 of | ||
~ the License, or (at your option) any later version. | ||
~ | ||
~ This software is distributed in the hope that it will be useful, | ||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
~ Lesser General Public License for more details. | ||
~ | ||
~ You should have received a copy of the GNU Lesser General Public | ||
~ License along with this software; if not, write to the Free | ||
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.jboss.as</groupId> | ||
<artifactId>jboss-as-parent</artifactId> | ||
<version>7.1.0.Alpha2-SNAPSHOT</version> | ||
</parent> | ||
|
||
<groupId>org.jboss.as</groupId> | ||
<artifactId>jboss-as-remoting-test</artifactId> | ||
<version>7.1.0.Alpha2-SNAPSHOT</version> | ||
|
||
<name>JBoss Application Server: Remoting Subsystem Test</name> | ||
|
||
<properties> | ||
<test.level>INFO</test.level> | ||
</properties> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<configuration> | ||
<systemProperties> | ||
<property> | ||
<name>java.util.logging.manager</name> | ||
<value>org.jboss.logmanager.LogManager</value> | ||
</property> | ||
<property> | ||
<name>jboss.remoting.leakdebugging</name> | ||
<value>false</value> | ||
</property> | ||
<property> | ||
<name>test.level</name> | ||
<value>${test.level}</value> | ||
</property> | ||
</systemProperties> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.jboss.as</groupId> | ||
<artifactId>jboss-as-remoting</artifactId> | ||
</dependency> | ||
|
||
<!-- Test deps --> | ||
|
||
<dependency> | ||
<groupId>org.jboss.logmanager</groupId> | ||
<artifactId>jboss-logmanager</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jboss.as</groupId> | ||
<artifactId>jboss-as-subsystem-test</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
</dependencies> | ||
</project> |
50 changes: 50 additions & 0 deletions
50
remoting-test/src/test/java/org/jboss/as/remoting/RemotingSubsystemTestCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source. | ||
* Copyright 2011, Red Hat Middleware LLC, and individual contributors | ||
* as indicated by the @author tags. See the copyright.txt file in the | ||
* distribution for a full listing of individual contributors. | ||
* | ||
* This is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU Lesser General Public License as | ||
* published by the Free Software Foundation; either version 2.1 of | ||
* the License, or (at your option) any later version. | ||
* | ||
* This software is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this software; if not, write to the Free | ||
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
* 02110-1301 USA, or see the FSF site: http://www.fsf.org. | ||
*/ | ||
package org.jboss.as.remoting; | ||
|
||
import java.io.IOException; | ||
|
||
import junit.framework.Assert; | ||
|
||
import org.jboss.as.subsystem.test.AbstractSubsystemBaseTest; | ||
|
||
/** | ||
* | ||
* @author <a href="kabir.khan@jboss.com">Kabir Khan</a> | ||
*/ | ||
public class RemotingSubsystemTestCase extends AbstractSubsystemBaseTest { | ||
|
||
public RemotingSubsystemTestCase() { | ||
// FIXME RemotingSubsystemTestCase constructor | ||
super(RemotingExtension.SUBSYSTEM_NAME, new RemotingExtension()); | ||
} | ||
|
||
@Override | ||
protected String getSubsystemXml() throws IOException { | ||
return readResource("remoting.xml"); | ||
} | ||
|
||
@Override | ||
protected void validateXml(String original, String marshalled) throws Exception { | ||
Assert.assertEquals(original, marshalled); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
remoting-test/src/test/resources/org/jboss/as/remoting/remoting.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<subsystem xmlns="urn:jboss:domain:remoting:1.0"> | ||
<connector name="remoting-connector" socket-binding="remoting"> | ||
<authentication-provider name="blah"/> | ||
<properties> | ||
<property name="c1" value="connector one"/> | ||
<property name="c2" value="connector two"/> | ||
</properties> | ||
<sasl> | ||
<include-mechanisms value="one two three"/> | ||
<qop value="auth auth-int"/> | ||
<strength value="low high"/> | ||
<server-auth value="true"/> | ||
<reuse-session value="true"/> | ||
<policy> | ||
<forward-secrecy value="true"/> | ||
<no-active value="true"/> | ||
<no-anonymous value="true"/> | ||
<no-dictionary value="true"/> | ||
<no-plain-text value="true"/> | ||
<pass-credentials value="true"/> | ||
</policy> | ||
<properties> | ||
<property name="sasl1" value="sasl one"/> | ||
<property name="sasl2" value="sasl two"/> | ||
</properties> | ||
</sasl> | ||
</connector> | ||
</subsystem> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.