Skip to content

Commit

Permalink
[WFLY-7949][JBEAP-8472] testsuite with -Delytron
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Kalina committed Apr 4, 2017
1 parent 0002dbd commit 5068099
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 0 deletions.
46 changes: 46 additions & 0 deletions testsuite/compat/pom.xml
Expand Up @@ -51,6 +51,8 @@
<!-- This value is overridden in submodules with the correct relative path. -->
<xslt.scripts.dir>${basedir}/../integration/src/test/xslt</xslt.scripts.dir>
<surefire.excludeTests />

<ts.elytron.cli>../shared/enable-elytron.cli</ts.elytron.cli>
</properties>

<!--
Expand Down Expand Up @@ -240,6 +242,50 @@
<surefire.excludeTests>**/OpenJPASharedModuleProviderTestCase.java</surefire.excludeTests>
</properties>
</profile>

<profile>
<id>elytron.profile</id>
<activation>
<property>
<name>elytron</name>
</property>
<file>
<exists>${ts.elytron.cli}</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>enable-elytron-cli</id>
<phase>test-compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${java.home}/bin/java</executable>
<arguments>
<argument>-jar</argument>
<argument>${project.build.directory}/jbossas/jboss-modules.jar</argument>
<argument>-mp</argument>
<argument>${jboss.dist}/modules</argument>
<argument>org.jboss.as.cli</argument>
<argument>--file=${ts.elytron.cli}</argument>
</arguments>
<environmentVariables>
<JBOSS_HOME>${project.build.directory}/jbossas</JBOSS_HOME>
</environmentVariables>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

</profiles>


Expand Down
46 changes: 46 additions & 0 deletions testsuite/domain/pom.xml
Expand Up @@ -49,6 +49,8 @@
<xslt.scripts.dir>${basedir}/../integration/src/test/xslt</xslt.scripts.dir>
<enforcer.skip>true</enforcer.skip>
<jbossas.ts.dir>${basedir}/..</jbossas.ts.dir>

<ts.elytron.cli>../shared/enable-elytron.cli</ts.elytron.cli>
</properties>

<!--
Expand Down Expand Up @@ -305,6 +307,50 @@
</plugins>
</build>
</profile>

<profile>
<id>elytron.profile</id>
<activation>
<property>
<name>elytron</name>
</property>
<file>
<exists>${ts.elytron.cli}</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>enable-elytron-cli</id>
<phase>test-compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${java.home}/bin/java</executable>
<arguments>
<argument>-jar</argument>
<argument>${project.build.directory}/jbossas/jboss-modules.jar</argument>
<argument>-mp</argument>
<argument>${jboss.dist}/modules</argument>
<argument>org.jboss.as.cli</argument>
<argument>--file=${ts.elytron.cli}</argument>
</arguments>
<environmentVariables>
<JBOSS_HOME>${project.build.directory}/jbossas</JBOSS_HOME>
</environmentVariables>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

</profiles>

</project>
46 changes: 46 additions & 0 deletions testsuite/mixed-domain/pom.xml
Expand Up @@ -45,6 +45,8 @@
<!-- Used to provide an absolute location for the XSLT scripts. -->
<!-- This value is overridden in submodules with the correct relative path. -->
<xslt.scripts.dir>${basedir}/../integration/src/test/xslt</xslt.scripts.dir>

<ts.elytron.cli>../shared/enable-elytron.cli</ts.elytron.cli>
</properties>

<!--
Expand Down Expand Up @@ -111,4 +113,48 @@
</plugins>
</build>

<profiles>
<profile>
<id>elytron.profile</id>
<activation>
<property>
<name>elytron</name>
</property>
<file>
<exists>${ts.elytron.cli}</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>enable-elytron-cli</id>
<phase>test-compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${java.home}/bin/java</executable>
<arguments>
<argument>-jar</argument>
<argument>${project.build.directory}/jbossas/jboss-modules.jar</argument>
<argument>-mp</argument>
<argument>${jboss.dist}/modules</argument>
<argument>org.jboss.as.cli</argument>
<argument>--file=${ts.elytron.cli}</argument>
</arguments>
<environmentVariables>
<JBOSS_HOME>${project.build.directory}/jbossas</JBOSS_HOME>
</environmentVariables>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
47 changes: 47 additions & 0 deletions testsuite/shared/enable-elytron.cli
Expand Up @@ -40,3 +40,50 @@ embed-server --server-config=standalone-full.xml
/core-service=management/security-realm=ApplicationRealm/authorization=properties:remove

