Skip to content

Commit

Permalink
initial elytron testsuite module
Browse files Browse the repository at this point in the history
  • Loading branch information
ctomc authored and kwart committed Feb 14, 2017
1 parent 8d58793 commit c26977e
Show file tree
Hide file tree
Showing 6 changed files with 238 additions and 0 deletions.
1 change: 1 addition & 0 deletions pom.xml
Expand Up @@ -217,6 +217,7 @@
<version.org.wildfly.build-tools>1.1.8.Final</version.org.wildfly.build-tools>
<version.org.wildfly.checkstyle-config>1.0.5.Final</version.org.wildfly.checkstyle-config>
<version.org.wildfly.core>3.0.0.Alpha25</version.org.wildfly.core>
<version.org.wildfly.plugin>1.2.0.Alpha2</version.org.wildfly.plugin>
<version.org.wildfly.arquillian>2.1.0.Alpha1</version.org.wildfly.arquillian>
<version.org.wildfly.naming-client>1.0.0.Beta10</version.org.wildfly.naming-client>
<version.org.wildfly.security.elytron-subsystem>1.0.0.Beta6</version.org.wildfly.security.elytron-subsystem>
Expand Down
7 changes: 7 additions & 0 deletions 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
140 changes: 140 additions & 0 deletions testsuite/elytron/pom.xml
@@ -0,0 +1,140 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
~ 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.
-->

<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.wildfly</groupId>
<artifactId>wildfly-testsuite</artifactId>
<version>11.0.0.Alpha1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<!-- ********************************************************************************** -->
<!-- ******************************** Elytron Integration ******************************* -->
<!-- ********************************************************************************** -->
<artifactId>wildfly-ts-integ-elytron</artifactId>

<name>WildFly Test Suite: Elytron</name>

<properties>
<wildfly.instance.name>wildfly</wildfly.instance.name>
<wildfly.dir>${basedir}/target/${wildfly.instance.name}</wildfly.dir>
<jboss.dist>${wildfly.dir}</jboss.dist>
</properties>

<dependencies>
<dependency>
<groupId>org.jboss.logmanager</groupId>
<artifactId>jboss-logmanager</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<!-- Build the target/wildfly server configuration. -->
<plugin>
<groupId>org.wildfly.build</groupId>
<artifactId>wildfly-server-provisioning-maven-plugin</artifactId>
<executions>
<execution>
<id>server-provisioning</id>
<goals>
<goal>build</goal>
</goals>
<phase>process-test-resources</phase>
<configuration>
<config-file>server-provisioning.xml</config-file>
<server-name>${wildfly.instance.name}</server-name>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${version.resources.plugin}</version>
<executions combine.self="override">
<execution>
<id>ts.copy-jbossas.groups</id>
<phase>process-test-resources</phase>
<inherited>false</inherited>
<configuration combine.self="override">
<outputDirectory>${wildfly.dir}/standalone/configuration</outputDirectory>
<overwrite>true</overwrite>
<resources>
<resource>
<directory>src/test/config</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.org.wildfly.plugin}</version>
<executions>
<execution>
<phase>process-test-resources</phase>
<goals>
<goal>execute-commands</goal>
</goals>
<configuration>

</configuration>
</execution>
</executions>
<configuration>
<offline>true</offline>
<scripts>
<script>modify-elytron-config.cli</script>
</scripts>
<jboss-home>${wildfly.dir}</jboss-home>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<environmentVariables>
<JBOSS_HOME>${wildfly.dir}</JBOSS_HOME>
</environmentVariables>
<!-- Parameters to test cases. -->
<systemPropertyVariables combine.self="override">
<jboss.server.config.file.name>standalone.xml</jboss.server.config.file.name>
<jboss.inst>${wildfly.dir}</jboss.inst>
</systemPropertyVariables>
<argLine></argLine>
</configuration>
</plugin>
</plugins>
</build>

</project>
26 changes: 26 additions & 0 deletions testsuite/elytron/server-provisioning.xml
@@ -0,0 +1,26 @@
<!--
~ 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.
-->
<server-provisioning xmlns="urn:wildfly:server-provisioning:1.0" copy-module-artifacts="false">
<feature-packs>
<feature-pack groupId="org.wildfly" artifactId="wildfly-feature-pack" version="${project.version}"/>
</feature-packs>
</server-provisioning>
63 changes: 63 additions & 0 deletions 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
1 change: 1 addition & 0 deletions testsuite/pom.xml
Expand Up @@ -65,6 +65,7 @@

<modules>
<module>integration</module>
<module>elytron</module>
</modules>


Expand Down

0 comments on commit c26977e

Please sign in to comment.