Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hdacloud
dex
Commits
1f2771b5
Commit
1f2771b5
authored
4 years ago
by
m.nabokikh
Browse files
Options
Downloads
Patches
Plain Diff
fix: do not run LDAP tests locally by default
Signed-off-by:
m.nabokikh
<
maksim.nabokikh@flant.com
>
parent
0f68fadb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/ci.yaml
+1
-0
1 addition, 0 deletions
.github/workflows/ci.yaml
connector/ldap/ldap_test.go
+4
-0
4 additions, 0 deletions
connector/ldap/ldap_test.go
with
5 additions
and
0 deletions
.github/workflows/ci.yaml
+
1
−
0
View file @
1f2771b5
...
...
@@ -71,6 +71,7 @@ jobs:
DEX_POSTGRES_HOST
:
localhost
DEX_POSTGRES_PORT
:
${{ job.services.postgres.ports[5432] }}
DEX_ETCD_ENDPOINTS
:
http://localhost:${{ job.services.etcd.ports[2379] }}
DEX_LDAP_TESTS
:
yes
DEX_LDAP_HOST
:
localhost
DEX_LDAP_PORT
:
389
DEX_LDAP_TLS_PORT
:
636
...
...
This diff is collapsed.
Click to expand it.
connector/ldap/ldap_test.go
+
4
−
0
View file @
1f2771b5
...
...
@@ -526,6 +526,10 @@ func getenv(key, defaultVal string) string {
// The tests require LDAP to be runnning.
// You can use the provided docker-compose file to setup an LDAP server.
func
runTests
(
t
*
testing
.
T
,
connMethod
connectionMethod
,
config
*
Config
,
tests
[]
subtest
)
{
if
os
.
Getenv
(
"DEX_LDAP_TESTS"
)
==
""
{
t
.
Skip
(
"Specify not-empty DEX_LDAP_TESTS env variable to enable LDAP tests"
)
}
// Shallow copy.
c
:=
*
config
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment