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
a627bfe9
Commit
a627bfe9
authored
Apr 23, 2021
by
Jannik Lehmann
Committed by
Simon Knox
Apr 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'view History' Button for Secret-Detection
parent
418450af
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
9 deletions
+13
-9
ee/app/assets/javascripts/security_configuration/components/feature_status.vue
...ipts/security_configuration/components/feature_status.vue
+4
-2
ee/app/assets/javascripts/security_configuration/components/status_view_history.vue
...security_configuration/components/status_view_history.vue
+0
-0
ee/spec/frontend/security_configuration/components/feature_status_spec.js
.../security_configuration/components/feature_status_spec.js
+7
-5
ee/spec/frontend/security_configuration/components/status_view_history_spec.js
...rity_configuration/components/status_view_history_spec.js
+2
-2
No files found.
ee/app/assets/javascripts/security_configuration/components/feature_status.vue
View file @
a627bfe9
...
...
@@ -3,14 +3,16 @@ import { propsUnion } from '~/vue_shared/components/lib/utils/props_utils';
import
{
REPORT_TYPE_SAST
,
REPORT_TYPE_DAST_PROFILES
,
REPORT_TYPE_SECRET_DETECTION
,
}
from
'
~/vue_shared/security_reports/constants
'
;
import
StatusDastProfiles
from
'
./status_dast_profiles.vue
'
;
import
StatusGeneric
from
'
./status_generic.vue
'
;
import
Status
Sast
from
'
./status_sast
.vue
'
;
import
Status
ViewHistory
from
'
./status_view_history
.vue
'
;
const
scannerComponentMap
=
{
[
REPORT_TYPE_SAST
]:
Status
Sast
,
[
REPORT_TYPE_SAST
]:
Status
ViewHistory
,
[
REPORT_TYPE_DAST_PROFILES
]:
StatusDastProfiles
,
[
REPORT_TYPE_SECRET_DETECTION
]:
StatusViewHistory
,
};
export
default
{
...
...
ee/app/assets/javascripts/security_configuration/components/status_
sast
.vue
→
ee/app/assets/javascripts/security_configuration/components/status_
view_history
.vue
View file @
a627bfe9
File moved
ee/spec/frontend/security_configuration/components/feature_status_spec.js
View file @
a627bfe9
...
...
@@ -3,10 +3,11 @@ import { pick } from 'lodash';
import
FeatureStatus
from
'
ee/security_configuration/components/feature_status.vue
'
;
import
StatusDastProfiles
from
'
ee/security_configuration/components/status_dast_profiles.vue
'
;
import
StatusGeneric
from
'
ee/security_configuration/components/status_generic.vue
'
;
import
Status
Sast
from
'
ee/security_configuration/components/status_sast
.vue
'
;
import
Status
ViewHistory
from
'
ee/security_configuration/components/status_view_history
.vue
'
;
import
{
REPORT_TYPE_SAST
,
REPORT_TYPE_DAST_PROFILES
,
REPORT_TYPE_SECRET_DETECTION
,
}
from
'
~/vue_shared/security_reports/constants
'
;
import
{
generateFeatures
}
from
'
./helpers
'
;
...
...
@@ -43,10 +44,11 @@ describe('FeatureStatus component', () => {
});
describe
.
each
`
type | expectedComponent
${
REPORT_TYPE_SAST
}
|
${
StatusSast
}
${
REPORT_TYPE_DAST_PROFILES
}
|
${
StatusDastProfiles
}
${
'
foo
'
}
|
${
StatusGeneric
}
type | expectedComponent
${
REPORT_TYPE_SECRET_DETECTION
}
|
${
StatusViewHistory
}
${
REPORT_TYPE_SAST
}
|
${
StatusViewHistory
}
${
REPORT_TYPE_DAST_PROFILES
}
|
${
StatusDastProfiles
}
${
'
foo
'
}
|
${
StatusGeneric
}
`
(
'
given a $type feature
'
,
({
type
,
expectedComponent
})
=>
{
let
feature
;
let
component
;
...
...
ee/spec/frontend/security_configuration/components/status_
sast
_spec.js
→
ee/spec/frontend/security_configuration/components/status_
view_history
_spec.js
View file @
a627bfe9
import
{
GlLink
}
from
'
@gitlab/ui
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
StatusGeneric
from
'
ee/security_configuration/components/status_generic.vue
'
;
import
Status
Sast
from
'
ee/security_configuration/components/status_sast
.vue
'
;
import
Status
ViewHistory
from
'
ee/security_configuration/components/status_view_history
.vue
'
;
import
{
REPORT_TYPE_SAST
}
from
'
~/vue_shared/security_reports/constants
'
;
import
{
generateFeatures
}
from
'
./helpers
'
;
...
...
@@ -12,7 +12,7 @@ describe('StatusSast component', () => {
let
wrapper
;
const
createComponent
=
(
options
)
=>
{
wrapper
=
shallowMount
(
Status
Sast
,
options
);
wrapper
=
shallowMount
(
Status
ViewHistory
,
options
);
};
afterEach
(()
=>
{
...
...
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