Documentation ¶
Index ¶
- type ConsulTemplateTest
- func (tc *ConsulTemplateTest) AfterEach(f *framework.F)
- func (tc *ConsulTemplateTest) BeforeAll(f *framework.F)
- func (tc *ConsulTemplateTest) TestTemplatePathInterpolation_Bad(f *framework.F)
- func (tc *ConsulTemplateTest) TestTemplatePathInterpolation_Ok(f *framework.F)
- func (tc *ConsulTemplateTest) TestTemplatePathInterpolation_SharedAllocDir(f *framework.F)
- func (tc *ConsulTemplateTest) TestTemplateUpdateTriggers(f *framework.F)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulTemplateTest ¶
func (*ConsulTemplateTest) AfterEach ¶
func (tc *ConsulTemplateTest) AfterEach(f *framework.F)
func (*ConsulTemplateTest) BeforeAll ¶ added in v1.0.0
func (tc *ConsulTemplateTest) BeforeAll(f *framework.F)
func (*ConsulTemplateTest) TestTemplatePathInterpolation_Bad ¶ added in v1.0.0
func (tc *ConsulTemplateTest) TestTemplatePathInterpolation_Bad(f *framework.F)
TestTemplatePathInterpolation_Bad asserts that template.source paths are not allowed to escape the sandbox directory tree by default.
func (*ConsulTemplateTest) TestTemplatePathInterpolation_Ok ¶ added in v1.0.0
func (tc *ConsulTemplateTest) TestTemplatePathInterpolation_Ok(f *framework.F)
TestTemplatePathInterpolation_Ok asserts that NOMAD_*_DIR variables are properly interpolated into template source and destination paths without being treated as escaping.
func (*ConsulTemplateTest) TestTemplatePathInterpolation_SharedAllocDir ¶ added in v1.0.2
func (tc *ConsulTemplateTest) TestTemplatePathInterpolation_SharedAllocDir(f *framework.F)
TestTemplatePathInterpolation_SharedAlloc asserts that NOMAD_ALLOC_DIR is supported as a destination for artifact and template blocks, and that it is properly interpolated for task drivers with varying filesystem isolation
func (*ConsulTemplateTest) TestTemplateUpdateTriggers ¶ added in v1.0.0
func (tc *ConsulTemplateTest) TestTemplateUpdateTriggers(f *framework.F)
TestTemplateUpdateTriggers exercises consul-template integration, verifying that: - missing keys block allocations from starting - key updates trigger re-render - service updates trigger re-render - 'noop' vs ”restart' configuration