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
e482b445
Commit
e482b445
authored
Dec 16, 2021
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix code formatting issues
parent
c0df9432
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
ee/spec/frontend/fixtures/dast_profiles.rb
ee/spec/frontend/fixtures/dast_profiles.rb
+11
-3
ee/spec/frontend/security_configuration/dast_profiles/mocks/mock_data.js
...d/security_configuration/dast_profiles/mocks/mock_data.js
+2
-1
No files found.
ee/spec/frontend/fixtures/dast_profiles.rb
View file @
e482b445
...
...
@@ -189,6 +189,7 @@ RSpec.describe 'DAST profiles (GraphQL fixtures)' do
context
'dast site profile with secret variables'
do
let
(
:response
)
{
@site_profile
.
to_json
}
let_it_be
(
:dast_site_profile
)
{
create
(
:dast_site_profile
,
project:
project
)
}
let_it_be
(
:request_headers_variable
)
{
create
(
:dast_site_profile_secret_variable
,
:request_headers
,
dast_site_profile:
dast_site_profile
)
}
let_it_be
(
:password_variable
)
{
create
(
:dast_site_profile_secret_variable
,
:password
,
dast_site_profile:
dast_site_profile
)
}
...
...
@@ -249,6 +250,7 @@ RSpec.describe 'DAST profiles (GraphQL fixtures)' do
describe
'from policies'
do
let_it_be
(
:policies_project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:security_orchestration_policy_configuration
)
do
create
(
:security_orchestration_policy_configuration
,
...
...
@@ -256,6 +258,7 @@ RSpec.describe 'DAST profiles (GraphQL fixtures)' do
security_policy_management_project:
policies_project
)
end
let_it_be
(
:dast_site_profiles
)
do
[
create
(
...
...
@@ -266,6 +269,7 @@ RSpec.describe 'DAST profiles (GraphQL fixtures)' do
)
]
end
let_it_be
(
:dast_scanner_profiles
)
do
[
create
(
...
...
@@ -280,11 +284,13 @@ RSpec.describe 'DAST profiles (GraphQL fixtures)' do
)
]
end
let
(
:policy1
)
do
build
(
:scan_execution_policy
,
rules:
[{
type:
'pipeline'
,
branches:
%w[master]
}],
actions:
[
{
scan:
'dast'
,
site_profile:
dast_site_profiles
.
first
.
name
,
scanner_profile:
dast_scanner_profiles
.
first
.
name
}
])
end
let
(
:policy_yaml
)
{
build
(
:orchestration_policy_yaml
,
scan_execution_policy:
[
policy1
])
}
before
do
...
...
@@ -304,6 +310,7 @@ RSpec.describe 'DAST profiles (GraphQL fixtures)' do
path
=
'on_demand_scans/graphql/scheduled_dast_profiles.query.graphql'
let_it_be
(
:dast_profile
)
{
create
(
:dast_profile
,
project:
project
)
}
let_it_be
(
:dast_profile_schedule
)
do
create
(
:dast_profile_schedule
,
project:
project
,
dast_profile:
dast_profile
)
...
...
@@ -327,9 +334,9 @@ RSpec.describe 'DAST profiles (GraphQL fixtures)' do
let_it_be
(
:dast_profiles
)
do
[
create
(
:dast_profile
,
project:
project
),
create
(
:dast_profile
,
project:
project
)
]
create
(
:dast_profile
,
project:
project
),
create
(
:dast_profile
,
project:
project
)
]
end
before
do
...
...
@@ -365,6 +372,7 @@ RSpec.describe 'DAST profiles (GraphQL fixtures)' do
)
)
end
let_it_be
(
:dast_site_validation_http
)
do
create
(
:dast_site_validation
,
...
...
ee/spec/frontend/security_configuration/dast_profiles/mocks/mock_data.js
View file @
e482b445
...
...
@@ -30,4 +30,5 @@ export const scannerProfiles = scannerProfilesFixtures.data.project.scannerProfi
export
const
savedScans
=
profilesFixtures
.
data
.
project
.
dastProfiles
.
edges
.
map
(({
node
})
=>
node
);
export
const
failedSiteValidations
=
dastFailedSiteValidationsFixtures
.
data
.
project
.
validations
.
nodes
;
export
const
failedSiteValidations
=
dastFailedSiteValidationsFixtures
.
data
.
project
.
validations
.
nodes
;
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