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
131c3296
Commit
131c3296
authored
Dec 31, 2019
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add wait between retries of SSO settings
parent
13dfcf8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
qa/qa/ee/page/group/settings/saml_sso.rb
qa/qa/ee/page/group/settings/saml_sso.rb
+4
-4
qa/qa/specs/features/ee/browser_ui/1_manage/group/group_saml_sso_spec.rb
...tures/ee/browser_ui/1_manage/group/group_saml_sso_spec.rb
+2
-0
No files found.
qa/qa/ee/page/group/settings/saml_sso.rb
View file @
131c3296
...
...
@@ -31,28 +31,28 @@ module QA
end
def
enforce_sso
Support
::
Retrier
.
retry_until
do
Support
::
Retrier
.
retry_until
(
sleep_interval:
1.0
,
exit_on_failure:
true
)
do
click_element
:enforced_sso_toggle_button
unless
find_element
(
:enforced_sso_toggle_button
)[
:class
].
include?
(
'is-checked'
)
find_element
(
:enforced_sso_toggle_button
)[
:class
].
include?
(
'is-checked'
)
end
end
def
disable_enforce_sso
Support
::
Retrier
.
retry_until
do
Support
::
Retrier
.
retry_until
(
sleep_interval:
1.0
,
exit_on_failure:
true
)
do
click_element
:enforced_sso_toggle_button
if
find_element
(
:enforced_sso_toggle_button
)[
:class
].
include?
(
'is-checked'
)
!
find_element
(
:enforced_sso_toggle_button
)[
:class
].
include?
(
'is-checked'
)
end
end
def
enable_group_managed_accounts
Support
::
Retrier
.
retry_until
do
Support
::
Retrier
.
retry_until
(
sleep_interval:
1.0
,
exit_on_failure:
true
)
do
click_element
:group_managed_accounts_toggle_button
unless
find_element
(
:group_managed_accounts_toggle_button
)[
:class
].
include?
(
'is-checked'
)
find_element
(
:group_managed_accounts_toggle_button
)[
:class
].
include?
(
'is-checked'
)
end
end
def
disable_group_managed_accounts
Support
::
Retrier
.
retry_until
do
Support
::
Retrier
.
retry_until
(
sleep_interval:
1.0
,
exit_on_failure:
true
)
do
click_element
:group_managed_accounts_toggle_button
if
find_element
(
:group_managed_accounts_toggle_button
)[
:class
].
include?
(
'is-checked'
)
!
find_element
(
:group_managed_accounts_toggle_button
)[
:class
].
include?
(
'is-checked'
)
end
...
...
qa/qa/specs/features/ee/browser_ui/1_manage/group/group_saml_sso_spec.rb
View file @
131c3296
...
...
@@ -320,6 +320,8 @@ module QA
end
def
remove_user_if_exists
(
username_or_email
)
QA
::
Runtime
::
Logger
.
debug
(
"Removing user
\"
#{
username_or_email
}
\"
via API"
)
response
=
parse_body
(
get
Runtime
::
API
::
Request
.
new
(
@api_client
,
"/users?search=
#{
username_or_email
}
"
).
url
)
delete
Runtime
::
API
::
Request
.
new
(
@api_client
,
"/users/
#{
response
.
first
[
:id
]
}
"
).
url
if
response
.
any?
...
...
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