consultemplate

package
v1.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulTemplateTest

type ConsulTemplateTest struct {
	framework.TC
	// contains filtered or unexported fields
}

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) TestConsulTemplate_NomadServiceLookups added in v1.3.0

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 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_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 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL