[KEYCLOAK-14358] Enable StartTLS LDAP tests

Thanks to KEYCLOAK-14343 Use Truststore SPI StartTLS bug fix
they will work with Truststore SPI used by auth server Wildfly too

Signed-off-by: Jan Lieskovsky <jlieskov@redhat.com>
This commit is contained in:
Jan Lieskovsky 2020-06-08 18:20:19 +02:00 committed by Marek Posolda
parent 3c82f523ff
commit df7d85b38d

View file

@ -20,7 +20,6 @@ package org.keycloak.testsuite.federation.ldap;
import org.jboss.arquillian.graphene.page.Page; import org.jboss.arquillian.graphene.page.Page;
import org.junit.FixMethodOrder; import org.junit.FixMethodOrder;
import org.junit.Ignore;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.rules.ExternalResource; import org.junit.rules.ExternalResource;
@ -240,8 +239,6 @@ public class LDAPUserLoginTest extends AbstractLDAPTest {
// Check LDAP federated user (in)valid login(s) with simple authentication & startTLS encryption enabled // Check LDAP federated user (in)valid login(s) with simple authentication & startTLS encryption enabled
// Test variant: Bind credential set to secret (default) // Test variant: Bind credential set to secret (default)
// KEYCLOAK-14358 - Disable the StartTLS LDAP tests till KEYCLOAK-14343 & KEYCLOAK-14354 are corrected
// since they don't work properly with auth server Wildfly due these bugs
@Test @Test
@LDAPConnectionParameters(bindType=LDAPConnectionParameters.BindType.SIMPLE, encryption=LDAPConnectionParameters.Encryption.STARTTLS) @LDAPConnectionParameters(bindType=LDAPConnectionParameters.BindType.SIMPLE, encryption=LDAPConnectionParameters.Encryption.STARTTLS)
public void loginLDAPUserAuthenticationSimpleEncryptionStartTLS() { public void loginLDAPUserAuthenticationSimpleEncryptionStartTLS() {
@ -251,8 +248,6 @@ public class LDAPUserLoginTest extends AbstractLDAPTest {
// Check LDAP federated user (in)valid login(s) with simple authentication & startTLS encryption enabled // Check LDAP federated user (in)valid login(s) with simple authentication & startTLS encryption enabled
// Test variant: Bind credential set to vault // Test variant: Bind credential set to vault
// KEYCLOAK-14358 - Disable the StartTLS LDAP tests till KEYCLOAK-14343 & KEYCLOAK-14354 are corrected
// since they don't work properly with auth server Wildfly due these bugs
@Test @Test
@LDAPConnectionParameters(bindCredential=LDAPConnectionParameters.BindCredential.VAULT, bindType=LDAPConnectionParameters.BindType.SIMPLE, encryption=LDAPConnectionParameters.Encryption.STARTTLS) @LDAPConnectionParameters(bindCredential=LDAPConnectionParameters.BindCredential.VAULT, bindType=LDAPConnectionParameters.BindType.SIMPLE, encryption=LDAPConnectionParameters.Encryption.STARTTLS)
public void loginLDAPUserCredentialVaultAuthenticationSimpleEncryptionStartTLS() { public void loginLDAPUserCredentialVaultAuthenticationSimpleEncryptionStartTLS() {
@ -298,9 +293,6 @@ public class LDAPUserLoginTest extends AbstractLDAPTest {
// Check LDAP federated user (in)valid login(s) with anonymous authentication & startTLS encryption enabled // Check LDAP federated user (in)valid login(s) with anonymous authentication & startTLS encryption enabled
// Test variant: Bind credential set to secret (default) // Test variant: Bind credential set to secret (default)
// KEYCLOAK-14358 - Disable the StartTLS LDAP tests till KEYCLOAK-14343 & KEYCLOAK-14354 are corrected
// since they don't work properly with auth server Wildfly due these bugs
@Ignore
@Test @Test
@LDAPConnectionParameters(bindType=LDAPConnectionParameters.BindType.NONE, encryption=LDAPConnectionParameters.Encryption.STARTTLS) @LDAPConnectionParameters(bindType=LDAPConnectionParameters.BindType.NONE, encryption=LDAPConnectionParameters.Encryption.STARTTLS)
public void loginLDAPUserAuthenticationNoneEncryptionStartTLS() { public void loginLDAPUserAuthenticationNoneEncryptionStartTLS() {
@ -310,9 +302,6 @@ public class LDAPUserLoginTest extends AbstractLDAPTest {
// Check LDAP federated user (in)valid login(s) with anonymous authentication & startTLS encryption enabled // Check LDAP federated user (in)valid login(s) with anonymous authentication & startTLS encryption enabled
// Test variant: Bind credential set to vault // Test variant: Bind credential set to vault
// KEYCLOAK-14358 - Disable the StartTLS LDAP tests till KEYCLOAK-14343 & KEYCLOAK-14354 are corrected
// since they don't work properly with auth server Wildfly due these bugs
@Ignore
@Test @Test
@LDAPConnectionParameters(bindCredential=LDAPConnectionParameters.BindCredential.VAULT, bindType=LDAPConnectionParameters.BindType.NONE, encryption=LDAPConnectionParameters.Encryption.STARTTLS) @LDAPConnectionParameters(bindCredential=LDAPConnectionParameters.BindCredential.VAULT, bindType=LDAPConnectionParameters.BindType.NONE, encryption=LDAPConnectionParameters.Encryption.STARTTLS)
public void loginLDAPUserCredentialVaultAuthenticationNoneEncryptionStartTLS() { public void loginLDAPUserCredentialVaultAuthenticationNoneEncryptionStartTLS() {