Skip to content

Commit

Permalink
Update process agent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-taf committed Dec 16, 2024
1 parent 03e74fc commit fbde356
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions test/datadog/process_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func Test_processAgentConfigs(t *testing.T) {
assertions func(t *testing.T, manifest string)
}{
{
name: "checks in process agent",
name: "checks in process agent -- linux",
command: common.HelmCommand{
ReleaseName: "datadog",
ChartPath: "../../charts/datadog",
Expand All @@ -44,7 +44,7 @@ func Test_processAgentConfigs(t *testing.T) {
assertions: verifyDaemonsetProcessAgentChecks,
},
{
name: "default windows",
name: "checks in process agent -- windows",
command: common.HelmCommand{
ReleaseName: "datadog",
ChartPath: "../../charts/datadog",
Expand All @@ -59,7 +59,7 @@ func Test_processAgentConfigs(t *testing.T) {
assertions: verifyDaemonsetWindowsProcessAgentChecks,
},
{
name: "all checks off",
name: "no checks -- linux",
command: common.HelmCommand{
ReleaseName: "datadog",
ChartPath: "../../charts/datadog",
Expand Down Expand Up @@ -126,6 +126,7 @@ func Test_processAgentConfigs(t *testing.T) {
"datadog.appKeyExistingSecret": "datadog-secret",
"targetSystem": "windows",
"datadog.processAgent.runInCoreAgent": "true",
"agents.image.tag": "7.60.0",
},
},
assertions: verifyDaemonsetWindowsProcessAgentChecks,
Expand Down Expand Up @@ -178,10 +179,10 @@ func Test_processAgentConfigs(t *testing.T) {
ShowOnly: []string{"templates/daemonset.yaml"},
Values: []string{"../../charts/datadog/values.yaml"},
Overrides: map[string]string{
"datadog.apiKeyExistingSecret": "datadog-secret",
"datadog.appKeyExistingSecret": "datadog-secret",
"datadog.processAgent.runInCoreAgent": "true",
"agents.image.tag": "7.52.0",
"datadog.apiKeyExistingSecret": "datadog-secret",
"datadog.appKeyExistingSecret": "datadog-secret",
"datadog.processAgent.runInCoreAgent": "true",
"agents.image.tag": "7.52.0",
},
},
assertions: verifyLinuxRunInCoreAgentOld,
Expand All @@ -194,10 +195,10 @@ func Test_processAgentConfigs(t *testing.T) {
ShowOnly: []string{"templates/daemonset.yaml"},
Values: []string{"../../charts/datadog/values.yaml"},
Overrides: map[string]string{
"datadog.apiKeyExistingSecret": "datadog-secret",
"datadog.appKeyExistingSecret": "datadog-secret",
"datadog.processAgent.runInCoreAgent": "true",
"agents.image.doNotCheckTag": "true",
"datadog.apiKeyExistingSecret": "datadog-secret",
"datadog.appKeyExistingSecret": "datadog-secret",
"datadog.processAgent.runInCoreAgent": "true",
"agents.image.doNotCheckTag": "true",
},
},
assertions: verifyLinuxRunInCoreAgentOld,
Expand Down

0 comments on commit fbde356

Please sign in to comment.