Skip to content

Commit

Permalink
FlowableIdmApplicationSecurityTest: Add workaround for spring-project…
Browse files Browse the repository at this point in the history
…s/spring-ldap#473 which causes LDAP health check to fail:

java.lang.NullPointerException: null
	at java.util.Hashtable.put(Hashtable.java:460)
	at org.springframework.ldap.core.support.SimpleDirContextAuthenticationStrategy.setupEnvironment(SimpleDirContextAuthenticationStrategy.java:42)
  • Loading branch information
PascalSchumacher committed Aug 9, 2019
1 parent 3fc0e46 commit 46e5623
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringRunner;

/**
Expand All @@ -56,6 +57,8 @@
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@AutoConfigureWebClient(registerRestTemplate = true)
@Import(FlowableIdmApplicationSecurityTest.TestBootstrapConfiguration.class)
// workaround for https://github.com/spring-projects/spring-ldap/issues/473 until spring-ldap 2.3.3 is released
@TestPropertySource(properties= {"management.health.ldap.enabled=false"})
public class FlowableIdmApplicationSecurityTest {

private static final Set<String> ACTUATOR_LINKS = new HashSet<>(
Expand Down

0 comments on commit 46e5623

Please sign in to comment.