Skip to content
Snippets Groups Projects
Unverified Commit 6f70272b authored by Mark Sagi-Kazar's avatar Mark Sagi-Kazar
Browse files

test(connector/ldap): remove ldap test gate


Now that the ldap tests don't create containers on the fly
they can run the same way as other integration tests.

Signed-off-by: default avatarMark Sagi-Kazar <mark.sagikazar@gmail.com>
parent f11db503
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,6 @@ jobs: ...@@ -71,7 +71,6 @@ jobs:
DEX_POSTGRES_HOST: localhost DEX_POSTGRES_HOST: localhost
DEX_POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }} DEX_POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
DEX_ETCD_ENDPOINTS: http://localhost:${{ job.services.etcd.ports[2379] }} DEX_ETCD_ENDPOINTS: http://localhost:${{ job.services.etcd.ports[2379] }}
DEX_LDAP_TESTS: 1
DEX_LDAP_HOST: localhost DEX_LDAP_HOST: localhost
DEX_LDAP_PORT: 389 DEX_LDAP_PORT: 389
DEX_LDAP_TLS_PORT: 636 DEX_LDAP_TLS_PORT: 636
......
...@@ -13,8 +13,6 @@ import ( ...@@ -13,8 +13,6 @@ import (
"github.com/dexidp/dex/connector" "github.com/dexidp/dex/connector"
) )
const envVar = "DEX_LDAP_TESTS"
// connectionMethod indicates how the test should connect to the LDAP server. // connectionMethod indicates how the test should connect to the LDAP server.
type connectionMethod int32 type connectionMethod int32
...@@ -527,13 +525,7 @@ func getenv(key, defaultVal string) string { ...@@ -527,13 +525,7 @@ func getenv(key, defaultVal string) string {
// //
// The tests require LDAP to be runnning. // The tests require LDAP to be runnning.
// You can use the provided docker-compose file to setup an LDAP server. // You can use the provided docker-compose file to setup an LDAP server.
//
// The DEX_LDAP_TESTS must be set to "1"
func runTests(t *testing.T, connMethod connectionMethod, config *Config, tests []subtest) { func runTests(t *testing.T, connMethod connectionMethod, config *Config, tests []subtest) {
if os.Getenv(envVar) != "1" {
t.Skipf("%s not set. Skipping test (run 'export %s=1' to run tests)", envVar, envVar)
}
// Shallow copy. // Shallow copy.
c := *config c := *config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment