ddot

package
v0.82.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package ddot provides shared E2E helpers for DDOT extension tests.

Index

Constants

View Source
const WindowsLegacyDDOTSCMServiceName = "datadog-otel-agent"

WindowsLegacyDDOTSCMServiceName is the Windows SCM service for otel when not using dd-procmgr.

Variables

This section is empty.

Functions

func AssertDDOTAutoInstallUnderProcmgr

func AssertDDOTAutoInstallUnderProcmgr(t *testing.T, host *components.RemoteHost)

AssertDDOTAutoInstallUnderProcmgr verifies DDOT after an env-driven install is not on the legacy supervisor path and is stable under dd-procmgr (Windows: SCM + describe/binary; Linux: systemd + describe).

func AssertDDOTManagedByProcmgr

func AssertDDOTManagedByProcmgr(t *testing.T, host *components.RemoteHost)

AssertDDOTManagedByProcmgr verifies extension DDOT is supervised by dd-procmgrd. Call AssertDDOTSystemdUnitsNotActive first so legacy datadog-agent-ddot systemd units are not active.

func AssertDDOTManagedByProcmgrWindows

func AssertDDOTManagedByProcmgrWindows(t *testing.T, host *components.RemoteHost)

AssertDDOTManagedByProcmgrWindows verifies the OCI DDOT extension process is supervised by dd-procmgrd on a Windows host (processes.d + dd-procmgr describe), not only that dd-procmgr-service is running.

func AssertDDOTNotManagedByProcmgr

func AssertDDOTNotManagedByProcmgr(t *testing.T, host *components.RemoteHost)

AssertDDOTNotManagedByProcmgr verifies extension DDOT is no longer supervised by dd-procmgrd.

func AssertDDOTSystemdUnitsNotActive

func AssertDDOTSystemdUnitsNotActive(t *testing.T, host *components.RemoteHost)

AssertDDOTSystemdUnitsNotActive fails if datadog-agent-ddot systemd units are active. DDOT must run under dd-procmgrd, not the legacy systemd units.

func AssertNoFleetDDOTProcmgrConfigFileWindows

func AssertNoFleetDDOTProcmgrConfigFileWindows(t *testing.T, host *components.RemoteHost)

AssertNoFleetDDOTProcmgrConfigFileWindows asserts the fleet DDOT extension did not write processes.d/datadog-agent-ddot.yaml (e.g. when DD_PROCESS_MANAGER_ENABLED=false during install hooks).

func AssertProcmgrDDOTTelemetry

func AssertProcmgrDDOTTelemetry(t *testing.T, host *components.RemoteHost)

AssertProcmgrDDOTTelemetry verifies COAT gauges report DDOT under dd-procmgrd. Call AssertDDOTManagedByProcmgr first so procmgr is reachable and DDOT is running.

func AssertWindowsDDOTRunningLegacySCM

func AssertWindowsDDOTRunningLegacySCM(t *testing.T, host *components.RemoteHost)

AssertWindowsDDOTRunningLegacySCM waits until datadog-otel-agent is Running (DDOT on the legacy Windows SCM path rather than fleet processes.d under dd-procmgr).

func AssertWindowsDDOTSCMServiceNotRunningWhenProcmgr

func AssertWindowsDDOTSCMServiceNotRunningWhenProcmgr(t *testing.T, host *components.RemoteHost)

AssertWindowsDDOTSCMServiceNotRunningWhenProcmgr fails if the legacy Windows SCM otel service is Running while DDOT is expected under dd-procmgr.

func AssertWindowsProcmgrDDOTMatchesInstalledBinary

func AssertWindowsProcmgrDDOTMatchesInstalledBinary(t *testing.T, host *components.RemoteHost)

AssertWindowsProcmgrDDOTMatchesInstalledBinary waits for dd-procmgr describe to show a stable Running DDOT process, then checks PID is set and the process image path matches the packaged otel-agent.exe.

func WindowsDescribeDDOTCommandLine

func WindowsDescribeDDOTCommandLine(host *components.RemoteHost, ddProcmgrCLI string) (string, error)

WindowsDescribeDDOTCommandLine runs dd-procmgr describe and returns the Command field from text output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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