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
85558bab
Commit
85558bab
authored
Jun 17, 2021
by
David Fernandez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve gradle QA scenario
by adding the pull action Changelog: other
parent
095e2843
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
205 additions
and
85 deletions
+205
-85
app/views/shared/deploy_tokens/_form.html.haml
app/views/shared/deploy_tokens/_form.html.haml
+1
-1
qa/qa/page/project/settings/deploy_tokens.rb
qa/qa/page/project/settings/deploy_tokens.rb
+3
-1
qa/qa/resource/deploy_token.rb
qa/qa/resource/deploy_token.rb
+1
-1
qa/qa/resource/package.rb
qa/qa/resource/package.rb
+3
-4
qa/qa/specs/features/browser_ui/5_package/maven_gradle_repository_spec.rb
...ures/browser_ui/5_package/maven_gradle_repository_spec.rb
+197
-78
No files found.
app/views/shared/deploy_tokens/_form.html.haml
View file @
85558bab
...
...
@@ -38,7 +38,7 @@
-
if
packages_registry_enabled?
(
group_or_project
)
%fieldset
.form-group.form-check
=
f
.
check_box
:read_package_registry
,
class:
'form-check-input'
=
f
.
check_box
:read_package_registry
,
class:
'form-check-input'
,
data:
{
qa_selector:
'deploy_token_read_package_registry_checkbox'
}
=
f
.
label
:read_package_registry
,
'read_package_registry'
,
class:
'label-bold form-check-label'
.text-secondary
=
s_
(
'DeployTokens|Allows read access to the package registry.'
)
...
...
qa/qa/page/project/settings/deploy_tokens.rb
View file @
85558bab
...
...
@@ -9,6 +9,7 @@ module QA
element
:deploy_token_name_field
element
:deploy_token_expires_at_field
element
:deploy_token_read_repository_checkbox
element
:deploy_token_read_package_registry_checkbox
element
:deploy_token_read_registry_checkbox
element
:create_deploy_token_button
end
...
...
@@ -27,8 +28,9 @@ module QA
fill_element
(
:deploy_token_expires_at_field
,
expires_at
.
to_s
+
"
\n
"
)
end
def
fill_scopes
(
read_repository
:
,
read_registry
:
)
def
fill_scopes
(
read_repository:
false
,
read_registry:
false
,
read_package_registry:
false
)
check_element
(
:deploy_token_read_repository_checkbox
)
if
read_repository
check_element
(
:deploy_token_read_package_registry_checkbox
)
if
read_package_registry
check_element
(
:deploy_token_read_registry_checkbox
)
if
read_registry
end
...
...
qa/qa/resource/deploy_token.rb
View file @
85558bab
...
...
@@ -37,7 +37,7 @@ module QA
setting
.
expand_deploy_tokens
do
|
page
|
page
.
fill_token_name
(
name
)
page
.
fill_token_expires_at
(
expires_at
)
page
.
fill_scopes
(
read_repository:
true
,
read_
registry:
fals
e
)
page
.
fill_scopes
(
read_repository:
true
,
read_
package_registry:
tru
e
)
page
.
add_token
end
...
...
qa/qa/resource/package.rb
View file @
85558bab
...
...
@@ -15,11 +15,10 @@ module QA
end
attribute
:id
do
packages
=
project
.
packages
return
unless
(
this_package
=
packages
&
.
find
{
|
package
|
package
[
:name
]
==
"
#{
project
.
path_with_namespace
}
/
#{
name
}
"
})
# rubocop:disable Cop/AvoidReturnFromBlocks
this_package
=
project
.
packages
&
.
find
{
|
package
|
package
[
:name
]
==
name
}
this_package
[
:id
]
this_package
.
try
(
:fetch
,
:id
)
end
def
fabricate!
...
...
qa/qa/specs/features/browser_ui/5_package/maven_gradle_repository_spec.rb
View file @
85558bab
This diff is collapsed.
Click to expand it.
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