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
2dbf19e7
Commit
2dbf19e7
authored
Nov 09, 2018
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-11-09
parents
9572631f
aa958aba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
6 deletions
+49
-6
app/models/wiki_page.rb
app/models/wiki_page.rb
+0
-6
qa/qa/specs/features/browser_ui/3_create/repository/protocol_v2_push_http_spec.rb
...wser_ui/3_create/repository/protocol_v2_push_http_spec.rb
+49
-0
No files found.
app/models/wiki_page.rb
View file @
2dbf19e7
...
...
@@ -151,12 +151,6 @@ class WikiPage
last_version
&
.
sha
end
# Returns the Date that this latest version was
# created on.
def
created_at
@page
.
version
.
date
end
# Returns boolean True or False if this instance
# is an old version of the page.
def
historical?
...
...
qa/qa/specs/features/browser_ui/3_create/repository/protocol_v2_push_http_spec.rb
0 → 100644
View file @
2dbf19e7
# frozen_string_literal: true
module
QA
context
'Create'
do
describe
'Push over HTTP using Git protocol version 2'
,
:requires_git_protocol_v2
do
it
'user pushes to the repository'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
# Create a project to push to
project
=
Resource
::
Project
.
fabricate!
do
|
project
|
project
.
name
=
'git-protocol-project'
end
file_name
=
'README.md'
file_content
=
'Test Git protocol v2'
git_protocol
=
'2'
git_protocol_reported
=
nil
# Use Git to clone the project, push a file to it, and then check the
# supported Git protocol
Git
::
Repository
.
perform
do
|
repository
|
username
=
'GitLab QA'
email
=
'root@gitlab.com'
repository
.
uri
=
project
.
repository_http_location
.
uri
repository
.
use_default_credentials
repository
.
clone
repository
.
configure_identity
(
username
,
email
)
git_protocol_reported
=
repository
.
push_with_git_protocol
(
git_protocol
,
file_name
,
file_content
)
end
project
.
visit!
Page
::
Project
::
Show
.
perform
(
&
:wait_for_push
)
# Check that the push worked
expect
(
page
).
to
have_content
(
file_name
)
expect
(
page
).
to
have_content
(
file_content
)
# And check that the correct Git protocol was used
expect
(
git_protocol_reported
).
to
eq
(
git_protocol
)
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