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
b1007c64
Commit
b1007c64
authored
Aug 02, 2021
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
c9192d5c
3ad3f03b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
21 deletions
+51
-21
db/fixtures/development/17_cycle_analytics.rb
db/fixtures/development/17_cycle_analytics.rb
+1
-1
qa/qa.rb
qa/qa.rb
+4
-0
qa/qa/ee/page/project/secure/configuration_form.rb
qa/qa/ee/page/project/secure/configuration_form.rb
+13
-18
qa/qa/page/project/secure/configuration_form.rb
qa/qa/page/project/secure/configuration_form.rb
+31
-0
qa/qa/specs/features/ee/browser_ui/secure/enable_sast_from_configuration_spec.rb
.../browser_ui/secure/enable_sast_from_configuration_spec.rb
+2
-2
No files found.
db/fixtures/development/17_cycle_analytics.rb
View file @
b1007c64
...
...
@@ -149,7 +149,7 @@ class Gitlab::Seeder::CycleAnalytics
email:
"vsm-user-
#{
i
}
@
#{
suffix
}
.com"
)
project
.
group
.
add_developer
(
user
)
project
.
group
&
.
add_developer
(
user
)
project
.
add_developer
(
user
)
@developers
<<
user
...
...
qa/qa.rb
View file @
b1007c64
...
...
@@ -423,6 +423,10 @@ module QA
autoload
:Show
,
'qa/page/project/snippet/show'
autoload
:Index
,
'qa/page/project/snippet/index'
end
module
Secure
autoload
:ConfigurationForm
,
'qa/page/project/secure/configuration_form'
end
end
module
Profile
...
...
qa/qa/ee/page/project/secure/configuration_form.rb
View file @
b1007c64
...
...
@@ -5,16 +5,21 @@ module QA
module
Page
module
Project
module
Secure
class
ConfigurationForm
<
QA
::
Page
::
Base
include
QA
::
Page
::
Component
::
Select2
include
QA
::
Page
::
Settings
::
Common
module
ConfigurationForm
extend
QA
::
Page
::
PageConcern
view
'ee/app/assets/javascripts/security_configuration/sast/components/configuration_form.vue'
do
element
:submit_button
end
def
self
.
prepended
(
base
)
super
base
.
class_eval
do
view
'ee/app/assets/javascripts/security_configuration/sast/components/configuration_form.vue'
do
element
:submit_button
end
view
'ee/app/assets/javascripts/security_configuration/sast/components/analyzer_configuration.vue'
do
element
:entity_checkbox
,
"`${entity.name}_checkbox`"
# rubocop:disable QA/ElementWithPattern
view
'ee/app/assets/javascripts/security_configuration/sast/components/analyzer_configuration.vue'
do
element
:entity_checkbox
,
"`${entity.name}_checkbox`"
# rubocop:disable QA/ElementWithPattern
end
end
end
def
click_expand_button
...
...
@@ -25,10 +30,6 @@ module QA
click_element
(
:submit_button
)
end
def
click_sast_enable_button
click_element
(
'sast_enable_button'
)
end
def
fill_dynamic_field
(
field_name
,
content
)
fill_element
(
"
#{
field_name
}
_field"
,
content
)
end
...
...
@@ -36,12 +37,6 @@ module QA
def
unselect_dynamic_checkbox
(
checkbox_name
)
uncheck_element
(
"
#{
checkbox_name
}
_checkbox"
,
true
)
end
def
has_sast_status?
(
status_text
)
within_element
(
'sast_status'
)
do
has_text?
(
status_text
)
end
end
end
end
end
...
...
qa/qa/page/project/secure/configuration_form.rb
0 → 100644
View file @
b1007c64
# frozen_string_literal: true
module
QA
module
Page
module
Project
module
Secure
class
ConfigurationForm
<
QA
::
Page
::
Base
include
QA
::
Page
::
Component
::
Select2
include
QA
::
Page
::
Settings
::
Common
view
'app/assets/javascripts/security_configuration/components/feature_card.vue'
do
element
:sast_status
,
"`${feature.type}_status`"
# rubocop:disable QA/ElementWithPattern
element
:sast_enable_button
,
"`${feature.type}_enable_button`"
# rubocop:disable QA/ElementWithPattern
end
def
click_sast_enable_button
click_element
(
:sast_enable_button
)
end
def
has_sast_status?
(
status_text
)
within_element
(
:sast_status
)
do
has_text?
(
status_text
)
end
end
end
end
end
end
end
QA
::
Page
::
Project
::
Secure
::
ConfigurationForm
.
prepend_mod_with
(
'Page::Project::Secure::ConfigurationForm'
,
namespace:
QA
)
qa/qa/specs/features/ee/browser_ui/secure/enable_sast_from_configuration_spec.rb
View file @
b1007c64
...
...
@@ -79,7 +79,7 @@ module QA
end
Page
::
Project
::
Menu
.
perform
(
&
:click_on_security_configuration_link
)
EE
::
Page
::
Project
::
Secure
::
ConfigurationForm
.
perform
do
|
config_form
|
Page
::
Project
::
Secure
::
ConfigurationForm
.
perform
do
|
config_form
|
expect
(
config_form
).
to
have_sast_status
(
'Not enabled'
)
config_form
.
click_sast_enable_button
...
...
@@ -131,7 +131,7 @@ module QA
Page
::
Project
::
Menu
.
perform
(
&
:click_on_security_configuration_link
)
EE
::
Page
::
Project
::
Secure
::
ConfigurationForm
.
perform
do
|
config_form
|
Page
::
Project
::
Secure
::
ConfigurationForm
.
perform
do
|
config_form
|
aggregate_failures
"test SAST status is Enabled"
do
expect
(
config_form
).
to
have_sast_status
(
'Enabled'
)
expect
(
config_form
).
not_to
have_sast_status
(
'Not enabled'
)
...
...
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