diff options
Diffstat (limited to 'tests/fixtures/layouts/nodeset-fallback.yaml')
-rw-r--r-- | tests/fixtures/layouts/nodeset-fallback.yaml | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/tests/fixtures/layouts/nodeset-fallback.yaml b/tests/fixtures/layouts/nodeset-fallback.yaml new file mode 100644 index 000000000..01869537e --- /dev/null +++ b/tests/fixtures/layouts/nodeset-fallback.yaml @@ -0,0 +1,66 @@ +- pipeline: + name: check + manager: independent + trigger: + gerrit: + - event: patchset-created + success: + gerrit: + Verified: 1 + failure: + gerrit: + Verified: -1 + +- nodeset: + name: fast-nodeset + nodes: + - label: fast-label + name: controller + +- nodeset: + name: red-nodeset + nodes: + - label: red-label + name: controller + +- nodeset: + name: blue-nodeset + nodes: + - label: blue-label + name: controller + +# This adds an unused second level of alternatives to verify we are +# able to flatten it. +- nodeset: + name: red-or-blue-nodeset + alternatives: + - red-nodeset + - blue-nodeset + +# Test alternatives by name or anonymous nodeset +- nodeset: + name: fast-or-slow + alternatives: + - fast-nodeset + - nodes: + label: slow-label + name: controller + - red-or-blue-nodeset + +- job: + name: base + parent: null + run: playbooks/base.yaml + +- job: + name: check-job + nodeset: fast-or-slow + +- project: + name: org/project + check: + jobs: + - check-job + gate: + jobs: + - check-job |