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
18555cc4
Commit
18555cc4
authored
Jun 11, 2019
by
Mark Lapierre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Grant OAuth authorization
So that tests don't have to
parent
53574d08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
qa/qa/ee/scenario/test/geo.rb
qa/qa/ee/scenario/test/geo.rb
+14
-0
No files found.
qa/qa/ee/scenario/test/geo.rb
View file @
18555cc4
...
...
@@ -35,6 +35,7 @@ module QA
Geo
::
Secondary
.
act
do
replicate_database
wait_for_services
authorize
end
end
...
...
@@ -105,6 +106,19 @@ module QA
@name
=
QA
::
Runtime
::
Scenario
.
geo_secondary_name
end
def
authorize
# Provide OAuth authorization now so that tests don't have to
QA
::
Runtime
::
Browser
.
visit
(
:geo_secondary
,
QA
::
Page
::
Main
::
Login
)
do
QA
::
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
QA
::
Page
::
Main
::
OAuth
.
perform
do
|
oauth
|
oauth
.
authorize!
if
oauth
.
needs_authorization?
end
# Log out so that tests are in an initially unauthenticated state
QA
::
Page
::
Main
::
Menu
.
perform
(
&
:sign_out
)
end
end
def
replicate_database
puts
'Starting Geo replication on secondary node ...'
...
...
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