BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
7534f7a8
Commit
7534f7a8
authored
Feb 09, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sh-ldap-set-first-password-qa' into 'master'
Set initial password for instance in LDAP QA test See merge request gitlab-org/gitlab-ce!17024
parents
fa0923dd
589f6b19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
login.rb
qa/qa/page/main/login.rb
+16
-9
No files found.
qa/qa/page/main/login.rb
View file @
7534f7a8
...
...
@@ -31,22 +31,29 @@ module QA
end
end
def
set_initial_password_if_present
if
page
.
has_content?
(
'Change your password'
)
fill_in
:user_password
,
with:
Runtime
::
User
.
password
fill_in
:user_password_confirmation
,
with:
Runtime
::
User
.
password
click_button
'Change your password'
end
end
def
sign_in_using_ldap_credentials
click_link
'LDAP'
using_wait_time
0
do
set_initial_password_if_present
fill_in
:username
,
with:
Runtime
::
User
.
name
fill_in
:password
,
with:
Runtime
::
User
.
password
click_link
'LDAP'
click_button
'Sign in'
fill_in
:username
,
with:
Runtime
::
User
.
name
fill_in
:password
,
with:
Runtime
::
User
.
password
click_button
'Sign in'
end
end
def
sign_in_using_credentials
using_wait_time
0
do
if
page
.
has_content?
(
'Change your password'
)
fill_in
:user_password
,
with:
Runtime
::
User
.
password
fill_in
:user_password_confirmation
,
with:
Runtime
::
User
.
password
click_button
'Change your password'
end
set_initial_password_if_present
click_link
'Standard'
if
page
.
has_content?
(
'LDAP'
)
...
...
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