Documentation ¶
Index ¶
- type ConsulTemplateTest
- func (tc *ConsulTemplateTest) AfterEach(f *framework.F)
- func (tc *ConsulTemplateTest) BeforeAll(f *framework.F)
- func (tc *ConsulTemplateTest) TestConsulTemplate_NomadServiceLookups(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 ¶
func (tc *ConsulTemplateTest) BeforeAll(f *framework.F)
func (*ConsulTemplateTest) TestConsulTemplate_NomadServiceLookups ¶
func (tc *ConsulTemplateTest) TestConsulTemplate_NomadServiceLookups(f *framework.F)
TestConsulTemplate_NomadServiceLookups tests consul-templates Nomad service lookup functionality. It runs a job which registers two services, then another which performs both a list and read template function lookup against registered services.
func (*ConsulTemplateTest) TestTemplatePathInterpolation_Bad ¶
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 ¶
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 ¶
func (tc *ConsulTemplateTest) TestTemplatePathInterpolation_SharedAllocDir(f *framework.F)
TestTemplatePathInterpolation_SharedAllocDir 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 ¶
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