consultemplate

package
v0.0.0-...-ae3a0a2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 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

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

Jump to

Keyboard shortcuts

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