stop-embedded-server


embed-host-controller

/profile=default/subsystem=undertow/application-security-domain=other:add(http-authentication-factory=application-http-authentication)
/profile=default/subsystem=ejb3/application-security-domain=other:add(security-domain=ApplicationDomain)
/profile=default/subsystem=batch-jberet:write-attribute(name=security-domain, value=ApplicationDomain)
/profile=default/subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=sasl-authentication-factory, value=application-sasl-authentication)
/profile=default/subsystem=remoting/http-connector=http-remoting-connector:undefine-attribute(name=security-realm)

/profile=full/subsystem=undertow/application-security-domain=other:add(http-authentication-factory=application-http-authentication)
/profile=full/subsystem=ejb3/application-security-domain=other:add(security-domain=ApplicationDomain)
/profile=full/subsystem=batch-jberet:write-attribute(name=security-domain, value=ApplicationDomain)
/profile=full/subsystem=messaging-activemq/server=default:undefine-attribute(name=security-domain)
/profile=full/subsystem=messaging-activemq/server=default:write-attribute(name=elytron-domain, value=ApplicationDomain)
/profile=full/subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=sasl-authentication-factory, value=application-sasl-authentication)
/profile=full/subsystem=remoting/http-connector=http-remoting-connector:undefine-attribute(name=security-realm)

/profile=full-ha/subsystem=undertow/application-security-domain=other:add(http-authentication-factory=application-http-authentication)
/profile=full-ha/subsystem=ejb3/application-security-domain=other:add(security-domain=ApplicationDomain)
/profile=full-ha/subsystem=batch-jberet:write-attribute(name=security-domain, value=ApplicationDomain)
/profile=full-ha/subsystem=messaging-activemq/server=default:undefine-attribute(name=security-domain)
/profile=full-ha/subsystem=messaging-activemq/server=default:write-attribute(name=elytron-domain, value=ApplicationDomain)
/profile=full-ha/subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=sasl-authentication-factory, value=application-sasl-authentication)
/profile=full-ha/subsystem=remoting/http-connector=http-remoting-connector:undefine-attribute(name=security-realm)

/profile=ha/subsystem=undertow/application-security-domain=other:add(http-authentication-factory=application-http-authentication)
/profile=ha/subsystem=ejb3/application-security-domain=other:add(security-domain=ApplicationDomain)
/profile=ha/subsystem=batch-jberet:write-attribute(name=security-domain, value=ApplicationDomain)
/profile=ha/subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=sasl-authentication-factory, value=application-sasl-authentication)
/profile=ha/subsystem=remoting/http-connector=http-remoting-connector:undefine-attribute(name=security-realm)

/core-service=management/access=identity:add(security-domain=ManagementDomain)
/host=master/core-service=management/management-interface=http-interface:write-attribute(name=http-upgrade,value={enabled=true, sasl-authentication-factory=management-sasl-authentication})
/host=master/core-service=management/management-interface=http-interface:write-attribute(name=http-authentication-factory,value=management-http-authentication)
/host=master/core-service=management/management-interface=http-interface:undefine-attribute(name=security-realm)

/host=master/core-service=management/management-interface=native-interface:write-attribute(name=sasl-authentication-factory,value=management-sasl-authentication)
/host=master/core-service=management/management-interface=native-interface:undefine-attribute(name=security-realm)

/host=master/core-service=management/security-realm=ManagementRealm:remove
/host=master/core-service=management/security-realm=ApplicationRealm/authentication=local:remove
/host=master/core-service=management/security-realm=ApplicationRealm/authentication=properties:remove
/host=master/core-service=management/security-realm=ApplicationRealm/authorization=properties:remove

stop-embedded-host-controller

0 comments on commit 5068099

Please sign in to comment.