package consul

import "github.com/hashicorp/nomad/e2e/consul"

Index

Types

type CheckRestartE2ETest

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

func (*CheckRestartE2ETest) AfterEach

func (tc *CheckRestartE2ETest) AfterEach(f *framework.F)

func (*CheckRestartE2ETest) BeforeAll

func (tc *CheckRestartE2ETest) BeforeAll(f *framework.F)

func (*CheckRestartE2ETest) TestGroupCheckRestart

func (tc *CheckRestartE2ETest) TestGroupCheckRestart(f *framework.F)

TestGroupCheckRestart runs a job with a group service that will never become healthy. Both tasks should be restarted up to the 'restart' limit.

func (*CheckRestartE2ETest) TestTaskCheckRestart

func (tc *CheckRestartE2ETest) TestTaskCheckRestart(f *framework.F)

TestTaskCheckRestart runs a job with a task service that will never become healthy. Only the failed task should be restarted up to the 'restart' limit.

type ConsulE2ETest

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

func (*ConsulE2ETest) AfterEach

func (tc *ConsulE2ETest) AfterEach(f *framework.F)

func (*ConsulE2ETest) BeforeAll

func (tc *ConsulE2ETest) BeforeAll(f *framework.F)

func (*ConsulE2ETest) TestCanaryInplaceUpgrades

func (tc *ConsulE2ETest) TestCanaryInplaceUpgrades(f *framework.F)

TestCanaryInplaceUpgrades verifies setting and unsetting canary tags

func (*ConsulE2ETest) TestConsulRegisterOnUpdate

func (tc *ConsulE2ETest) TestConsulRegisterOnUpdate(f *framework.F)

func (*ConsulE2ETest) TestConsulRegistration

func (tc *ConsulE2ETest) TestConsulRegistration(f *framework.F)

TestConsulRegistration asserts that a job registers services with tags in Consul.

type ConsulNamespacesE2ETest

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

func (*ConsulNamespacesE2ETest) AfterAll

func (tc *ConsulNamespacesE2ETest) AfterAll(f *framework.F)

func (*ConsulNamespacesE2ETest) AfterEach

func (tc *ConsulNamespacesE2ETest) AfterEach(f *framework.F)

func (*ConsulNamespacesE2ETest) BeforeAll

func (tc *ConsulNamespacesE2ETest) BeforeAll(f *framework.F)

func (*ConsulNamespacesE2ETest) TestConsulConnectIngressGateway

func (tc *ConsulNamespacesE2ETest) TestConsulConnectIngressGateway(f *framework.F)

func (*ConsulNamespacesE2ETest) TestConsulConnectSidecars

func (tc *ConsulNamespacesE2ETest) TestConsulConnectSidecars(f *framework.F)

func (*ConsulNamespacesE2ETest) TestConsulConnectTerminatingGateway

func (tc *ConsulNamespacesE2ETest) TestConsulConnectTerminatingGateway(f *framework.F)

func (*ConsulNamespacesE2ETest) TestConsulRegisterGroupServices

func (tc *ConsulNamespacesE2ETest) TestConsulRegisterGroupServices(f *framework.F)

func (*ConsulNamespacesE2ETest) TestConsulRegisterTaskServices

func (tc *ConsulNamespacesE2ETest) TestConsulRegisterTaskServices(f *framework.F)

func (*ConsulNamespacesE2ETest) TestConsulScriptChecksGroup

func (tc *ConsulNamespacesE2ETest) TestConsulScriptChecksGroup(f *framework.F)

func (*ConsulNamespacesE2ETest) TestConsulScriptChecksTask

func (tc *ConsulNamespacesE2ETest) TestConsulScriptChecksTask(f *framework.F)

func (*ConsulNamespacesE2ETest) TestConsulTemplateKV

func (tc *ConsulNamespacesE2ETest) TestConsulTemplateKV(f *framework.F)

func (*ConsulNamespacesE2ETest) TestNamespacesExist

func (tc *ConsulNamespacesE2ETest) TestNamespacesExist(f *framework.F)

type OnUpdateChecksTest

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

func (*OnUpdateChecksTest) AfterEach

func (tc *OnUpdateChecksTest) AfterEach(f *framework.F)

func (*OnUpdateChecksTest) BeforeAll

func (tc *OnUpdateChecksTest) BeforeAll(f *framework.F)

func (*OnUpdateChecksTest) TestOnUpdateCheck_IgnoreWarning_IgnoreErrors

func (tc *OnUpdateChecksTest) TestOnUpdateCheck_IgnoreWarning_IgnoreErrors(f *framework.F)

TestOnUpdateCheck_IgnoreWarning_IgnoreErrors ensures that deployments complete successfully with service checks that warn and error when on_update is specified to ignore either.

func (*OnUpdateChecksTest) TestOnUpdate_CheckRestart

func (tc *OnUpdateChecksTest) TestOnUpdate_CheckRestart(f *framework.F)

TestOnUpdate_CheckRestart ensures that a service check set to ignore warnings still follows the check_restart block if the task becomes unhealthy after a deployment is successful. on_update_check_restart has a script check that should report as a warning status for the deployment to become healthy. The script check then reports unhealthy and the check_restart policy should restart the task

type ScriptChecksE2ETest

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

func (*ScriptChecksE2ETest) AfterEach

func (tc *ScriptChecksE2ETest) AfterEach(f *framework.F)

func (*ScriptChecksE2ETest) BeforeAll

func (tc *ScriptChecksE2ETest) BeforeAll(f *framework.F)

func (*ScriptChecksE2ETest) TestGroupScriptCheck

func (tc *ScriptChecksE2ETest) TestGroupScriptCheck(f *framework.F)

TestGroupScriptCheck runs a job with a single task group with several services and associated script checks. It updates, stops, etc. the job to verify that script checks are re-registered as expected.

func (*ScriptChecksE2ETest) TestTaskScriptCheck

func (tc *ScriptChecksE2ETest) TestTaskScriptCheck(f *framework.F)

TestTaskScriptCheck runs a job with a single task with several services and associated script checks. It updates, stops, etc. the job to verify that script checks are re-registered as expected.

Source Files

check_restart.go consul.go namespaces.go namespaces_ce.go on_update.go script_checks.go

Version
v1.10.0 (latest)
Published
Apr 9, 2025
Platform
linux/amd64
Imports
19 packages
Last checked
1 hour ago

Tools for package owners.