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
ff560f08
Commit
ff560f08
authored
Mar 15, 2021
by
Mark Florian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove pinning tests
These were designed to be temporary to support a refactoring.
parent
74021c8d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
2063 deletions
+0
-2063
ee/spec/frontend/security_configuration/__snapshots__/index_spec.js.snap
...d/security_configuration/__snapshots__/index_spec.js.snap
+0
-2011
ee/spec/frontend/security_configuration/index_spec.js
ee/spec/frontend/security_configuration/index_spec.js
+0
-44
ee/spec/frontend/security_configuration/mock_data.js
ee/spec/frontend/security_configuration/mock_data.js
+0
-8
No files found.
ee/spec/frontend/security_configuration/__snapshots__/index_spec.js.snap
deleted
100644 → 0
View file @
74021c8d
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Security Configuration App given no enabled scanners matches the snapshot 1`] = `
<body>
<article>
<header>
<h4
class="my-3"
>
Security Configuration
</h4>
<h5
class="gl-font-lg mt-5"
>
Testing & Compliance
</h5>
<p>
The status of the table below only applies to the default branch and is based on the
<a
class="gl-link"
href="/markrian/qr/-/pipelines/249400518"
rel="noopener"
target="_blank"
>
latest pipeline
</a>
. Once you've enabled a scan for the default branch, any subsequent feature branch you create will include the scan.
</p>
</header>
<!---->
<!---->
<table
aria-busy="false"
aria-colcount="3"
aria-describedby="__BVID__86__caption_"
class="table b-table gl-table b-table-stacked-md"
id="__BVID__86"
role="table"
>
<!---->
<!---->
<thead
class=""
role="rowgroup"
>
<!---->
<tr
class=""
role="row"
>
<th
aria-colindex="1"
class="gl-text-gray-900 gl-bg-transparent! gl-border-b-1! gl-border-b-solid! gl-border-gray-100!"
role="columnheader"
scope="col"
>
Security Control
</th>
<th
aria-colindex="2"
class="gl-text-gray-900 gl-bg-transparent! gl-border-b-1! gl-border-b-solid! gl-border-gray-100!"
role="columnheader"
scope="col"
>
Status
</th>
<th
aria-colindex="3"
class="gl-text-gray-900 gl-bg-transparent! gl-border-b-1! gl-border-b-solid! gl-border-gray-100!"
role="columnheader"
scope="col"
>
Manage
</th>
</tr>
</thead>
<tbody
role="rowgroup"
>
<!---->
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Static Application Security Testing (SAST)
</div>
<div>
Analyze your source code for known vulnerabilities.
<a
aria-label="Feature documentation for Static Application Security Testing (SAST)"
class="gl-link"
href="/help/user/application_security/sast/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
<div>
Not enabled
</div>
<!---->
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<a
class="btn btn-success btn-md gl-button"
data-testid="enableButton"
href="/markrian/qr/-/security/configuration/sast"
>
<!---->
<!---->
<span
class="gl-button-text"
>
Enable
</span>
</a>
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Dynamic Application Security Testing (DAST)
</div>
<div>
Analyze a review version of your web application.
<a
aria-label="Feature documentation for Dynamic Application Security Testing (DAST)"
class="gl-link"
href="/help/user/application_security/dast/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Not enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
DAST Scans
</div>
<div>
Saved scan settings and target site settings which are reusable.
<a
aria-label="Feature documentation for DAST Scans"
class="gl-link"
href="/help/user/application_security/dast/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Available for on-demand DAST
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<a
class="btn btn-default btn-md gl-button"
data-testid="manageButton"
href="/markrian/qr/-/security/configuration/dast_profiles"
>
<!---->
<!---->
<span
class="gl-button-text"
>
Manage
</span>
</a>
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Dependency Scanning
</div>
<div>
Analyze your dependencies for known vulnerabilities.
<a
aria-label="Feature documentation for Dependency Scanning"
class="gl-link"
href="/help/user/application_security/dependency_scanning/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Not enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Container Scanning
</div>
<div>
Check your Docker images for known vulnerabilities.
<a
aria-label="Feature documentation for Container Scanning"
class="gl-link"
href="/help/user/application_security/container_scanning/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Not enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Secret Detection
</div>
<div>
Analyze your source code and git history for secrets.
<a
aria-label="Feature documentation for Secret Detection"
class="gl-link"
href="/help/user/application_security/secret_detection/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Not enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Coverage Fuzzing
</div>
<div>
Find bugs in your code with coverage-guided fuzzing.
<a
aria-label="Feature documentation for Coverage Fuzzing"
class="gl-link"
href="/help/user/application_security/coverage_fuzzing/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Not enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
API Fuzzing
</div>
<div>
Find bugs in your code with API fuzzing.
<a
aria-label="Feature documentation for API Fuzzing"
class="gl-link"
href="/help/user/application_security/api_fuzzing/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Not enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
License Compliance
</div>
<div>
Search your project dependencies for their licenses and apply policies.
<a
aria-label="Feature documentation for License Compliance"
class="gl-link"
href="/help/user/compliance/license_compliance/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Not enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<!---->
<!---->
</tbody>
<!---->
</table>
<!---->
</article>
</body>
`;
exports[`Security Configuration App given some enabled by ADO matches the snapshot 1`] = `
<body>
<article>
<header>
<h4
class="my-3"
>
Security Configuration
</h4>
<h5
class="gl-font-lg mt-5"
>
Testing & Compliance
</h5>
<p>
Several security scans are enabled because
<a
class="gl-link"
href="/help/topics/autodevops/index"
rel="noopener"
target="_blank"
>
Auto DevOps
</a>
is enabled on this project
</p>
</header>
<!---->
<!---->
<table
aria-busy="false"
aria-colcount="3"
aria-describedby="__BVID__159__caption_"
class="table b-table gl-table b-table-stacked-md"
id="__BVID__159"
role="table"
>
<!---->
<!---->
<thead
class=""
role="rowgroup"
>
<!---->
<tr
class=""
role="row"
>
<th
aria-colindex="1"
class="gl-text-gray-900 gl-bg-transparent! gl-border-b-1! gl-border-b-solid! gl-border-gray-100!"
role="columnheader"
scope="col"
>
Security Control
</th>
<th
aria-colindex="2"
class="gl-text-gray-900 gl-bg-transparent! gl-border-b-1! gl-border-b-solid! gl-border-gray-100!"
role="columnheader"
scope="col"
>
Status
</th>
<th
aria-colindex="3"
class="gl-text-gray-900 gl-bg-transparent! gl-border-b-1! gl-border-b-solid! gl-border-gray-100!"
role="columnheader"
scope="col"
>
Manage
</th>
</tr>
</thead>
<tbody
role="rowgroup"
>
<!---->
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Static Application Security Testing (SAST)
</div>
<div>
Analyze your source code for known vulnerabilities.
<a
aria-label="Feature documentation for Static Application Security Testing (SAST)"
class="gl-link"
href="/help/user/application_security/sast/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
<div>
Not enabled
</div>
<!---->
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<a
class="btn btn-success btn-md gl-button"
data-testid="enableButton"
href="/markrian-test/test-public-project/-/security/configuration/sast"
>
<!---->
<!---->
<span
class="gl-button-text"
>
Enable
</span>
</a>
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Dynamic Application Security Testing (DAST)
</div>
<div>
Analyze a review version of your web application.
<a
aria-label="Feature documentation for Dynamic Application Security Testing (DAST)"
class="gl-link"
href="/help/user/application_security/dast/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Not enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
DAST Scans
</div>
<div>
Saved scan settings and target site settings which are reusable.
<a
aria-label="Feature documentation for DAST Scans"
class="gl-link"
href="/help/user/application_security/dast/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Available for on-demand DAST
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<a
class="btn btn-default btn-md gl-button"
data-testid="manageButton"
href="/markrian-test/test-public-project/-/security/configuration/dast_profiles"
>
<!---->
<!---->
<span
class="gl-button-text"
>
Manage
</span>
</a>
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Dependency Scanning
</div>
<div>
Analyze your dependencies for known vulnerabilities.
<a
aria-label="Feature documentation for Dependency Scanning"
class="gl-link"
href="/help/user/application_security/dependency_scanning/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Not enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Container Scanning
</div>
<div>
Check your Docker images for known vulnerabilities.
<a
aria-label="Feature documentation for Container Scanning"
class="gl-link"
href="/help/user/application_security/container_scanning/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Enabled with Auto DevOps
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Secret Detection
</div>
<div>
Analyze your source code and git history for secrets.
<a
aria-label="Feature documentation for Secret Detection"
class="gl-link"
href="/help/user/application_security/secret_detection/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Enabled with Auto DevOps
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Coverage Fuzzing
</div>
<div>
Find bugs in your code with coverage-guided fuzzing.
<a
aria-label="Feature documentation for Coverage Fuzzing"
class="gl-link"
href="/help/user/application_security/coverage_fuzzing/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Not enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
API Fuzzing
</div>
<div>
Find bugs in your code with API fuzzing.
<a
aria-label="Feature documentation for API Fuzzing"
class="gl-link"
href="/help/user/application_security/api_fuzzing/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Not enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<a
class="btn btn-success btn-md gl-button"
data-testid="enableButton"
href="/markrian-test/test-public-project/-/security/configuration/api_fuzzing"
>
<!---->
<!---->
<span
class="gl-button-text"
>
Enable
</span>
</a>
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
License Compliance
</div>
<div>
Search your project dependencies for their licenses and apply policies.
<a
aria-label="Feature documentation for License Compliance"
class="gl-link"
href="/help/user/compliance/license_compliance/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Enabled with Auto DevOps
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<!---->
<!---->
</tbody>
<!---->
</table>
<!---->
</article>
</body>
`;
exports[`Security Configuration App given some enabled scanners (gitlab-ui) matches the snapshot 1`] = `
<body>
<article>
<header>
<h4
class="my-3"
>
Security Configuration
</h4>
<h5
class="gl-font-lg mt-5"
>
Testing & Compliance
</h5>
<p>
The status of the table below only applies to the default branch and is based on the
<a
class="gl-link"
href="/gitlab-org/gitlab-ui/-/pipelines/263335857"
rel="noopener"
target="_blank"
>
latest pipeline
</a>
. Once you've enabled a scan for the default branch, any subsequent feature branch you create will include the scan.
</p>
</header>
<!---->
<!---->
<table
aria-busy="false"
aria-colcount="3"
aria-describedby="__BVID__9__caption_"
class="table b-table gl-table b-table-stacked-md"
id="__BVID__9"
role="table"
>
<!---->
<!---->
<thead
class=""
role="rowgroup"
>
<!---->
<tr
class=""
role="row"
>
<th
aria-colindex="1"
class="gl-text-gray-900 gl-bg-transparent! gl-border-b-1! gl-border-b-solid! gl-border-gray-100!"
role="columnheader"
scope="col"
>
Security Control
</th>
<th
aria-colindex="2"
class="gl-text-gray-900 gl-bg-transparent! gl-border-b-1! gl-border-b-solid! gl-border-gray-100!"
role="columnheader"
scope="col"
>
Status
</th>
<th
aria-colindex="3"
class="gl-text-gray-900 gl-bg-transparent! gl-border-b-1! gl-border-b-solid! gl-border-gray-100!"
role="columnheader"
scope="col"
>
Manage
</th>
</tr>
</thead>
<tbody
role="rowgroup"
>
<!---->
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Static Application Security Testing (SAST)
</div>
<div>
Analyze your source code for known vulnerabilities.
<a
aria-label="Feature documentation for Static Application Security Testing (SAST)"
class="gl-link"
href="/help/user/application_security/sast/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
<div>
Enabled
</div>
<a
class="gl-link"
href="/gitlab-org/gitlab-ui/-/blame/main/.gitlab-ci.yml"
>
View history
</a>
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<a
class="btn btn-default btn-md gl-button"
data-testid="configureButton"
href="/gitlab-org/gitlab-ui/-/security/configuration/sast"
>
<!---->
<!---->
<span
class="gl-button-text"
>
Configure
</span>
</a>
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Dynamic Application Security Testing (DAST)
</div>
<div>
Analyze a review version of your web application.
<a
aria-label="Feature documentation for Dynamic Application Security Testing (DAST)"
class="gl-link"
href="/help/user/application_security/dast/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Not enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
DAST Scans
</div>
<div>
Saved scan settings and target site settings which are reusable.
<a
aria-label="Feature documentation for DAST Scans"
class="gl-link"
href="/help/user/application_security/dast/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Available for on-demand DAST
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<a
class="btn btn-default btn-md gl-button"
data-testid="manageButton"
href="/gitlab-org/gitlab-ui/-/security/configuration/dast_profiles"
>
<!---->
<!---->
<span
class="gl-button-text"
>
Manage
</span>
</a>
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Dependency Scanning
</div>
<div>
Analyze your dependencies for known vulnerabilities.
<a
aria-label="Feature documentation for Dependency Scanning"
class="gl-link"
href="/help/user/application_security/dependency_scanning/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Container Scanning
</div>
<div>
Check your Docker images for known vulnerabilities.
<a
aria-label="Feature documentation for Container Scanning"
class="gl-link"
href="/help/user/application_security/container_scanning/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Secret Detection
</div>
<div>
Analyze your source code and git history for secrets.
<a
aria-label="Feature documentation for Secret Detection"
class="gl-link"
href="/help/user/application_security/secret_detection/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
Coverage Fuzzing
</div>
<div>
Find bugs in your code with coverage-guided fuzzing.
<a
aria-label="Feature documentation for Coverage Fuzzing"
class="gl-link"
href="/help/user/application_security/coverage_fuzzing/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Not enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
API Fuzzing
</div>
<div>
Find bugs in your code with API fuzzing.
<a
aria-label="Feature documentation for API Fuzzing"
class="gl-link"
href="/help/user/application_security/api_fuzzing/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Not enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<a
class="btn btn-success btn-md gl-button"
data-testid="enableButton"
href="/gitlab-org/gitlab-ui/-/security/configuration/api_fuzzing"
>
<!---->
<!---->
<span
class="gl-button-text"
>
Enable
</span>
</a>
</div>
</td>
</tr>
<tr
class=""
data-testid="security-scanner-row"
role="row"
>
<td
aria-colindex="1"
class=""
data-label="Security Control"
role="cell"
>
<div>
<div
class="gl-text-gray-900"
>
License Compliance
</div>
<div>
Search your project dependencies for their licenses and apply policies.
<a
aria-label="Feature documentation for License Compliance"
class="gl-link"
href="/help/user/compliance/license_compliance/index"
rel="noopener"
target="_blank"
>
More information
</a>
</div>
</div>
</td>
<td
aria-colindex="2"
class=""
data-label="Status"
role="cell"
>
<div>
<div>
Enabled
</div>
</div>
</td>
<td
aria-colindex="3"
class=""
data-label="Manage"
role="cell"
>
<div>
<!---->
</div>
</td>
</tr>
<!---->
<!---->
</tbody>
<!---->
</table>
<!---->
</article>
</body>
`;
ee/spec/frontend/security_configuration/index_spec.js
deleted
100644 → 0
View file @
74021c8d
import
Vue
,
{
nextTick
}
from
'
vue
'
;
import
{
initSecurityConfiguration
}
from
'
ee/security_configuration
'
;
import
{
resetHTMLFixture
}
from
'
helpers/fixtures
'
;
import
{
someEnabledEl
,
noneEnabledEl
,
someEnabledWithAutoDevOpsEl
}
from
'
./mock_data
'
;
const
errorsAndWarnings
=
[];
const
errorWarnHandler
=
(
error
,
vm
,
info
)
=>
{
errorsAndWarnings
.
push
(
`Vue error/warning: Message:
${
error
}
vm.name:
${
vm
.
name
}
info:
${
JSON
.
stringify
(
info
)}
`
);
};
Vue
.
config
.
errorHandler
=
errorWarnHandler
;
Vue
.
config
.
warnHandler
=
errorWarnHandler
;
describe
(
'
Security Configuration App
'
,
()
=>
{
describe
.
each
`
context | mountElHtml
${
'
some enabled scanners (gitlab-ui)
'
}
|
${
someEnabledEl
}
${
'
no enabled scanners
'
}
|
${
noneEnabledEl
}
${
'
some enabled by ADO
'
}
|
${
someEnabledWithAutoDevOpsEl
}
`
(
'
given $context
'
,
({
mountElHtml
})
=>
{
beforeEach
(()
=>
{
setFixtures
(
mountElHtml
);
const
el
=
document
.
querySelector
(
'
#js-security-configuration
'
);
initSecurityConfiguration
(
el
);
return
nextTick
();
});
afterEach
(()
=>
{
resetHTMLFixture
();
});
it
(
'
matches the snapshot
'
,
()
=>
{
expect
(
errorsAndWarnings
).
toEqual
([]);
expect
(
document
.
body
).
toMatchSnapshot
();
});
});
});
ee/spec/frontend/security_configuration/mock_data.js
deleted
100644 → 0
View file @
74021c8d
export
const
someEnabledEl
=
`
<div data-auto-devops-help-page-path="/help/topics/autodevops/index" data-auto-devops-path="/gitlab-org/gitlab-ui/-/settings/ci_cd#autodevops-settings" data-auto-fix-enabled="{"dependency_scanning":true,"container_scanning":true}" data-auto-fix-help-path="/" data-auto-fix-user-path="/" data-can-enable-auto-devops data-can-toggle-auto-fix-settings data-container-scanning-help-path="/help/user/application_security/container_scanning/index" data-create-sast-merge-request-path="/gitlab-org/gitlab-ui/-/security/configuration/sast" data-dependency-scanning-help-path="/help/user/application_security/dependency_scanning/index" data-features="[{"type":"sast","configured":true,"configuration_path":"/gitlab-org/gitlab-ui/-/security/configuration/sast"},{"type":"dast","configured":false,"configuration_path":null},{"type":"dast_profiles","configured":true,"configuration_path":"/gitlab-org/gitlab-ui/-/security/configuration/dast_profiles"},{"type":"dependency_scanning","configured":true,"configuration_path":null},{"type":"container_scanning","configured":true,"configuration_path":null},{"type":"secret_detection","configured":true,"configuration_path":null},{"type":"coverage_fuzzing","configured":false,"configuration_path":null},{"type":"api_fuzzing","configured":false,"configuration_path":"/gitlab-org/gitlab-ui/-/security/configuration/api_fuzzing"},{"type":"license_scanning","configured":true,"configuration_path":null}]" data-gitlab-ci-history-path="/gitlab-org/gitlab-ui/-/blame/main/.gitlab-ci.yml" data-gitlab-ci-present data-help-page-path="/help/user/application_security/index" data-latest-pipeline-path="/gitlab-org/gitlab-ui/-/pipelines/263335857" data-toggle-autofix-setting-endpoint="configuration/auto_fix" id="js-security-configuration"></div>`
;
export
const
noneEnabledEl
=
`
<div data-auto-devops-help-page-path="/help/topics/autodevops/index" data-auto-devops-path="/markrian/qr/-/settings/ci_cd#autodevops-settings" data-auto-fix-enabled="{"dependency_scanning":true,"container_scanning":true}" data-auto-fix-help-path="/" data-auto-fix-user-path="/" data-can-enable-auto-devops data-can-toggle-auto-fix-settings data-container-scanning-help-path="/help/user/application_security/container_scanning/index" data-create-sast-merge-request-path="/markrian/qr/-/security/configuration/sast" data-dependency-scanning-help-path="/help/user/application_security/dependency_scanning/index" data-features="[{"type":"sast","configured":false,"configuration_path":"/markrian/qr/-/security/configuration/sast"},{"type":"dast","configured":false,"configuration_path":null},{"type":"dast_profiles","configured":true,"configuration_path":"/markrian/qr/-/security/configuration/dast_profiles"},{"type":"dependency_scanning","configured":false,"configuration_path":null},{"type":"container_scanning","configured":false,"configuration_path":null},{"type":"secret_detection","configured":false,"configuration_path":null},{"type":"coverage_fuzzing","configured":false,"configuration_path":null},{"type":"api_fuzzing","configured":false,"configuration_path":null},{"type":"license_scanning","configured":false,"configuration_path":null}]" data-gitlab-ci-history-path="/markrian/qr/-/blame/master/.gitlab-ci.yml" data-gitlab-ci-present data-help-page-path="/help/user/application_security/index" data-latest-pipeline-path="/markrian/qr/-/pipelines/249400518" data-toggle-autofix-setting-endpoint="configuration/auto_fix" id="js-security-configuration"></div>`
;
export
const
someEnabledWithAutoDevOpsEl
=
`
<div data-auto-devops-enabled data-auto-devops-help-page-path="/help/topics/autodevops/index" data-auto-devops-path="/markrian-test/test-public-project/-/settings/ci_cd#autodevops-settings" data-auto-fix-enabled="{"dependency_scanning":true,"container_scanning":true}" data-auto-fix-help-path="/" data-auto-fix-user-path="/" data-can-enable-auto-devops data-can-toggle-auto-fix-settings data-container-scanning-help-path="/help/user/application_security/container_scanning/index" data-create-sast-merge-request-path="/markrian-test/test-public-project/-/security/configuration/sast" data-dependency-scanning-help-path="/help/user/application_security/dependency_scanning/index" data-features="[{"type":"sast","configured":false,"configuration_path":"/markrian-test/test-public-project/-/security/configuration/sast"},{"type":"dast","configured":false,"configuration_path":null},{"type":"dast_profiles","configured":true,"configuration_path":"/markrian-test/test-public-project/-/security/configuration/dast_profiles"},{"type":"dependency_scanning","configured":false,"configuration_path":null},{"type":"container_scanning","configured":true,"configuration_path":null},{"type":"secret_detection","configured":true,"configuration_path":null},{"type":"coverage_fuzzing","configured":false,"configuration_path":null},{"type":"api_fuzzing","configured":false,"configuration_path":"/markrian-test/test-public-project/-/security/configuration/api_fuzzing"},{"type":"license_scanning","configured":true,"configuration_path":null}]" data-gitlab-ci-history-path="/markrian-test/test-public-project/-/blame/master/.gitlab-ci.yml" data-help-page-path="/help/user/application_security/index" data-latest-pipeline-path="/markrian-test/test-public-project/-/pipelines/255361656" data-toggle-autofix-setting-endpoint="configuration/auto_fix" id="js-security-configuration"></div>`
;
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