diff --git a/pom.xml b/pom.xml index d78ed336d430..dabec7534de8 100644 --- a/pom.xml +++ b/pom.xml @@ -217,6 +217,7 @@ 1.1.8.Final 1.0.5.Final 3.0.0.Alpha25 + 1.2.0.Alpha2 2.1.0.Alpha1 1.0.0.Beta10 1.0.0.Beta6 diff --git a/testsuite/elytron/modify-elytron-config.cli b/testsuite/elytron/modify-elytron-config.cli new file mode 100644 index 000000000000..b05f6b7aaefc --- /dev/null +++ b/testsuite/elytron/modify-elytron-config.cli @@ -0,0 +1,7 @@ +embed-server --jboss-home=${jboss.home.dir} +/subsystem=logging/root-logger=ROOT:write-attribute(name=handlers, value=[FILE]) +/subsystem=security:remove +/subsystem=webservices:remove +/extension=org.jboss.as.security:remove +/extension=org.jboss.as.webservices:remove +stop-embedded-server \ No newline at end of file diff --git a/testsuite/elytron/pom.xml b/testsuite/elytron/pom.xml new file mode 100644 index 000000000000..fadb9acf4a30 --- /dev/null +++ b/testsuite/elytron/pom.xml @@ -0,0 +1,140 @@ + + + + + + 4.0.0 + + + org.wildfly + wildfly-testsuite + 11.0.0.Alpha1-SNAPSHOT + ../pom.xml + + + + + + wildfly-ts-integ-elytron + + WildFly Test Suite: Elytron + + + wildfly + ${basedir}/target/${wildfly.instance.name} + ${wildfly.dir} + + + + + org.jboss.logmanager + jboss-logmanager + + + + + + + + org.wildfly.build + wildfly-server-provisioning-maven-plugin + + + server-provisioning + + build + + process-test-resources + + server-provisioning.xml + ${wildfly.instance.name} + + + + + + org.apache.maven.plugins + maven-resources-plugin + ${version.resources.plugin} + + + ts.copy-jbossas.groups + process-test-resources + false + + ${wildfly.dir}/standalone/configuration + true + + + src/test/config + + + + + + + + org.wildfly.plugins + wildfly-maven-plugin + ${version.org.wildfly.plugin} + + + process-test-resources + + execute-commands + + + + + + + + true + + + + ${wildfly.dir} + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + ${wildfly.dir} + + + + standalone.xml + ${wildfly.dir} + + + + + + + + diff --git a/testsuite/elytron/server-provisioning.xml b/testsuite/elytron/server-provisioning.xml new file mode 100644 index 000000000000..22e399d6a6e8 --- /dev/null +++ b/testsuite/elytron/server-provisioning.xml @@ -0,0 +1,26 @@ + + + + + + diff --git a/testsuite/elytron/src/test/config/logging.properties b/testsuite/elytron/src/test/config/logging.properties new file mode 100644 index 000000000000..d76d4fd4fefa --- /dev/null +++ b/testsuite/elytron/src/test/config/logging.properties @@ -0,0 +1,63 @@ +# +# JBoss, Home of Professional Open Source. +# Copyright 2017, 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. +# + +# Additional loggers to configure (the root logger is always configured) +loggers=com.arjuna,jacorb,org.jboss.as.config,org.apache.tomcat.util.modeler,sun.rmi,jacorb.config + +logger.level=INFO +logger.handlers=FILE + +logger.com.arjuna.level=WARN +logger.com.arjuna.useParentHandlers=true + +logger.jacorb.level=WARN +logger.jacorb.useParentHandlers=true + +logger.org.jboss.as.config.level=DEBUG +logger.org.jboss.as.config.useParentHandlers=true + +logger.org.apache.tomcat.util.modeler.level=WARN +logger.org.apache.tomcat.util.modeler.useParentHandlers=true + +logger.sun.rmi.level=WARN +logger.sun.rmi.useParentHandlers=true + +logger.jacorb.config.level=ERROR +logger.jacorb.config.useParentHandlers=true + +handler.FILE=org.jboss.logmanager.handlers.PeriodicRotatingFileHandler +handler.FILE.level=ALL +handler.FILE.formatter=PATTERN +handler.FILE.properties=autoFlush,append,fileName,suffix +handler.FILE.constructorProperties=fileName,append +handler.FILE.autoFlush=true +handler.FILE.append=true +handler.FILE.fileName=${org.jboss.boot.log.file:boot.log} +handler.FILE.suffix=.yyyy-MM-dd + +formatter.COLOR-PATTERN=org.jboss.logmanager.formatters.PatternFormatter +formatter.COLOR-PATTERN.properties=pattern +formatter.COLOR-PATTERN.pattern=%K{level}%d{HH\:mm\:ss,SSS} %-5p [%c] (%t) %s%E%n + +formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter +formatter.PATTERN.properties=pattern +formatter.PATTERN.pattern=%d{yyyy-MM-dd HH\:mm\:ss,SSS} %-5p [%c] (%t) %s%E%n diff --git a/testsuite/pom.xml b/testsuite/pom.xml index beade72892f1..4b7c94095ab2 100644 --- a/testsuite/pom.xml +++ b/testsuite/pom.xml @@ -65,6 +65,7 @@ integration + elytron