diff options
Diffstat (limited to 'spec/frontend/editor/schema/ci/yaml_tests/negative_tests')
-rw-r--r-- | spec/frontend/editor/schema/ci/yaml_tests/negative_tests/artifacts.yml | 40 | ||||
-rw-r--r-- | spec/frontend/editor/schema/ci/yaml_tests/negative_tests/rules.yml | 5 |
2 files changed, 44 insertions, 1 deletions
diff --git a/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/artifacts.yml b/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/artifacts.yml index 29f4a0cd76d..996a48f7bc6 100644 --- a/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/artifacts.yml +++ b/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/artifacts.yml @@ -1,5 +1,30 @@ -# invalid artifact:reports:cyclonedx +# invalid artifact:reports:browser_performance +browser_performance no paths: + artifacts: + reports: + browser_performance: + +## Lists (or globs) are not allowed! +browser_performance list of string paths: + artifacts: + reports: + browser_performance: + - foo + - ./bar/baz + +browser_performance mixed list of string paths and globs: + artifacts: + reports: + browser_performance: + - ./foo + - "bar/*.baz" + +browser_performance string array: + artifacts: + reports: + browser_performance: ["foo", "blah"] +# invalid artifact:reports:cyclonedx cyclonedx no paths: artifacts: reports: @@ -17,6 +42,19 @@ cyclonedx not an array or string: - foo - bar +# invalid artifacts:reports:coverage_report +coverage-report-is-string: + artifacts: + reports: + coverage_report: cobertura + +# invalid artifact:reports:performance +# Superceded by: artifact:reports:browser_performance +performance string path: + artifacts: + reports: + performance: foo + # invalid artifacts:when artifacts-when-unknown: artifacts: diff --git a/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/rules.yml b/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/rules.yml index d74a681b23b..f4a08492574 100644 --- a/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/rules.yml +++ b/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/rules.yml @@ -12,3 +12,8 @@ wrong path declaration: rules: - changes: paths: { file: 'DOCKER' } + +# invalid rules:if +rules-if-empty: + rules: + - if:
\ No newline at end of file |