Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Paas CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
INFN Cloud
Paas CI
Commits
659d8d51
Commit
659d8d51
authored
2 years ago
by
qweqweasdasd
Browse files
Options
Downloads
Patches
Plain Diff
Fix python command line
parent
90141033
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/main.yml
+3
-3
3 additions, 3 deletions
tasks/main.yml
utils/script.py
+5
-1
5 additions, 1 deletion
utils/script.py
with
8 additions
and
4 deletions
tasks/main.yml
+
3
−
3
View file @
659d8d51
...
@@ -92,9 +92,9 @@
...
@@ -92,9 +92,9 @@
-
name
:
Get scan outputs (if successful)
-
name
:
Get scan outputs (if successful)
assert
:
assert
:
that
:
that
:
-
deployment.global == '
CREATE_COMPLETE
'
-
deployment.global == '
OK
'
fail_msg
:
"
TEST
FAILED
-
deployment
uuid:
{{
deployment.uuid
}},
status
:
{{
deployment.
status
}}"
fail_msg
:
"
SCAN
FAILED
-
deployment
uuid:
{{
deployment.uuid
}},
global_severity
:
{{
deployment.
global_severity
}}"
success_msg
:
"
TEST
PASSED
-
deployment
uuid:
{{
deployment.uuid
}},
status
:
{{
deployment.
status
}},
outputs:
{{
deployment.outputs
}}"
success_msg
:
"
SCAN
PASSED
-
deployment
uuid:
{{
deployment.uuid
}},
global_severity
:
{{
deployment.
global_severity
}},
outputs:
{{
deployment.outputs
}}"
when
:
paas_ci_test_step == 'scan'
when
:
paas_ci_test_step == 'scan'
...
...
This diff is collapsed.
Click to expand it.
utils/script.py
+
5
−
1
View file @
659d8d51
...
@@ -348,7 +348,11 @@ def process_global_severity(severities):
...
@@ -348,7 +348,11 @@ def process_global_severity(severities):
if
dict_severity
[
sev
]
>
old_num_severity
:
if
dict_severity
[
sev
]
>
old_num_severity
:
old_num_severity
=
dict_severity
[
sev
]
old_num_severity
=
dict_severity
[
sev
]
global_sev
=
sev
global_sev
=
sev
severities
[
'
global
'
]
=
global_sev
severities
[
'
global_severity
'
]
=
global_sev
if
global_sev
==
"
Log
"
or
global_sev
==
"
Low
"
:
severities
[
'
global
'
]
=
"
OK
"
else
:
severities
[
'
global
'
]
=
"
NOK
"
return
severities
return
severities
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment