tvl-depot/context/testdata/merging/context.yaml
Vincent Ambo 6d8214bfc8 test(context): Introduce an explicit value merging test
Introduces a test which will merge variables defined at every possible
layer together and ensure that the loaded context configuration is as
expected.

The test data provides an actual resource set template that can be
tested locally from a kontemplate source checkout:

    kontemplate template context/testdata/merging/context.yaml --var cliVar=cliVar
2018-06-26 21:06:38 +02:00

15 lines
404 B
YAML

# This context file is intended to test the merge hierarchy of
# variables defined at different levels.
---
context: merging.in.kontemplate.works
global:
globalVar: globalVar
includeVar: should be overridden (global)
cliVar: should be overridden (global)
import:
- import-vars.yaml
include:
- name: resource
values:
includeVar: includeVar
cliVar: should be overridden (include)