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
Expand all
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
This diff is collapsed.
Click to expand it.
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