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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
5dfab4ce
Commit
5dfab4ce
authored
Apr 20, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unify the use of repository_location
parent
fb758c75
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
13 deletions
+9
-13
qa/qa/factory/repository/push.rb
qa/qa/factory/repository/push.rb
+1
-1
qa/qa/factory/resource/project.rb
qa/qa/factory/resource/project.rb
+2
-2
qa/qa/page/project/show.rb
qa/qa/page/project/show.rb
+2
-6
qa/qa/specs/features/project/deploy_key_clone_spec.rb
qa/qa/specs/features/project/deploy_key_clone_spec.rb
+3
-3
qa/qa/specs/features/repository/clone_spec.rb
qa/qa/specs/features/repository/clone_spec.rb
+1
-1
No files found.
qa/qa/factory/repository/push.rb
View file @
5dfab4ce
...
...
@@ -23,7 +23,7 @@ module QA
Git
::
Repository
.
perform
do
|
repository
|
repository
.
location
=
Page
::
Project
::
Show
.
act
do
choose_repository_clone_http
repository_location
repository_location
.
git_uri
end
repository
.
use_default_credentials
...
...
qa/qa/factory/resource/project.rb
View file @
5dfab4ce
...
...
@@ -17,10 +17,10 @@ module QA
Page
::
Project
::
Show
.
act
{
project_name
}
end
product
:repository_ssh_
uri
do
product
:repository_ssh_
location
do
Page
::
Project
::
Show
.
act
do
choose_repository_clone_ssh
repository_location
_uri
repository_location
end
end
...
...
qa/qa/page/project/show.rb
View file @
5dfab4ce
...
...
@@ -33,11 +33,7 @@ module QA
end
def
repository_location
find
(
'#project_clone'
).
value
end
def
repository_location_uri
Git
::
Location
.
new
(
repository_location
)
Git
::
Location
.
new
(
find
(
'#project_clone'
).
value
)
end
def
project_name
...
...
@@ -74,7 +70,7 @@ module QA
end
# Ensure git clone textbox was updated
repository_location
.
include?
(
detect_text
)
repository_location
.
git_uri
.
include?
(
detect_text
)
end
end
end
...
...
qa/qa/specs/features/project/deploy_key_clone_spec.rb
View file @
5dfab4ce
...
...
@@ -16,7 +16,7 @@ module QA
resource
.
name
=
'deploy-key-clone-project'
end
@repository_
uri
=
@project
.
repository_ssh_uri
@repository_
location
=
@project
.
repository_ssh_location
Factory
::
Resource
::
Runner
.
fabricate!
do
|
resource
|
resource
.
project
=
@project
...
...
@@ -60,11 +60,11 @@ module QA
cat-config:
script:
- mkdir -p ~/.ssh
- ssh-keyscan -p
#{
@repository_
uri
.
port
}
#{
@repository_uri
.
host
}
>> ~/.ssh/known_hosts
- ssh-keyscan -p
#{
@repository_
location
.
port
}
#{
@repository_location
.
host
}
>> ~/.ssh/known_hosts
- eval $(ssh-agent -s)
- ssh-add -D
- echo "$
#{
deploy_key_name
}
" | ssh-add -
- git clone
#{
@repository_
uri
.
git_uri
}
- git clone
#{
@repository_
location
.
git_uri
}
- cd
#{
@project
.
name
}
- git checkout
#{
deploy_key_name
}
- sha1sum .gitlab-ci.yml
...
...
qa/qa/specs/features/repository/clone_spec.rb
View file @
5dfab4ce
...
...
@@ -4,7 +4,7 @@ module QA
given
(
:location
)
do
Page
::
Project
::
Show
.
act
do
choose_repository_clone_http
repository_location
repository_location
.
git_uri
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