e2e

package
v0.63.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

README

E2E Tests

E2E tests are based on kubernetes-sigs/e2e-framework. The test suite builds the plugin container image and spins up a kind cluster with following components:

  • Logging backends for shoot and seed logs
  • Fluent-bit with the plugin under test
  • Workloads producing logs in the seed and shoot control plane namespaces

Following test cases are covered by E2E tests:

seed-logs

Verifies that log volumes produced by the workloads outside the shoot control plane namespaces are correctly send to the backend storage in the seed namespace.

shoot-logs

Verifies that log volumes produced by the workloads in the shoot control planes are correctly send to the backend storage in the same namespace.

event-shoot-logs

Verifies that the kubernetes events from the workloads in the shoot control planes are correctly send to the backend storage in the same namespace. Verifies that the kubernetes events from the k8s-apiserver in the shoot control planes are correctly send to the backend storage in the same namespace.

Dependencies

The e2e-framework requires the following dependencies to be present on the machine where the tests are executed:

  • kind
  • docker

Running the tests

To run all tests, execute the following command:

go test -v ./tests/e2e/...

Or to execute a given feature, run one of the following commands:

go test -v ./tests/e2e/... -args --feature "seed/logs"
go test -v ./tests/e2e/... -args --feature "shoot/logs"
go test -v ./tests/e2e/... -args --feature "shoot/events"

Documentation

Index

Constants

View Source
const (
	ShootNamespace             = "shoot--logging--test"
	SeedNamespace              = "seed--logging--test"
	BackendContainerImage      = "ghcr.io/credativ/vali:v2.2.18"
	LogGeneratorContainerImage = "nickytd/log-generator:0.1.0"
	DaemonSetName              = "fluent-bit"
	EventLoggerName            = "event-logger"
	SeedBackendName            = "seed"
	ShootBackendName           = "shoot"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchResponse

type SearchResponse struct {
	Status string `json:"status"`
	Data   struct {
		Result []struct {
			Value []any `json:"value"`
		} `json:"result"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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