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
f1b6436f
Commit
f1b6436f
authored
Oct 14, 2019
by
Mark Lapierre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update pull mirroring test to use admin creds
parent
e4392000
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
qa/qa/specs/features/ee/browser_ui/3_create/repository/pull_mirroring_over_http_spec.rb
...r_ui/3_create/repository/pull_mirroring_over_http_spec.rb
+6
-4
No files found.
qa/qa/specs/features/ee/browser_ui/3_create/repository/pull_mirroring_over_http_spec.rb
View file @
f1b6436f
...
...
@@ -2,10 +2,12 @@
module
QA
context
'Create'
do
describe
'Pull mirror a repository over HTTP'
do
# Use Admin credentials as a workaround for a permissions bug
# See https://gitlab.com/gitlab-org/gitlab/issues/13769
describe
'Pull mirror a repository over HTTP'
,
:requires_admin
do
it
'configures and syncs a (pull) mirrored repository with password auth'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_
admin_
credentials
)
source
=
Resource
::
Repository
::
ProjectPush
.
fabricate!
do
|
project_push
|
project_push
.
project_name
=
'pull-mirror-source-project'
...
...
@@ -14,7 +16,7 @@ module QA
project_push
.
commit_message
=
'Add README.md'
end
source_project_uri
=
source
.
project
.
repository_http_location
.
uri
source_project_uri
.
user
=
Runtime
::
User
.
username
source_project_uri
.
user
=
CGI
.
escape
(
Runtime
::
User
.
admin_username
)
target_project
=
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
.
name
=
'pull-mirror-target-project'
...
...
@@ -28,7 +30,7 @@ module QA
mirror_settings
.
repository_url
=
source_project_uri
mirror_settings
.
mirror_direction
=
'Pull'
mirror_settings
.
authentication_method
=
'Password'
mirror_settings
.
password
=
Runtime
::
User
.
password
mirror_settings
.
password
=
Runtime
::
User
.
admin_
password
mirror_settings
.
mirror_repository
mirror_settings
.
update
source_project_uri
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