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
143b48a4
Commit
143b48a4
authored
Mar 29, 2018
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update actions test in security reports
parent
3690691b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
ee/app/assets/javascripts/vue_shared/security_reports/store/getters.js
.../javascripts/vue_shared/security_reports/store/getters.js
+2
-1
spec/javascripts/vue_shared/security_reports/store/actions_spec.js
...scripts/vue_shared/security_reports/store/actions_spec.js
+7
-4
No files found.
ee/app/assets/javascripts/vue_shared/security_reports/store/getters.js
View file @
143b48a4
...
@@ -29,7 +29,8 @@ export const groupedDependencyText = ({ dependencyScanning }) =>
...
@@ -29,7 +29,8 @@ export const groupedDependencyText = ({ dependencyScanning }) =>
dependencyScanning
.
resolvedIssues
.
length
,
dependencyScanning
.
resolvedIssues
.
length
,
);
);
export
const
groupedSummaryText
=
({
added
,
fixed
},
getters
)
=>
{
export
const
groupedSummaryText
=
(
state
,
getters
)
=>
{
const
{
added
,
fixed
}
=
state
.
summaryCounts
;
// All reports returned error
// All reports returned error
if
(
getters
.
allReportsHaveError
)
{
if
(
getters
.
allReportsHaveError
)
{
return
s__
(
'
ciReport|Security scanning failed loading any results
'
);
return
s__
(
'
ciReport|Security scanning failed loading any results
'
);
...
...
spec/javascripts/vue_shared/security_reports/store/actions_spec.js
View file @
143b48a4
...
@@ -74,6 +74,7 @@ describe('security reports actions', () => {
...
@@ -74,6 +74,7 @@ describe('security reports actions', () => {
payload
:
'
path
'
,
payload
:
'
path
'
,
},
},
],
],
[],
done
,
done
,
);
);
});
});
...
@@ -108,6 +109,7 @@ describe('security reports actions', () => {
...
@@ -108,6 +109,7 @@ describe('security reports actions', () => {
type
:
types
.
REQUEST_SAST_REPORTS
,
type
:
types
.
REQUEST_SAST_REPORTS
,
},
},
],
],
[],
done
,
done
,
);
);
});
});
...
@@ -125,6 +127,7 @@ describe('security reports actions', () => {
...
@@ -125,6 +127,7 @@ describe('security reports actions', () => {
payload
:
{},
payload
:
{},
},
},
],
],
[],
done
,
done
,
);
);
});
});
...
@@ -214,7 +217,7 @@ describe('security reports actions', () => {
...
@@ -214,7 +217,7 @@ describe('security reports actions', () => {
},
},
{
{
type
:
'
receiveSastReports
'
,
type
:
'
receiveSastReports
'
,
payload
:
{
head
:
sastIssues
},
payload
:
{
head
:
sastIssues
,
base
:
null
},
},
},
],
],
done
,
done
,
...
@@ -399,7 +402,7 @@ describe('security reports actions', () => {
...
@@ -399,7 +402,7 @@ describe('security reports actions', () => {
},
},
{
{
type
:
'
receiveSastContainerReports
'
,
type
:
'
receiveSastContainerReports
'
,
payload
:
{
head
:
dockerReport
},
payload
:
{
head
:
dockerReport
,
base
:
null
},
},
},
],
],
done
,
done
,
...
@@ -583,7 +586,7 @@ describe('security reports actions', () => {
...
@@ -583,7 +586,7 @@ describe('security reports actions', () => {
},
},
{
{
type
:
'
receiveDastReports
'
,
type
:
'
receiveDastReports
'
,
payload
:
{
head
:
dast
},
payload
:
{
head
:
dast
,
base
:
null
},
},
},
],
],
done
,
done
,
...
@@ -767,7 +770,7 @@ describe('security reports actions', () => {
...
@@ -767,7 +770,7 @@ describe('security reports actions', () => {
},
},
{
{
type
:
'
receiveDependencyScanningReports
'
,
type
:
'
receiveDependencyScanningReports
'
,
payload
:
{
head
:
sastIssues
},
payload
:
{
head
:
sastIssues
,
base
:
null
},
},
},
],
],
done
,
done
,
...
...
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