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
234a71a4
Commit
234a71a4
authored
Feb 17, 2022
by
Manoj M J
Committed by
Zamir Martins
Feb 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply suggestions from reviewer
parent
98963d3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/spec/models/security/orchestration_policy_configuration_spec.rb
...odels/security/orchestration_policy_configuration_spec.rb
+2
-2
No files found.
ee/spec/models/security/orchestration_policy_configuration_spec.rb
View file @
234a71a4
...
@@ -180,7 +180,7 @@ RSpec.describe Security::OrchestrationPolicyConfiguration do
...
@@ -180,7 +180,7 @@ RSpec.describe Security::OrchestrationPolicyConfiguration do
end
end
context
'with scan result policies'
do
context
'with scan result policies'
do
let
(
:scan_result_policy
)
{
build
(
:scan_result_policy
,
name:
'Contain
e
security critical severities'
)
}
let
(
:scan_result_policy
)
{
build
(
:scan_result_policy
,
name:
'Contain
s
security critical severities'
)
}
let
(
:policy_yaml
)
{
build
(
:orchestration_policy_yaml
,
scan_result_policy:
[
scan_result_policy
])
}
let
(
:policy_yaml
)
{
build
(
:orchestration_policy_yaml
,
scan_result_policy:
[
scan_result_policy
])
}
it
{
is_expected
.
to
eq
(
true
)
}
it
{
is_expected
.
to
eq
(
true
)
}
...
@@ -201,7 +201,7 @@ RSpec.describe Security::OrchestrationPolicyConfiguration do
...
@@ -201,7 +201,7 @@ RSpec.describe Security::OrchestrationPolicyConfiguration do
with_them
do
with_them
do
let
(
:action
)
{
{
type:
'require_approval'
,
approvals_required:
1
,
user_approvers:
user_approvers
,
user_approvers_ids:
user_approvers_ids
,
group_approvers:
group_approvers
,
group_approvers_ids:
group_approvers_ids
}.
compact
}
let
(
:action
)
{
{
type:
'require_approval'
,
approvals_required:
1
,
user_approvers:
user_approvers
,
user_approvers_ids:
user_approvers_ids
,
group_approvers:
group_approvers
,
group_approvers_ids:
group_approvers_ids
}.
compact
}
let
(
:scan_result_policy
)
{
build
(
:scan_result_policy
,
name:
'Contain
e
security critical severities'
,
actions:
[
action
])
}
let
(
:scan_result_policy
)
{
build
(
:scan_result_policy
,
name:
'Contain
s
security critical severities'
,
actions:
[
action
])
}
it
{
is_expected
.
to
eq
(
is_valid
)
}
it
{
is_expected
.
to
eq
(
is_valid
)
}
end
end
...
...
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