Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/editor/schema/ci/yaml_tests/negative_tests/needs/parallel_matrix/wrong_matrix_value.yml')
-rw-r--r--spec/frontend/editor/schema/ci/yaml_tests/negative_tests/needs/parallel_matrix/wrong_matrix_value.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/needs/parallel_matrix/wrong_matrix_value.yml b/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/needs/parallel_matrix/wrong_matrix_value.yml
new file mode 100644
index 00000000000..746df9ebd96
--- /dev/null
+++ b/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/needs/parallel_matrix/wrong_matrix_value.yml
@@ -0,0 +1,30 @@
+# invalid needs:parallel:matrix where matrix value is incorrect
+job_with_needs_parallel_matrix:
+ script: exit 0
+ needs:
+ - job: some_job_with_parallel_matrix
+ parallel:
+ matrix: 10
+
+job_with_needs_parallel_matrix_2:
+ script: exit 0
+ needs:
+ - job: some_job_with_parallel_matrix
+ parallel:
+ matrix: "string"
+
+job_with_needs_parallel_matrix_3:
+ script: exit 0
+ needs:
+ - job: some_job_with_parallel_matrix
+ parallel:
+ matrix: [a1, a2]
+
+job_with_needs_parallel_matrix_4:
+ script: exit 0
+ needs:
+ - job: some_job_with_parallel_matrix
+ parallel:
+ matrix:
+ VAR_1: 1
+ VAR_2: 2