installer

package
v0.61.0-devel Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package installer contains tests for the datadog installer

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

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

InstallScriptEnv returns the environment variables for the install script

func InstallScriptEnvWithPackages

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 InstallMethodOption

type InstallMethodOption string

InstallMethodOption is the type for the install method to use for the tests

const (
	// InstallMethodInstallScript is the default install method
	InstallMethodInstallScript InstallMethodOption = "install_script"
	// InstallMethodAnsible is the install method for Ansible
	InstallMethodAnsible InstallMethodOption = "ansible"
	// InstallMethodWindows is the install method for Windows
	InstallMethodWindows InstallMethodOption = "windows"
)

func GetInstallMethodFromEnv

func GetInstallMethodFromEnv(t *testing.T) InstallMethodOption

GetInstallMethodFromEnv returns the install method to use for the tests

type PackageOption

type PackageOption func(*TestPackageConfig) error

PackageOption is an optional function parameter type for the Datadog Installer

func WithAlias

func WithAlias(alias string) PackageOption

WithAlias specifies the package's alias.

func WithAuthentication

func WithAuthentication(auth string) PackageOption

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

func WithRegistry

func WithRegistry(registryURL string) PackageOption

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

func WithVersion

func WithVersion(version string) PackageOption

WithVersion uses a specific version of the package.

type TestPackageConfig

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

Jump to

Keyboard shortcuts

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