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
9141628d
Commit
9141628d
authored
Aug 28, 2019
by
Jennifer Louie
Committed by
Mark Lapierre
Aug 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Geo: Test wiki replication via HTTP
parent
019f1e14
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
3 deletions
+81
-3
qa/qa/specs/features/ee/browser_ui/geo/http_push_spec.rb
qa/qa/specs/features/ee/browser_ui/geo/http_push_spec.rb
+3
-3
qa/qa/specs/features/ee/browser_ui/geo/wiki_http_push_spec.rb
...a/specs/features/ee/browser_ui/geo/wiki_http_push_spec.rb
+78
-0
No files found.
qa/qa/specs/features/ee/browser_ui/geo/http_push_spec.rb
View file @
9141628d
...
...
@@ -74,7 +74,7 @@ module QA
context
'git-lfs commit'
do
it
'is replicated to the secondary'
do
file_content
=
'This is a Geo project!'
lfs_file_
content
=
'The rendered file could not be displayed because it is stored in LFS.'
lfs_file_
display_message
=
'The rendered file could not be displayed because it is stored in LFS.'
project
=
nil
Runtime
::
Browser
.
visit
(
:geo_primary
,
QA
::
Page
::
Main
::
Login
)
do
...
...
@@ -103,7 +103,7 @@ module QA
show
.
wait_for_repository_replication
expect
(
page
).
to
have_content
(
file_name
)
expect
(
page
).
to
have_content
(
lfs_file_
content
)
expect
(
page
).
to
have_content
(
lfs_file_
display_message
)
end
end
...
...
@@ -127,7 +127,7 @@ module QA
show
.
wait_for_repository_replication_with
(
file_name
)
expect
(
page
).
to
have_content
(
file_name
)
expect
(
page
).
to
have_content
(
lfs_file_
content
)
expect
(
page
).
to
have_content
(
lfs_file_
display_message
)
end
end
end
...
...
qa/qa/specs/features/ee/browser_ui/geo/wiki_http_push_spec.rb
0 → 100644
View file @
9141628d
# frozen_string_literal: true
module
QA
context
'Geo'
,
:orchestrated
,
:geo
do
describe
'GitLab wiki HTTP push'
do
after
do
# Log out so subsequent tests can start unauthenticated
Runtime
::
Browser
.
visit
(
:geo_secondary
,
QA
::
Page
::
Dashboard
::
Projects
)
Page
::
Main
::
Menu
.
perform
do
|
menu
|
menu
.
sign_out
if
menu
.
has_personal_area?
(
wait:
0
)
end
end
context
'wiki commit'
do
it
'is replicated to the secondary node'
do
wiki_title
=
'Geo Replication Wiki'
wiki_content
=
'This tests replication of wikis via HTTP'
push_content
=
'This is from the Geo wiki push!'
project_name
=
"geo-wiki-project-
#{
SecureRandom
.
hex
(
8
)
}
"
# Create new wiki and push wiki commit
Runtime
::
Browser
.
visit
(
:geo_primary
,
QA
::
Page
::
Main
::
Login
)
do
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
project
=
Resource
::
Project
.
fabricate!
do
|
project
|
project
.
name
=
project_name
project
.
description
=
'Geo project for wiki repo test'
end
wiki
=
Resource
::
Wiki
.
fabricate!
do
|
wiki
|
wiki
.
project
=
project
wiki
.
title
=
wiki_title
wiki
.
content
=
wiki_content
wiki
.
message
=
'First commit'
end
expect
(
page
).
to
have_content
(
wiki_content
)
Resource
::
Repository
::
WikiPush
.
fabricate!
do
|
push
|
push
.
wiki
=
wiki
push
.
file_name
=
'Home.md'
push
.
file_content
=
push_content
push
.
commit_message
=
'Update Home.md'
end
Page
::
Project
::
Menu
.
perform
(
&
:click_wiki
)
expect
(
page
).
to
have_content
(
push_content
)
end
# Validate that wiki is synced on secondary node
Runtime
::
Browser
.
visit
(
:geo_secondary
,
QA
::
Page
::
Main
::
Login
)
do
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
EE
::
Page
::
Main
::
Banner
.
perform
do
|
banner
|
expect
(
banner
).
to
have_secondary_read_only_banner
end
Page
::
Main
::
Menu
.
perform
do
|
menu
|
menu
.
go_to_projects
end
Page
::
Dashboard
::
Projects
.
perform
do
|
dashboard
|
dashboard
.
wait_for_project_replication
(
project_name
)
dashboard
.
go_to_project
(
project_name
)
end
Page
::
Project
::
Menu
.
perform
(
&
:click_wiki
)
Page
::
Project
::
Wiki
::
Show
.
perform
do
|
show
|
expect
(
page
).
to
have_content
(
wiki_title
)
expect
(
page
).
to
have_content
(
push_content
)
end
end
end
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