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
90f05d39
Commit
90f05d39
authored
Nov 16, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Geo repository replication in QA test scenario
parent
972c7158
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
4 deletions
+43
-4
qa/qa.rb
qa/qa.rb
+1
-0
qa/qa/ee/scenario/test/geo.rb
qa/qa/ee/scenario/test/geo.rb
+4
-1
qa/qa/page/dashboard/projects.rb
qa/qa/page/dashboard/projects.rb
+11
-0
qa/qa/page/main/menu.rb
qa/qa/page/main/menu.rb
+4
-1
qa/qa/page/project/show.rb
qa/qa/page/project/show.rb
+4
-0
qa/qa/specs/features/ee/geo/replication_spec.rb
qa/qa/specs/features/ee/geo/replication_spec.rb
+19
-2
No files found.
qa/qa.rb
View file @
90f05d39
...
...
@@ -72,6 +72,7 @@ module QA
end
module
Dashboard
autoload
:Projects
,
'qa/page/dashboard/projects'
autoload
:Groups
,
'qa/page/dashboard/groups'
end
...
...
qa/qa/ee/scenario/test/geo.rb
View file @
90f05d39
...
...
@@ -24,10 +24,10 @@ module QA
enable_hashed_storage
set_replication_password
set_primary_node
add_secondary_node
end
Geo
::
Secondary
.
act
{
replicate_database
}
Geo
::
Primary
.
act
{
add_secondary_node
}
end
Specs
::
Runner
.
perform
do
|
specs
|
...
...
@@ -108,6 +108,9 @@ module QA
end
puts
'Waiting until secondary node services are restarted ...'
# TODO, use Capybara helper to wait for HTTP status 200 on secondary
#
sleep
60
end
end
...
...
qa/qa/page/dashboard/projects.rb
0 → 100644
View file @
90f05d39
module
QA
module
Page
module
Dashboard
class
Projects
<
Page
::
Base
def
go_to_project
(
name
)
find_link
(
text:
name
).
click
end
end
end
end
end
qa/qa/page/main/menu.rb
View file @
90f05d39
...
...
@@ -7,7 +7,10 @@ module QA
end
def
go_to_projects
within_top_menu
{
click_link
'Projects'
}
within_top_menu
do
click_link
'Projects'
click_link
'Your projects'
end
end
def
go_to_admin_area
...
...
qa/qa/page/project/show.rb
View file @
90f05d39
...
...
@@ -14,6 +14,10 @@ module QA
find
(
'#project_clone'
).
value
end
def
project_name
find
(
'.project-title'
).
text
end
def
wait_for_push
sleep
5
end
...
...
qa/qa/specs/features/ee/geo/replication_spec.rb
View file @
90f05d39
...
...
@@ -9,6 +9,9 @@ module QA
scenario
.
description
=
'Geo test project'
end
geo_project_name
=
Page
::
Project
::
Show
.
act
{
project_name
}
expect
(
geo_project_name
).
to
include
'geo-project'
Git
::
Repository
.
perform
do
|
repository
|
repository
.
location
=
Page
::
Project
::
Show
.
act
do
choose_repository_clone_http
...
...
@@ -34,8 +37,22 @@ module QA
expect
(
page
).
to
have_content
'You are on a secondary (read-only) Geo node'
Page
::
Main
::
Menu
.
act
{
go_to_projects
}
expect
(
page
).
to
have_content
'geo-project'
Page
::
Main
::
Menu
.
perform
do
|
menu
|
menu
.
go_to_projects
expect
(
page
).
to
have_content
(
geo_project_name
)
end
sleep
10
# wait for repository replication
Page
::
Dashboard
::
Projects
.
perform
do
|
dashboard
|
dashboard
.
go_to_project
(
geo_project_name
)
end
Page
::
Project
::
Show
.
perform
do
expect
(
page
).
to
have_content
'README.md'
expect
(
page
).
to
have_content
'This is Geo project!'
end
end
end
end
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