installer

package
v0.57.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package installer contains tests for the datadog installer

Index

Constants

This section is empty.

Variables

View Source
var PackagesConfig = []TestPackageConfig{
	{Name: "datadog-installer", Version: fmt.Sprintf("pipeline-%v", os.Getenv("E2E_PIPELINE_ID")), Registry: "669783387624.dkr.ecr.us-east-1.amazonaws.com", Auth: "ecr"},
	{Name: "datadog-agent", Alias: "agent-package", Version: fmt.Sprintf("pipeline-%v", os.Getenv("E2E_PIPELINE_ID")), Registry: "669783387624.dkr.ecr.us-east-1.amazonaws.com", Auth: "ecr"},
	{Name: "datadog-apm-inject", Version: "latest"},
	{Name: "datadog-apm-library-java", Version: "latest"},
	{Name: "datadog-apm-library-ruby", Version: "latest"},
	{Name: "datadog-apm-library-js", Version: "latest"},
	{Name: "datadog-apm-library-dotnet", Version: "latest"},
	{Name: "datadog-apm-library-python", Version: "latest"},
}

PackagesConfig is the list of known packages configuration for testing

Functions

func InstallScriptEnv added in v0.57.0

func InstallScriptEnv(arch e2eos.Architecture) map[string]string

InstallScriptEnv returns the environment variables for the install script

func InstallScriptEnvWithPackages added in v0.57.0

func InstallScriptEnvWithPackages(arch e2eos.Architecture, packagesConfig []TestPackageConfig) map[string]string

InstallScriptEnvWithPackages returns the environment variables for the install script for the given packages

Types

type PackageOption added in v0.57.0

type PackageOption func(*TestPackageConfig) error

PackageOption is an optional function parameter type for the Datadog Installer

func WithAlias added in v0.57.0

func WithAlias(alias string) PackageOption

WithAlias specifies the package's alias.

func WithAuthentication added in v0.57.0

func WithAuthentication(auth string) PackageOption

WithAuthentication uses a specific authentication for a Registry to install the package.

func WithRegistry added in v0.57.0

func WithRegistry(registryURL string) PackageOption

WithRegistry uses a specific Registry from where to install the package.

func WithVersion added in v0.57.0

func WithVersion(version string) PackageOption

WithVersion uses a specific version of the package.

type TestPackageConfig added in v0.57.0

type TestPackageConfig struct {
	// Name the name of the package
	Name string
	// Alias Sometimes the package is named differently in some registries
	Alias string
	// Version the version to install
	Version string
	// Registry the URL of the registry
	Registry string
	// Auth the authentication method, "" for no authentication
	Auth string
}

TestPackageConfig is a struct that regroups the fields necessary to install a package from an OCI Registry

Directories

Path Synopsis
Package host provides a way to interact with an e2e remote host and capture its state.
Package host provides a way to interact with an e2e remote host and capture its state.
Package installer contains code for the E2E tests for the Datadog installer on Windows
Package installer contains code for the E2E tests for the Datadog installer on Windows
remote-host-assertions
Package assertions provide custom assertions for Windows tests
Package assertions provide custom assertions for Windows tests
suite-assertions
Package suiteasserts extends require.Assertions with custom assertions
Package suiteasserts extends require.Assertions with custom assertions

Jump to

Keyboard shortcuts

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