Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
08b45fc9
Commit
08b45fc9
authored
Mar 02, 2018
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing ldap conflicts
parent
cd63df1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
11 deletions
+0
-11
spec/lib/gitlab/auth/ldap/user_spec.rb
spec/lib/gitlab/auth/ldap/user_spec.rb
+0
-8
spec/support/ldap_helpers.rb
spec/support/ldap_helpers.rb
+0
-3
No files found.
spec/lib/gitlab/auth/ldap/user_spec.rb
View file @
08b45fc9
require
'spec_helper'
require
'spec_helper'
describe
Gitlab
::
Auth
::
LDAP
::
User
do
describe
Gitlab
::
Auth
::
LDAP
::
User
do
<<<<<<<
HEAD
:spec
/
lib
/
gitlab
/
auth
/
ldap
/
user_spec
.
rb
include
LdapHelpers
include
LdapHelpers
=======
>>>>>>>
upstream
/
master
:spec
/
lib
/
gitlab
/
auth
/
ldap
/
user_spec
.
rb
let
(
:ldap_user
)
{
described_class
.
new
(
auth_hash
)
}
let
(
:ldap_user
)
{
described_class
.
new
(
auth_hash
)
}
let
(
:gl_user
)
{
ldap_user
.
gl_user
}
let
(
:gl_user
)
{
ldap_user
.
gl_user
}
let
(
:info
)
do
let
(
:info
)
do
...
@@ -183,12 +180,7 @@ describe Gitlab::Auth::LDAP::User do
...
@@ -183,12 +180,7 @@ describe Gitlab::Auth::LDAP::User do
describe
'blocking'
do
describe
'blocking'
do
def
configure_block
(
value
)
def
configure_block
(
value
)
<<<<<<<
HEAD
:spec
/
lib
/
gitlab
/
auth
/
ldap
/
user_spec
.
rb
stub_ldap_config
(
block_auto_created_users:
value
)
stub_ldap_config
(
block_auto_created_users:
value
)
=======
allow_any_instance_of
(
Gitlab
::
Auth
::
LDAP
::
Config
)
.
to
receive
(
:block_auto_created_users
).
and_return
(
value
)
>>>>>>>
upstream
/
master
:spec
/
lib
/
gitlab
/
auth
/
ldap
/
user_spec
.
rb
end
end
context
'signup'
do
context
'signup'
do
...
...
spec/support/ldap_helpers.rb
View file @
08b45fc9
...
@@ -3,15 +3,12 @@ module LdapHelpers
...
@@ -3,15 +3,12 @@ module LdapHelpers
def
ldap_adapter
(
provider
=
'ldapmain'
,
ldap
=
double
(
:ldap
))
def
ldap_adapter
(
provider
=
'ldapmain'
,
ldap
=
double
(
:ldap
))
::
Gitlab
::
Auth
::
LDAP
::
Adapter
.
new
(
provider
,
ldap
)
::
Gitlab
::
Auth
::
LDAP
::
Adapter
.
new
(
provider
,
ldap
)
<<<<<<<
HEAD
end
end
def
fake_ldap_sync_proxy
(
provider
)
def
fake_ldap_sync_proxy
(
provider
)
fake_proxy
=
double
(
:proxy
,
adapter:
ldap_adapter
)
fake_proxy
=
double
(
:proxy
,
adapter:
ldap_adapter
)
allow
(
::
EE
::
Gitlab
::
Auth
::
LDAP
::
Sync
::
Proxy
).
to
receive
(
:open
).
with
(
provider
).
and_yield
(
fake_proxy
)
allow
(
::
EE
::
Gitlab
::
Auth
::
LDAP
::
Sync
::
Proxy
).
to
receive
(
:open
).
with
(
provider
).
and_yield
(
fake_proxy
)
fake_proxy
fake_proxy
=======
>>>>>>>
upstream
/
master
end
end
def
user_dn
(
uid
)
def
user_dn
(
uid
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment