SEC-1677: Split out LDAP server tests from config module.
This commit is contained in:
		
							parent
							
								
									44fb3aa4ab
								
							
						
					
					
						commit
						27be72a81c
					
				| 
						 | 
				
			
			@ -38,15 +38,3 @@ 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/**")
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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>
 | 
			
		||||
| 
						 | 
				
			
			@ -12,5 +12,3 @@ cn: Pierre
 | 
			
		|||
sn: Gorille
 | 
			
		||||
uid: pg
 | 
			
		||||
userPassword: password
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -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>
 | 
			
		||||
| 
						 | 
				
			
			@ -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 {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue