SEC-1677: Split out LDAP server tests from config module.

This commit is contained in:
Luke Taylor 2011-02-14 19:01:27 +00:00
parent 44fb3aa4ab
commit 27be72a81c
9 changed files with 22 additions and 56 deletions

View File

@ -37,16 +37,4 @@ dependencies {
testRuntime "hsqldb:hsqldb:$hsqlVersion",
"cglib:cglib-nodep:2.2"
}
task ldapTests(type: Test) {
jvmArgs = ['-ea', '-Xmx500m', "-DapacheDSWorkDir=${buildDir}/apacheDSWork"]
include ("**/ldap/**")
maxParallelForks = 1
testReport = false
}
test {
dependsOn ldapTests
exclude ("**/ldap/**")
}
}

View File

@ -0,0 +1,19 @@
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<logger name="org.springframework.security" level="${sec.log.level}:-WARN"/>
<logger name="org.apache.directory" level="ERROR"/>
<logger name="JdbmTable" level="INFO"/>
<logger name="JdbmIndex" level="INFO"/>
<logger name="org.apache.mina" level="WARN"/>
<root level="${root.level}:-WARN">
<appender-ref ref="STDOUT" />
</root>
</configuration>

View File

@ -12,5 +12,3 @@ cn: Pierre
sn: Gorille
uid: pg
userPassword: password

View File

@ -1,41 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Test File for use in validating behaviour in an XML editor
-->
<b:beans xmlns="http://www.springframework.org/schema/security"
xmlns:b="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/security ../../main/resources/org/springframework/security/config/spring-security-3.0.xsd">
<global-method-security run-as-manager-ref="myRunAsManager">
<pre-post-annotation-handling>
<invocation-attribute-factory ref=""/>
<pre-invocation-advice ref=""/>
<post-invocation-advice ref=""/>
</pre-post-annotation-handling>
</global-method-security>
<filter-security-metadata-source>
<intercept-url pattern=""/>
</filter-security-metadata-source>
<http>
<access-denied-handler error-page="/go-away.html"/>
<intercept-url pattern="/**" access="ROLE_USER" />
<form-login />
<openid-login/>
<anonymous />
<http-basic />
<concurrent-session-control expired-url="/session-expired" max-sessions="1" session-registry-alias="sessionRegistry"/>
<logout invalidate-session="true" logout-url="/logout" logout-success-url="/you-have-logged-out.htm"/>
</http>
</b:beans>

View File

@ -62,6 +62,8 @@ task integrationTest(type: Test, dependsOn: jar) {
testClassesDir = sourceSets.integrationTest.classesDir
logging.captureStandardOutput(LogLevel.INFO)
classpath = sourceSets.integrationTest.runtimeClasspath
maxParallelForks = 1
testReport = false
}
dependencies {