Skip to content

Commit

Permalink
Merge pull request #9674 from kwart/WFLY-8159-integration-elytron-pro…
Browse files Browse the repository at this point in the history
…file

[WFLY-8159] avoid executing elytron testsuite profile in the parent integration module
  • Loading branch information
kabir committed Feb 20, 2017
2 parents c0a4ec7 + 30d568c commit 8aacf6c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
10 changes: 7 additions & 3 deletions testsuite/integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@

<ts.skipTests>${skipTests}</ts.skipTests>
<enforcer.skip>true</enforcer.skip>

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

<profiles>
Expand Down Expand Up @@ -215,17 +217,19 @@
<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>
<version>${version.exec.plugin}</version>
<executions>
<execution>
<id>enable-elytron-cli</id>
<phase>process-test-resources</phase>
<phase>test-compile</phase>
<goals>
<goal>exec</goal>
</goals>
Expand All @@ -237,7 +241,7 @@
<argument>-mp</argument>
<argument>${jboss.dist}/modules</argument>
<argument>org.jboss.as.cli</argument>
<argument>--file=${project.parent.parent.basedir}/shared/enable-elytron.cli</argument>
<argument>--file=${ts.elytron.cli}</argument>
</arguments>
<environmentVariables>
<JBOSS_HOME>${project.build.directory}/jbossas</JBOSS_HOME>
Expand Down
2 changes: 2 additions & 0 deletions testsuite/integration/web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
<!-- use the web build for tests -->
<jboss.dist>${jbossas.project.dir}/${wildfly.web.build.output.dir}</jboss.dist>
<jboss.home>${jboss.dist}</jboss.home>

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

<dependencies>
Expand Down
16 changes: 16 additions & 0 deletions testsuite/integration/web/web-enable-elytron.cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
embed-server --server-config=standalone.xml

/subsystem=undertow/application-security-domain=other:add(http-authentication-factory=application-http-authentication)

## TODO use Elytron for management
# /core-service=management/access=identity:add(security-domain=ManagementDomain)
# /core-service=management/management-interface=http-interface:write-attribute(name=http-upgrade,value={enabled=true, sasl-authentication-factory=management-sasl-authentication})
# /core-service=management/management-interface=http-interface:write-attribute(name=http-authentication-factory,value=management-http-authentication)
# /core-service=management/management-interface=http-interface:undefine-attribute(name=security-realm)
# /core-service=management/security-realm=ManagementRealm:remove

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

stop-embedded-server

0 comments on commit 8aacf6c

Please sign in to comment.