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
22d4a103
Commit
22d4a103
authored
Jan 12, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
c6ffe10e
1161c99e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
23 deletions
+28
-23
app/assets/javascripts/deploy_keys/components/key.vue
app/assets/javascripts/deploy_keys/components/key.vue
+1
-1
qa/qa/page/project/settings/deploy_keys.rb
qa/qa/page/project/settings/deploy_keys.rb
+18
-15
qa/qa/resource/deploy_key.rb
qa/qa/resource/deploy_key.rb
+1
-5
qa/qa/specs/features/browser_ui/6_release/deploy_key/add_deploy_key_spec.rb
...es/browser_ui/6_release/deploy_key/add_deploy_key_spec.rb
+8
-2
No files found.
app/assets/javascripts/deploy_keys/components/key.vue
View file @
22d4a103
...
...
@@ -113,7 +113,7 @@ export default {
<div
class=
"gl-responsive-table-row deploy-key"
>
<div
class=
"table-section section-40"
>
<div
role=
"rowheader"
class=
"table-mobile-header"
>
{{
s__
(
'
DeployKeys|Deploy key
'
)
}}
</div>
<div
class=
"table-mobile-content"
>
<div
class=
"table-mobile-content
qa-key
"
>
<strong
class=
"title qa-key-title"
>
{{
deployKey
.
title
}}
</strong>
<div
class=
"fingerprint qa-key-fingerprint"
>
{{
deployKey
.
fingerprint
}}
</div>
</div>
...
...
qa/qa/page/project/settings/deploy_keys.rb
View file @
22d4a103
...
...
@@ -14,8 +14,13 @@ module QA
end
view
'app/assets/javascripts/deploy_keys/components/key.vue'
do
element
:key_title
,
/class=".*qa-key-title.*"/
# rubocop:disable QA/ElementWithPattern
element
:key_fingerprint
,
/class=".*qa-key-fingerprint.*"/
# rubocop:disable QA/ElementWithPattern
element
:key
element
:key_title
element
:key_fingerprint
end
def
add_key
click_on
'Add key'
end
def
fill_key_title
(
title
)
...
...
@@ -26,31 +31,29 @@ module QA
fill_in
'deploy_key_key'
,
with:
key
end
def
add_key
click_on
'Add key'
end
def
key_title
def
find_fingerprint
(
title
)
within_project_deploy_keys
do
find_element
(
:key_title
).
text
find_element
(
:key
,
title
)
.
find
(
element_selector_css
(
:key_fingerprint
)).
text
end
end
def
key_fingerprint
def
has_key?
(
title
,
fingerprint
)
within_project_deploy_keys
do
find_element
(
:key_fingerprint
).
text
find_element
(
:key
,
title
)
.
has_css?
(
element_selector_css
(
:key_fingerprint
),
text:
fingerprint
)
end
end
def
key_title
s
def
key_title
within_project_deploy_keys
do
all_elements
(
:key_title
)
find_element
(
:key_title
).
text
end
end
def
key_fingerprint
s
def
key_fingerprint
within_project_deploy_keys
do
all_elements
(
:key_fingerprint
)
find_element
(
:key_fingerprint
).
text
end
end
...
...
@@ -58,7 +61,7 @@ module QA
def
within_project_deploy_keys
wait
(
reload:
false
)
do
has_
css?
(
element_selector_css
(
:project_deploy_keys
)
)
has_
element?
(
:project_deploy_keys
)
end
within_element
(
:project_deploy_keys
)
do
...
...
qa/qa/resource/deploy_key.rb
View file @
22d4a103
...
...
@@ -8,11 +8,7 @@ module QA
attribute
:fingerprint
do
Page
::
Project
::
Settings
::
Repository
.
perform
do
|
setting
|
setting
.
expand_deploy_keys
do
|
key
|
key_offset
=
key
.
key_titles
.
index
do
|
key_title
|
key_title
.
text
==
title
end
key
.
key_fingerprints
[
key_offset
].
text
key
.
find_fingerprint
(
title
)
end
end
end
...
...
qa/qa/specs/features/browser_ui/6_release/deploy_key/add_deploy_key_spec.rb
View file @
22d4a103
...
...
@@ -5,7 +5,7 @@ module QA
describe
'Deploy key creation'
do
it
'user adds a deploy key'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
key
=
Runtime
::
Key
::
RSA
.
new
deploy_key_title
=
'deploy key title'
...
...
@@ -16,7 +16,13 @@ module QA
resource
.
key
=
deploy_key_value
end
expect
(
deploy_key
.
fingerprint
).
to
eq
(
key
.
fingerprint
)
expect
(
deploy_key
.
fingerprint
).
to
eq
key
.
fingerprint
Page
::
Project
::
Settings
::
Repository
.
perform
do
|
setting
|
setting
.
expand_deploy_keys
do
|
keys
|
expect
(
keys
).
to
have_key
(
deploy_key_title
,
key
.
fingerprint
)
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