Documentation
¶
Overview ¶
Package ddot provides shared E2E helpers for DDOT extension tests.
Index ¶
- Constants
- func AssertDDOTAutoInstallUnderProcmgr(t *testing.T, host *components.RemoteHost)
- func AssertDDOTManagedByProcmgr(t *testing.T, host *components.RemoteHost)
- func AssertDDOTManagedByProcmgrWindows(t *testing.T, host *components.RemoteHost)
- func AssertDDOTNotManagedByProcmgr(t *testing.T, host *components.RemoteHost)
- func AssertDDOTSystemdUnitsNotActive(t *testing.T, host *components.RemoteHost)
- func AssertNoFleetDDOTProcmgrConfigFileWindows(t *testing.T, host *components.RemoteHost)
- func AssertProcmgrDDOTTelemetry(t *testing.T, host *components.RemoteHost)
- func AssertWindowsDDOTRunningLegacySCM(t *testing.T, host *components.RemoteHost)
- func AssertWindowsDDOTSCMServiceNotRunningWhenProcmgr(t *testing.T, host *components.RemoteHost)
- func AssertWindowsProcmgrDDOTMatchesInstalledBinary(t *testing.T, host *components.RemoteHost)
- func WindowsDescribeDDOTCommandLine(host *components.RemoteHost, ddProcmgrCLI string) (string, error)
Constants ¶
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.