From 2f8ac26e860ff188abf8915f864607619a4828ce Mon Sep 17 00:00:00 2001 From: Vsevolod Fedorov Date: Mon, 17 Apr 2023 10:42:30 +0300 Subject: [PATCH] Add test for job instantiation with null parameters Change-Id: Ie2c91b2e7c36804333ef8e96ca89977203defdd8 --- .../job_instantiation_with_null_params.xml | 19 +++++++++++++++++++ .../job_instantiation_with_null_params.yaml | 10 ++++++++++ 2 files changed, 29 insertions(+) create mode 100644 tests/yamlparser/job_fixtures/job_instantiation_with_null_params.xml create mode 100644 tests/yamlparser/job_fixtures/job_instantiation_with_null_params.yaml diff --git a/tests/yamlparser/job_fixtures/job_instantiation_with_null_params.xml b/tests/yamlparser/job_fixtures/job_instantiation_with_null_params.xml new file mode 100644 index 000000000..8a8fa25fe --- /dev/null +++ b/tests/yamlparser/job_fixtures/job_instantiation_with_null_params.xml @@ -0,0 +1,19 @@ + + + + <!-- Managed by Jenkins Job Builder --> + false + false + false + false + true + + + + + echo "hello" + + + + + diff --git a/tests/yamlparser/job_fixtures/job_instantiation_with_null_params.yaml b/tests/yamlparser/job_fixtures/job_instantiation_with_null_params.yaml new file mode 100644 index 000000000..bcb706f22 --- /dev/null +++ b/tests/yamlparser/job_fixtures/job_instantiation_with_null_params.yaml @@ -0,0 +1,10 @@ +- job-template: + name: sample-job + builders: + - shell: echo "hello" + +- project: + name: sample-project + jobs: + # Place colon but define no parameters. + - sample-job: